create_audit_suppression
¶
create_audit_suppression(
check_name: AuditCheckName,
resource_identifier: ResourceIdentifier,
client_request_token: ClientRequestToken,
*,
config_overrides: Optional[IoTClientConfig] = None,
expiration_date: Optional[Timestamp] = None,
suppress_indefinitely: Optional[SuppressIndefinitely] = None,
description: Optional[AuditDescription] = None,
) -> CreateAuditSuppressionResponse
Creates a Device Defender audit suppression.
Requires permission to access the CreateAuditSuppression action.
Parameters:
-
expiration_date(Optional[Timestamp], default:None) –The epoch timestamp in seconds at which this suppression expires.
-
suppress_indefinitely(Optional[SuppressIndefinitely], default:None) –Indicates whether a suppression should exist indefinitely or not.
-
description(Optional[AuditDescription], default:None) –The description of the audit suppression.
-
client_request_token(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.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
LimitExceededException–A limit has been exceeded.
-
ResourceAlreadyExistsException–The resource already exists.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/io_t.py
1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 | |