ResilienceHubV2 / Client / create_service_function
create_service_function¶
- ResilienceHubV2.Client.create_service_function(**kwargs)¶
Creates a service function within a service.
See also: AWS API Documentation
Request Syntax
response = client.create_service_function( name='string', serviceArn='string', description='string', criticality='PRIMARY'|'SUPPLEMENTAL', clientToken='string' )
- Parameters:
name (string) –
[REQUIRED]
Entity label (not part of ARN — spaces allowed).
serviceArn (string) –
[REQUIRED]
ARN identifier.
description (string) – Resource description.
criticality (string) –
[REQUIRED]
The criticality level of the service function.
clientToken (string) –
Idempotency token.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'serviceFunction': { 'serviceArn': 'string', 'serviceFunctionId': 'string', 'name': 'string', 'description': 'string', 'criticality': 'PRIMARY'|'SUPPLEMENTAL', 'resourceCount': 123, 'source': 'AI_GENERATED'|'USER', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
serviceFunction (dict) –
The created service function.
serviceArn (string) –
ARN identifier.
serviceFunctionId (string) –
The unique identifier of the service function.
name (string) –
Entity label (not part of ARN — spaces allowed).
description (string) –
Resource description.
criticality (string) –
The criticality level of the service function.
resourceCount (integer) –
The number of resources associated with the service function.
source (string) –
The source of the service function.
createdAt (datetime) –
The timestamp when the service function was created.
updatedAt (datetime) –
The timestamp when the service function was last updated.
Exceptions
ResilienceHubV2.Client.exceptions.InternalServerExceptionResilienceHubV2.Client.exceptions.ResourceNotFoundExceptionResilienceHubV2.Client.exceptions.ValidationExceptionResilienceHubV2.Client.exceptions.ConflictExceptionResilienceHubV2.Client.exceptions.ServiceQuotaExceededExceptionResilienceHubV2.Client.exceptions.AccessDeniedException