ResilienceHubV2 / Client / create_assertion
create_assertion¶
- ResilienceHubV2.Client.create_assertion(**kwargs)¶
Creates a resilience assertion for a service.
See also: AWS API Documentation
Request Syntax
response = client.create_assertion( serviceArn='string', text='string', clientToken='string' )
- Parameters:
serviceArn (string) –
[REQUIRED]
ARN identifier.
text (string) –
[REQUIRED]
The text content of the assertion.
clientToken (string) –
Idempotency token.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'assertion': { 'serviceArn': 'string', 'assertionId': 'string', 'text': 'string', 'source': 'AI_GENERATED'|'USER', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
assertion (dict) –
The created assertion.
serviceArn (string) –
ARN identifier.
assertionId (string) –
The unique identifier of the assertion.
text (string) –
The text content of the assertion.
source (string) –
The source of the assertion, indicating whether it was AI-generated or created by a user.
createdAt (datetime) –
The timestamp when the assertion was created.
updatedAt (datetime) –
The timestamp when the assertion was last updated.
Exceptions
ResilienceHubV2.Client.exceptions.InternalServerExceptionResilienceHubV2.Client.exceptions.ResourceNotFoundExceptionResilienceHubV2.Client.exceptions.ValidationExceptionResilienceHubV2.Client.exceptions.ConflictExceptionResilienceHubV2.Client.exceptions.ServiceQuotaExceededExceptionResilienceHubV2.Client.exceptions.AccessDeniedException