interface CountryRuleProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_smsvoice.CfnProtectConfiguration.CountryRuleProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssmsvoice#CfnProtectConfiguration_CountryRuleProperty |
![]() | software.amazon.awscdk.services.smsvoice.CfnProtectConfiguration.CountryRuleProperty |
![]() | aws_cdk.aws_smsvoice.CfnProtectConfiguration.CountryRuleProperty |
![]() | 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.