SSM / Client / create_ops_metadata

create_ops_metadata#

SSM.Client.create_ops_metadata(**kwargs)#

If you create a new application in Application Manager, Amazon Web Services Systems Manager calls this API operation to specify information about the new application, including the application type.

See also: AWS API Documentation

Request Syntax

response = client.create_ops_metadata(
    ResourceId='string',
    Metadata={
        'string': {
            'Value': 'string'
        }
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceId (string) –

    [REQUIRED]

    A resource ID for a new Application Manager application.

  • Metadata (dict) –

    Metadata for a new Application Manager application.

    • (string) –

      • (dict) –

        Metadata to assign to an Application Manager application.

        • Value (string) –

          Metadata value to assign to an Application Manager application.

  • Tags (list) –

    Optional metadata that you assign to a resource. You can specify a maximum of five tags for an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:

    • Key=Environment,Value=Production

    • Key=Region,Value=us-east-2

    • (dict) –

      Metadata that you assign to your Amazon Web Services resources. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. In Amazon Web Services Systems Manager, you can apply tags to Systems Manager documents (SSM documents), managed nodes, maintenance windows, parameters, patch baselines, OpsItems, and OpsMetadata.

      • Key (string) – [REQUIRED]

        The name of the tag.

      • Value (string) – [REQUIRED]

        The value of the tag.

Return type:

dict

Returns:

Response Syntax

{
    'OpsMetadataArn': 'string'
}

Response Structure

  • (dict) –

    • OpsMetadataArn (string) –

      The Amazon Resource Name (ARN) of the OpsMetadata Object or blob created by the call.

Exceptions

  • SSM.Client.exceptions.OpsMetadataAlreadyExistsException

  • SSM.Client.exceptions.OpsMetadataTooManyUpdatesException

  • SSM.Client.exceptions.OpsMetadataInvalidArgumentException

  • SSM.Client.exceptions.OpsMetadataLimitExceededException

  • SSM.Client.exceptions.InternalServerError