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:
IEnvironmentAware,IInspectable,ITaggableV2,IProtectConfigurationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:15.465Z")
@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 classA fluent builder forCfnProtectConfiguration.static interfaceSpecifies the type of protection to use for a country.static interfaceThe set ofCountryRulesyou 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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.smsvoice.IProtectConfigurationRef
IProtectConfigurationRef.Jsii$Default, IProtectConfigurationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnProtectConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnProtectConfiguration(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 TypeMethodDescriptionstatic IProtectConfigurationReffromProtectConfigurationArn(software.constructs.Construct scope, String id, String arn) Creates a new IProtectConfigurationRef from an ARN.static IProtectConfigurationReffromProtectConfigurationId(software.constructs.Construct scope, String id, String protectConfigurationId) Creates a new IProtectConfigurationRef from a protectConfigurationId.The 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 ofCountryRulesyou 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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCountryRuleSet(IResolvable value) The set ofCountryRulesyou specify to control which countries End User Messaging can send your messages to.voidThe set ofCountryRulesyou specify to control which countries End User Messaging can send your messages to.voidThe status of deletion protection for the protect configuration.voidThe status of deletion protection for the protect configuration.voidAn 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, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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
-
fromProtectConfigurationArn
@Stability(Stable) @NotNull public static IProtectConfigurationRef fromProtectConfigurationArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IProtectConfigurationRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromProtectConfigurationId
@Stability(Stable) @NotNull public static IProtectConfigurationRef fromProtectConfigurationId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String protectConfigurationId) Creates a new IProtectConfigurationRef from a protectConfigurationId.- Parameters:
scope- This parameter is required.id- This parameter is required.protectConfigurationId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin 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:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getProtectConfigurationRef
A reference to a ProtectConfiguration resource.- Specified by:
getProtectConfigurationRefin interfaceIProtectConfigurationRef
-
getCountryRuleSet
The set ofCountryRulesyou specify to control which countries End User Messaging can send your messages to.Returns union: either
IResolvableorCfnProtectConfiguration.CountryRuleSetProperty -
setCountryRuleSet
The set ofCountryRulesyou 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 ofCountryRulesyou specify to control which countries End User Messaging can send your messages to. -
getDeletionProtectionEnabled
The status of deletion protection for the protect configuration.Returns union: either
BooleanorIResolvable -
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.
-