Class CfnProtectConfiguration
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.smsvoice.CfnProtectConfiguration
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,IProtectConfigurationRef
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-25T11:29:17.652Z")
@Stability(Stable)
public class CfnProtectConfiguration
extends CfnResource
implements IInspectable, IProtectConfigurationRef, ITaggableV2
Create a new protect configuration.
By default all country rule sets for each capability are set to ALLOW
. A protect configurations name is stored as a Tag with the key set to Name
and value as the name of the protect configuration.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.smsvoice.*; CfnProtectConfiguration cfnProtectConfiguration = CfnProtectConfiguration.Builder.create(this, "MyCfnProtectConfiguration") .countryRuleSet(CountryRuleSetProperty.builder() .mms(List.of(CountryRuleProperty.builder() .countryCode("countryCode") .protectStatus("protectStatus") .build())) .sms(List.of(CountryRuleProperty.builder() .countryCode("countryCode") .protectStatus("protectStatus") .build())) .voice(List.of(CountryRuleProperty.builder() .countryCode("countryCode") .protectStatus("protectStatus") .build())) .build()) .deletionProtectionEnabled(false) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnProtectConfiguration
.static interface
Specifies the type of protection to use for a country.static interface
The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.smsvoice.IProtectConfigurationRef
IProtectConfigurationRef.Jsii$Default, IProtectConfigurationRef.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnProtectConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnProtectConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) CfnProtectConfiguration
(software.constructs.Construct scope, String id) CfnProtectConfiguration
(software.constructs.Construct scope, String id, CfnProtectConfigurationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the protect configuration.The unique identifier for the protect configuration.Tag Manager which manages the tags for this resource.The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.The status of deletion protection for the protect configuration.A reference to a ProtectConfiguration resource.getTags()
An array of key and value pair tags that are associated with the resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCountryRuleSet
(IResolvable value) The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.void
The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to.void
The status of deletion protection for the protect configuration.void
The status of deletion protection for the protect configuration.void
An array of key and value pair tags that are associated with the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnProtectConfiguration
protected CfnProtectConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnProtectConfiguration
protected CfnProtectConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnProtectConfiguration
@Stability(Stable) public CfnProtectConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnProtectConfigurationProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties.
-
CfnProtectConfiguration
@Stability(Stable) public CfnProtectConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the protect configuration. -
getAttrProtectConfigurationId
The unique identifier for the protect configuration. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getProtectConfigurationRef
A reference to a ProtectConfiguration resource.- Specified by:
getProtectConfigurationRef
in interfaceIProtectConfigurationRef
-
getCountryRuleSet
The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to. -
setCountryRuleSet
The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to. -
setCountryRuleSet
@Stability(Stable) public void setCountryRuleSet(@Nullable CfnProtectConfiguration.CountryRuleSetProperty value) The set ofCountryRules
you specify to control which countries End User Messaging can send your messages to. -
getDeletionProtectionEnabled
The status of deletion protection for the protect configuration. -
setDeletionProtectionEnabled
The status of deletion protection for the protect configuration. -
setDeletionProtectionEnabled
The status of deletion protection for the protect configuration. -
getTags
An array of key and value pair tags that are associated with the resource. -
setTags
An array of key and value pair tags that are associated with the resource.
-