create_tag_option

ServiceCatalog.Client.create_tag_option(**kwargs)

Creates a TagOption.

See also: AWS API Documentation

Request Syntax

response = client.create_tag_option(
    Key='string',
    Value='string'
)
Parameters
  • Key (string) --

    [REQUIRED]

    The TagOption key.

  • Value (string) --

    [REQUIRED]

    The TagOption value.

Return type

dict

Returns

Response Syntax

{
    'TagOptionDetail': {
        'Key': 'string',
        'Value': 'string',
        'Active': True|False,
        'Id': 'string',
        'Owner': 'string'
    }
}

Response Structure

  • (dict) --

    • TagOptionDetail (dict) --

      Information about the TagOption.

      • Key (string) --

        The TagOption key.

      • Value (string) --

        The TagOption value.

      • Active (boolean) --

        The TagOption active state.

      • Id (string) --

        The TagOption identifier.

      • Owner (string) --

        The Amazon Web Services account Id of the owner account that created the TagOption.

Exceptions

  • ServiceCatalog.Client.exceptions.TagOptionNotMigratedException
  • ServiceCatalog.Client.exceptions.DuplicateResourceException
  • ServiceCatalog.Client.exceptions.LimitExceededException