MigrationHubRefactorSpaces / Client / delete_service

delete_service#

MigrationHubRefactorSpaces.Client.delete_service(**kwargs)#

Deletes an Amazon Web Services Migration Hub Refactor Spaces service.

See also: AWS API Documentation

Request Syntax

response = client.delete_service(
    ApplicationIdentifier='string',
    EnvironmentIdentifier='string',
    ServiceIdentifier='string'
)
Parameters:
  • ApplicationIdentifier (string) –

    [REQUIRED]

    Deletes a Refactor Spaces service.

    Note

    The RefactorSpacesSecurityGroup security group must be removed from all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.

  • EnvironmentIdentifier (string) –

    [REQUIRED]

    The ID of the environment that the service is in.

  • ServiceIdentifier (string) –

    [REQUIRED]

    The ID of the service to delete.

Return type:

dict

Returns:

Response Syntax

{
    'ApplicationId': 'string',
    'Arn': 'string',
    'EnvironmentId': 'string',
    'LastUpdatedTime': datetime(2015, 1, 1),
    'Name': 'string',
    'ServiceId': 'string',
    'State': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED'
}

Response Structure

  • (dict) –

    • ApplicationId (string) –

      The ID of the application that the service is in.

    • Arn (string) –

      The Amazon Resource Name (ARN) of the service.

    • EnvironmentId (string) –

      The unique identifier of the environment.

    • LastUpdatedTime (datetime) –

      A timestamp that indicates when the service was last updated.

    • Name (string) –

      The name of the service.

    • ServiceId (string) –

      The unique identifier of the service.

    • State (string) –

      The current state of the service.

Exceptions

  • MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException

  • MigrationHubRefactorSpaces.Client.exceptions.InternalServerException

  • MigrationHubRefactorSpaces.Client.exceptions.ConflictException

  • MigrationHubRefactorSpaces.Client.exceptions.ValidationException

  • MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException

  • MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException