# AWS::SSM::OpsMetadata Resource Type definition for AWS::SSM::OpsMetadata ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::SSM::OpsMetadata",
"Properties" : {
"ResourceId" : String,
"Metadata" : Metadata,
"Tags" : [ Tag, ... ],
}
}
### YAML
Type: AWS::SSM::OpsMetadata
Properties:
ResourceId: String
Metadata: Metadata
Tags:
- Tag
## Properties
#### ResourceId
Resource Id for which OpsMetadata is being created.
_Required_: Yes
_Type_: String
_Pattern_: ^(?!\s*$).+
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Metadata
A map of metadata key-value pairs to be stored in the OpsMetadata object.
_Required_: No
_Type_: Metadata
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
#### Tags
An array of tag key-value pairs to apply to this resource.
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the OpsMetadataArn.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### OpsMetadataArn
Arn of the OpsMetadata Object