ResilienceHubV2 / Client / update_service_function

update_service_function

ResilienceHubV2.Client.update_service_function(**kwargs)

Updates a service function.

See also: AWS API Documentation

Request Syntax

response = client.update_service_function(
    serviceArn='string',
    serviceFunctionId='string',
    name='string',
    description='string',
    criticality='PRIMARY'|'SUPPLEMENTAL'
)
Parameters:
  • serviceArn (string) –

    [REQUIRED]

    ARN identifier.

  • serviceFunctionId (string) –

    [REQUIRED]

    The identifier of the service function to update.

  • name (string) – Entity label (not part of ARN — spaces allowed).

  • description (string) – Resource description.

  • criticality (string) – The updated criticality level of the service function.

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 updated 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.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.ConflictException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException