Skip to main content

ops_metadatas

Creates, updates, deletes, gets or lists an ops_metadatas resource.

Overview

Nameops_metadatas
TypeResource
Idaws.ssm.ops_metadatas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metadataobjectOpsMetadata for an Application Manager application.
next_tokenstringThe token for the next set of items to return. Use this token to get the next set of results.
resource_idstringThe resource ID of the Application Manager application. (pattern: <code>^(?!\s*$).+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ops_metadataselectregionView operational metadata related to an application in Application Manager.
list_ops_metadataselectregionAmazon Web Services Systems Manager calls this API operation when displaying all Application Manager OpsMetadata objects or blobs.
create_ops_metadatainsertregion, ResourceIdIf 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.
update_ops_metadataupdateregion, OpsMetadataArnAmazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager.
delete_ops_metadatadeleteregionDelete OpsMetadata related to an application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

View operational metadata related to an application in Application Manager.

SELECT
metadata,
next_token,
resource_id
FROM aws.ssm.ops_metadatas
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.ssm.ops_metadatas (
ResourceId,
Metadata,
Tags,
region
)
SELECT
'{{ ResourceId }}' /* required */,
'{{ Metadata }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
ops_metadata_arn
;

UPDATE examples

Amazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager.

UPDATE aws.ssm.ops_metadatas
SET
OpsMetadataArn = '{{ OpsMetadataArn }}',
MetadataToUpdate = '{{ MetadataToUpdate }}',
KeysToDelete = '{{ KeysToDelete }}'
WHERE
region = '{{ region }}' --required
AND OpsMetadataArn = '{{ OpsMetadataArn }}' --required
RETURNING
ops_metadata_arn;

DELETE examples

Delete OpsMetadata related to an application.

DELETE FROM aws.ssm.ops_metadatas
WHERE region = '{{ region }}' --required
;