create_ops_metadata
async
¶
create_ops_metadata(
resource_id: OpsMetadataResourceId,
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
metadata: Optional[MetadataMap] = None,
tags: Optional[TagList] = None,
) -> CreateOpsMetadataResult
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.
Parameters:
-
resource_id(OpsMetadataResourceId) –A resource ID for a new Application Manager application.
-
metadata(Optional[MetadataMap], default:None) –Metadata for a new Application Manager application.
-
tags(Optional[TagList], default:None) –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
-
Raises:
-
InternalServerError–An error occurred on the server side.
-
OpsMetadataAlreadyExistsException–An OpsMetadata object already exists for the selected resource.
-
OpsMetadataInvalidArgumentException–One of the arguments passed is invalid.
-
OpsMetadataLimitExceededException–Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.
-
OpsMetadataTooManyUpdatesException–The system is processing too many concurrent updates. Wait a few moments and try again.
-
UnknownServiceError–The service returned an error code this client does not model.