create_audit_suppression
(**kwargs)¶Creates a Device Defender audit suppression.
Requires permission to access the CreateAuditSuppression action.
See also: AWS API Documentation
Request Syntax
response = client.create_audit_suppression(
checkName='string',
resourceIdentifier={
'deviceCertificateId': 'string',
'caCertificateId': 'string',
'cognitoIdentityPoolId': 'string',
'clientId': 'string',
'policyVersionIdentifier': {
'policyName': 'string',
'policyVersionId': 'string'
},
'account': 'string',
'iamRoleArn': 'string',
'roleAliasArn': 'string',
'issuerCertificateIdentifier': {
'issuerCertificateSubject': 'string',
'issuerId': 'string',
'issuerCertificateSerialNumber': 'string'
},
'deviceCertificateArn': 'string'
},
expirationDate=datetime(2015, 1, 1),
suppressIndefinitely=True|False,
description='string',
clientRequestToken='string'
)
[REQUIRED]
An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration
to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration
to select which checks are enabled.)
[REQUIRED]
Information that identifies the noncompliant resource.
The ID of the certificate attached to the resource.
The ID of the CA certificate used to authorize the certificate.
The ID of the Amazon Cognito identity pool.
The client ID.
The version of the policy associated with the resource.
The name of the policy.
The ID of the version of the policy associated with the resource.
The account with which the resource is associated.
The ARN of the IAM role that has overly permissive actions.
The ARN of the role alias that has overly permissive actions.
The issuer certificate identifier.
The subject of the issuer certificate.
The issuer ID.
The issuer certificate serial number.
The ARN of the identified device certificate.
[REQUIRED]
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.
This field is autopopulated if not provided.
dict
Response Syntax
{}
Response Structure
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ResourceAlreadyExistsException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.LimitExceededException