interface CountryRuleProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SMSVOICE.CfnProtectConfiguration.CountryRuleProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssmsvoice#CfnProtectConfiguration_CountryRuleProperty |
Java | software.amazon.awscdk.services.smsvoice.CfnProtectConfiguration.CountryRuleProperty |
Python | aws_cdk.aws_smsvoice.CfnProtectConfiguration.CountryRuleProperty |
TypeScript | aws-cdk-lib » aws_smsvoice » CfnProtectConfiguration » 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 { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const countryRuleProperty: smsvoice.CfnProtectConfiguration.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
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
protectStatus
Type:
string
The types of protection that can be used.

.NET
Go
Java
Python
TypeScript