ResilienceHubV2 / Client / create_service_function_resources

create_service_function_resources

ResilienceHubV2.Client.create_service_function_resources(**kwargs)

Associates resources with a service function.

See also: AWS API Documentation

Request Syntax

response = client.create_service_function_resources(
    serviceArn='string',
    serviceFunctionId='string',
    resources=[
        'string',
    ]
)
Parameters:
  • serviceArn (string) –

    [REQUIRED]

    ARN identifier.

  • serviceFunctionId (string) –

    [REQUIRED]

    The identifier of the service function to associate resources with.

  • resources (list) –

    [REQUIRED]

    The list of resources to associate with the service function.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'serviceArn': 'string',
    'serviceFunctionId': 'string',
    'resources': [
        'string',
    ]
}

Response Structure

  • (dict) –

    • serviceArn (string) –

      ARN identifier.

    • serviceFunctionId (string) –

      The identifier of the service function.

    • resources (list) –

      The list of resources that were associated.

      • (string) –

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.ConflictException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException