

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::SageMaker::ModelExplainabilityJobDefinition Tag
<a name="aws-properties-sagemaker-modelexplainabilityjobdefinition-tag"></a>

A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon resources.

You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see [AddTags](https://docs.amazonaws.cn/sagemaker/latest/APIReference/API_AddTags.html).

For more information on adding metadata to your Amazon resources with tagging, see [Tagging Amazon resources](https://docs.amazonaws.cn/general/latest/gr/aws_tagging.html). For advice on best practices for managing Amazon resources with tagging, see [Tagging Best Practices: Implement an Effective Amazon Resource Tagging Strategy](https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf).

## Syntax
<a name="aws-properties-sagemaker-modelexplainabilityjobdefinition-tag-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-sagemaker-modelexplainabilityjobdefinition-tag-syntax.json"></a>

```
{
  "[Key](#cfn-sagemaker-modelexplainabilityjobdefinition-tag-key)" : String,
  "[Value](#cfn-sagemaker-modelexplainabilityjobdefinition-tag-value)" : String
}
```

### YAML
<a name="aws-properties-sagemaker-modelexplainabilityjobdefinition-tag-syntax.yaml"></a>

```
  [Key](#cfn-sagemaker-modelexplainabilityjobdefinition-tag-key): String
  [Value](#cfn-sagemaker-modelexplainabilityjobdefinition-tag-value): String
```

## Properties
<a name="aws-properties-sagemaker-modelexplainabilityjobdefinition-tag-properties"></a>

`Key`  <a name="cfn-sagemaker-modelexplainabilityjobdefinition-tag-key"></a>
The tag key. Tag keys must be unique per resource.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$`  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Value`  <a name="cfn-sagemaker-modelexplainabilityjobdefinition-tag-value"></a>
The tag value.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$`  
*Maximum*: `256`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)