Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Device Defender audit suppression.
Requires permission to access the CreateAuditSuppression action.
Synopsis
- data CreateAuditSuppression = CreateAuditSuppression' {}
- newCreateAuditSuppression :: Text -> ResourceIdentifier -> Text -> CreateAuditSuppression
- createAuditSuppression_expirationDate :: Lens' CreateAuditSuppression (Maybe UTCTime)
- createAuditSuppression_suppressIndefinitely :: Lens' CreateAuditSuppression (Maybe Bool)
- createAuditSuppression_description :: Lens' CreateAuditSuppression (Maybe Text)
- createAuditSuppression_checkName :: Lens' CreateAuditSuppression Text
- createAuditSuppression_resourceIdentifier :: Lens' CreateAuditSuppression ResourceIdentifier
- createAuditSuppression_clientRequestToken :: Lens' CreateAuditSuppression Text
- data CreateAuditSuppressionResponse = CreateAuditSuppressionResponse' {
- httpStatus :: Int
- newCreateAuditSuppressionResponse :: Int -> CreateAuditSuppressionResponse
- createAuditSuppressionResponse_httpStatus :: Lens' CreateAuditSuppressionResponse Int
Creating a Request
data CreateAuditSuppression Source #
See: newCreateAuditSuppression
smart constructor.
CreateAuditSuppression' | |
|
Instances
newCreateAuditSuppression Source #
:: Text | |
-> ResourceIdentifier | |
-> Text | |
-> CreateAuditSuppression |
Create a value of CreateAuditSuppression
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:expirationDate:CreateAuditSuppression'
, createAuditSuppression_expirationDate
- The epoch timestamp in seconds at which this suppression expires.
$sel:suppressIndefinitely:CreateAuditSuppression'
, createAuditSuppression_suppressIndefinitely
- Indicates whether a suppression should exist indefinitely or not.
$sel:description:CreateAuditSuppression'
, createAuditSuppression_description
- The description of the audit suppression.
$sel:checkName:CreateAuditSuppression'
, createAuditSuppression_checkName
- Undocumented member.
$sel:resourceIdentifier:CreateAuditSuppression'
, createAuditSuppression_resourceIdentifier
- Undocumented member.
$sel:clientRequestToken:CreateAuditSuppression'
, createAuditSuppression_clientRequestToken
- Each audit supression must have a unique client request token. If you
try to create a new audit suppression with the same token as one that
already exists, an exception occurs. If you omit this value, Amazon Web
Services SDKs will automatically generate a unique client request.
Request Lenses
createAuditSuppression_expirationDate :: Lens' CreateAuditSuppression (Maybe UTCTime) Source #
The epoch timestamp in seconds at which this suppression expires.
createAuditSuppression_suppressIndefinitely :: Lens' CreateAuditSuppression (Maybe Bool) Source #
Indicates whether a suppression should exist indefinitely or not.
createAuditSuppression_description :: Lens' CreateAuditSuppression (Maybe Text) Source #
The description of the audit suppression.
createAuditSuppression_checkName :: Lens' CreateAuditSuppression Text Source #
Undocumented member.
createAuditSuppression_resourceIdentifier :: Lens' CreateAuditSuppression ResourceIdentifier Source #
Undocumented member.
createAuditSuppression_clientRequestToken :: Lens' CreateAuditSuppression Text Source #
Each audit supression must have a unique client request token. If you try to create a new audit suppression with the same token as one that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Destructuring the Response
data CreateAuditSuppressionResponse Source #
See: newCreateAuditSuppressionResponse
smart constructor.
CreateAuditSuppressionResponse' | |
|
Instances
Eq CreateAuditSuppressionResponse Source # | |
Read CreateAuditSuppressionResponse Source # | |
Show CreateAuditSuppressionResponse Source # | |
Defined in Amazonka.IoT.CreateAuditSuppression | |
Generic CreateAuditSuppressionResponse Source # | |
NFData CreateAuditSuppressionResponse Source # | |
Defined in Amazonka.IoT.CreateAuditSuppression rnf :: CreateAuditSuppressionResponse -> () # | |
type Rep CreateAuditSuppressionResponse Source # | |
Defined in Amazonka.IoT.CreateAuditSuppression type Rep CreateAuditSuppressionResponse = D1 ('MetaData "CreateAuditSuppressionResponse" "Amazonka.IoT.CreateAuditSuppression" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateAuditSuppressionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateAuditSuppressionResponse Source #
Create a value of CreateAuditSuppressionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateAuditSuppressionResponse'
, createAuditSuppressionResponse_httpStatus
- The response's http status code.
Response Lenses
createAuditSuppressionResponse_httpStatus :: Lens' CreateAuditSuppressionResponse Int Source #
The response's http status code.