

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::SSM::ServiceSetting
<a name="aws-resource-ssm-servicesetting"></a>

The service setting data structure.

`ServiceSetting` is an account-level setting for an Amazon service. This setting defines how a user interacts with or uses a service or a feature of a service. For example, if an Amazon service charges money to the account based on feature or service usage, then the Amazon service team might create a default setting of "false". This means the user can't use this feature unless they change the setting to "true" and intentionally opt in for a paid feature.

Services map a `SettingId` object to a setting value. Amazon services teams define the default value for a `SettingId`. You can't create a new `SettingId`, but you can overwrite the default value if you have the `ssm:UpdateServiceSetting` permission for the setting. Use the UpdateServiceSetting API operation to change the default setting. Or, use the ResetServiceSetting to change the value back to the original value defined by the Amazon service team.

## Syntax
<a name="aws-resource-ssm-servicesetting-syntax"></a>

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

### JSON
<a name="aws-resource-ssm-servicesetting-syntax.json"></a>

```
{
  "Type" : "AWS::SSM::ServiceSetting",
  "Properties" : {
      "[SettingId](#cfn-ssm-servicesetting-settingid)" : {{String}},
      "[SettingValue](#cfn-ssm-servicesetting-settingvalue)" : {{String}}
    }
}
```

### YAML
<a name="aws-resource-ssm-servicesetting-syntax.yaml"></a>

```
Type: AWS::SSM::ServiceSetting
Properties:
  [SettingId](#cfn-ssm-servicesetting-settingid): {{String}}
  [SettingValue](#cfn-ssm-servicesetting-settingvalue): {{String}}
```

## Properties
<a name="aws-resource-ssm-servicesetting-properties"></a>

`SettingId`  <a name="cfn-ssm-servicesetting-settingid"></a>
The ID of the service setting.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `1000`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SettingValue`  <a name="cfn-ssm-servicesetting-settingvalue"></a>
The value of the service setting.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `4096`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-ssm-servicesetting-return-values"></a>

### Ref
<a name="aws-resource-ssm-servicesetting-return-values-ref"></a>

### Fn::GetAtt
<a name="aws-resource-ssm-servicesetting-return-values-fn--getatt"></a>

#### 
<a name="aws-resource-ssm-servicesetting-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The ARN of the service setting.

`LastModifiedDate`  <a name="LastModifiedDate-fn::getatt"></a>
The last time the service setting was modified.

`LastModifiedUser`  <a name="LastModifiedUser-fn::getatt"></a>
The ARN of the last modified user. This field is populated only if the setting value was overwritten.

`Status`  <a name="Status-fn::getatt"></a>
The status of the service setting. The value can be Default, Customized or PendingUpdate.  
+ Default: The current setting uses a default value provisioned by the Amazon service team.
+ Customized: The current setting use a custom value specified by the customer.
+ PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending approval.