@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.407Z") public class CfnGeoMatchSet extends CfnResource implements IInspectable
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF , use the AWS WAF V2 API and see the AWS WAF Developer Guide . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Contains one or more countries that AWS WAF will search for.
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.waf.regional.*; CfnGeoMatchSet cfnGeoMatchSet = CfnGeoMatchSet.Builder.create(this, "MyCfnGeoMatchSet") .name("name") // the properties below are optional .geoMatchConstraints(List.of(GeoMatchConstraintProperty.builder() .type("type") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnGeoMatchSet.Builder
A fluent builder for
CfnGeoMatchSet . |
static interface |
CfnGeoMatchSet.GeoMatchConstraintProperty
> This is *AWS WAF Classic* documentation.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnGeoMatchSet(Construct scope,
java.lang.String id,
CfnGeoMatchSetProps props)
Create a new `AWS::WAFRegional::GeoMatchSet`.
|
protected |
CfnGeoMatchSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGeoMatchSet(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getGeoMatchConstraints()
An array of `GeoMatchConstraint` objects, which contain the country that you want AWS WAF to search for.
|
java.lang.String |
getName()
A friendly name or description of the `GeoMatchSet` .
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setGeoMatchConstraints(IResolvable value)
An array of `GeoMatchConstraint` objects, which contain the country that you want AWS WAF to search for.
|
void |
setGeoMatchConstraints(java.util.List<java.lang.Object> value)
An array of `GeoMatchConstraint` objects, which contain the country that you want AWS WAF to search for.
|
void |
setName(java.lang.String value)
A friendly name or description of the `GeoMatchSet` .
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnGeoMatchSet(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGeoMatchSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnGeoMatchSet(Construct scope, java.lang.String id, CfnGeoMatchSetProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getName()
You can't change the name of an GeoMatchSet
after you create it.
public void setName(java.lang.String value)
You can't change the name of an GeoMatchSet
after you create it.
public java.lang.Object getGeoMatchConstraints()
public void setGeoMatchConstraints(IResolvable value)
public void setGeoMatchConstraints(java.util.List<java.lang.Object> value)