create_audit_suppression
async
¶
create_audit_suppression(
check_name: AuditCheckName,
resource_identifier: ResourceIdentifier,
client_request_token: ClientRequestToken,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
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 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 | |