interface CountryRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.SMSVOICE.Mixins.CfnProtectConfigurationPropsMixin.CountryRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awssmsvoice/mixins#CfnProtectConfigurationPropsMixin_CountryRuleProperty |
Java | software.amazon.awscdk.mixins.preview.services.smsvoice.mixins.CfnProtectConfigurationPropsMixin.CountryRuleProperty |
Python | aws_cdk.mixins_preview.aws_smsvoice.mixins.CfnProtectConfigurationPropsMixin.CountryRuleProperty |
TypeScript | @aws-cdk/mixins-preview » aws_smsvoice » mixins » CfnProtectConfigurationPropsMixin » CountryRuleProperty |
Specifies the type of protection to use for a country.
For example, to set Canada as allowed, the CountryRule would be formatted as follows:
{ "CountryCode": "CA", "ProtectStatus": "ALLOW" }
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as smsvoice_mixins } from '@aws-cdk/mixins-preview/aws-smsvoice';
const countryRuleProperty: smsvoice_mixins.CfnProtectConfigurationPropsMixin.CountryRuleProperty = {
countryCode: 'countryCode',
protectStatus: 'protectStatus',
};
Properties
| Name | Type | Description |
|---|---|---|
| country | string | The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. |
| protect | string | The types of protection that can be used. |
countryCode?
Type:
string
(optional)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
protectStatus?
Type:
string
(optional)
The types of protection that can be used.

.NET
Go
Java
Python
TypeScript