Class CfnProtectConfigurationPropsMixin.CountryRuleProperty
Specifies the type of protection to use for a country.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.SMSVOICE.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnProtectConfigurationPropsMixin.CountryRuleProperty : CfnProtectConfigurationPropsMixin.ICountryRuleProperty
Syntax (vb)
Public Class CfnProtectConfigurationPropsMixin.CountryRuleProperty Implements CfnProtectConfigurationPropsMixin.ICountryRuleProperty
Remarks
For example, to set Canada as allowed, the CountryRule would be formatted as follows:
{ "CountryCode": "CA", "ProtectStatus": "ALLOW" }
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.SMSVOICE.Mixins;
var countryRuleProperty = new CountryRuleProperty {
CountryCode = "countryCode",
ProtectStatus = "protectStatus"
};
Synopsis
Constructors
| CountryRuleProperty() | Specifies the type of protection to use for a country. |
Properties
| CountryCode | The two-character code, in ISO 3166-1 alpha-2 format, for the country or region. |
| ProtectStatus | The types of protection that can be used. |
Constructors
CountryRuleProperty()
Specifies the type of protection to use for a country.
public CountryRuleProperty()
Remarks
For example, to set Canada as allowed, the CountryRule would be formatted as follows:
{ "CountryCode": "CA", "ProtectStatus": "ALLOW" }
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.SMSVOICE.Mixins;
var countryRuleProperty = new CountryRuleProperty {
CountryCode = "countryCode",
ProtectStatus = "protectStatus"
};
Properties
CountryCode
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
public string? CountryCode { get; set; }
Property Value
Remarks
ProtectStatus
The types of protection that can be used.
public string? ProtectStatus { get; set; }