| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.CreateAuditSuppression
Description
Creates a Device Defender audit suppression.
Requires permission to access the CreateAuditSuppression action.
Synopsis
- data CreateAuditSuppression = CreateAuditSuppression' {}
- newCreateAuditSuppression :: Text -> ResourceIdentifier -> Text -> CreateAuditSuppression
- createAuditSuppression_description :: Lens' CreateAuditSuppression (Maybe Text)
- createAuditSuppression_expirationDate :: Lens' CreateAuditSuppression (Maybe UTCTime)
- createAuditSuppression_suppressIndefinitely :: Lens' CreateAuditSuppression (Maybe Bool)
- 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.
Constructors
| CreateAuditSuppression' | |
Fields
| |
Instances
newCreateAuditSuppression Source #
Arguments
| :: 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:
CreateAuditSuppression, createAuditSuppression_description - The description of the audit suppression.
CreateAuditSuppression, createAuditSuppression_expirationDate - The epoch timestamp in seconds at which this suppression expires.
CreateAuditSuppression, createAuditSuppression_suppressIndefinitely - Indicates whether a suppression should exist indefinitely or not.
CreateAuditSuppression, createAuditSuppression_checkName - Undocumented member.
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_description :: Lens' CreateAuditSuppression (Maybe Text) Source #
The description of the audit suppression.
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_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.
Constructors
| CreateAuditSuppressionResponse' | |
Fields
| |
Instances
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.