Class CfnRegexPatternSet
This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019.
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRegexPatternSet : CfnResource, IInspectable, IRegexPatternSetRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnRegexPatternSet Inherits CfnResource Implements IInspectable, IRegexPatternSetRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
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.AWS.WAFv2;
var cfnRegexPatternSet = new CfnRegexPatternSet(this, "MyCfnRegexPatternSet", new CfnRegexPatternSetProps {
RegularExpressionList = new [] { "regularExpressionList" },
Scope = "scope",
// the properties below are optional
Description = "description",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnRegexPatternSet(Construct, string, ICfnRegexPatternSetProps) | Create a new |
Properties
| AttrArn | The Amazon Resource Name (ARN) of the regex pattern set. |
| AttrId | The ID of the regex pattern set. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019. |
| Description | A description of the set that helps with identification. |
| Name | The name of the set. |
| RegexPatternSetRef | A reference to a RegexPatternSet resource. |
| RegularExpressionList | The regular expression patterns in the set. |
| Scope | Specifies whether this is for an Amazon CloudFront distribution or for a regional application. |
| Tags | Tag Manager which manages the tags for this resource. |
| TagsRaw | Key:value pairs associated with an AWS resource. |
Methods
| ArnForRegexPatternSet(IRegexPatternSetRef) | This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019. |
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnRegexPatternSet(object) | Checks whether the given object is a CfnRegexPatternSet. |
| RenderProperties(IDictionary<string, object>) | This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019. |
Constructors
CfnRegexPatternSet(Construct, string, ICfnRegexPatternSetProps)
Create a new AWS::WAFv2::RegexPatternSet.
public CfnRegexPatternSet(Construct scope, string id, ICfnRegexPatternSetProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnRegexPatternSetProps
Resource properties.
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Properties
AttrArn
The Amazon Resource Name (ARN) of the regex pattern set.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrId
The ID of the regex pattern set.
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
CfnProperties
This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Description
A description of the set that helps with identification.
public virtual string? Description { get; set; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Name
The name of the set.
public virtual string? Name { get; set; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
RegexPatternSetRef
A reference to a RegexPatternSet resource.
public virtual IRegexPatternSetReference RegexPatternSetRef { get; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
RegularExpressionList
The regular expression patterns in the set.
public virtual string[] RegularExpressionList { get; set; }
Property Value
string[]
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Scope
Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
public virtual string Scope { get; set; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
TagsRaw
Key:value pairs associated with an AWS resource.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
Methods
ArnForRegexPatternSet(IRegexPatternSetRef)
This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019.
public static string ArnForRegexPatternSet(IRegexPatternSetRef resource)
Parameters
- resource IRegexPatternSetRef
Returns
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
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.AWS.WAFv2;
var cfnRegexPatternSet = new CfnRegexPatternSet(this, "MyCfnRegexPatternSet", new CfnRegexPatternSetProps {
RegularExpressionList = new [] { "regularExpressionList" },
Scope = "scope",
// the properties below are optional
Description = "description",
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
IsCfnRegexPatternSet(object)
Checks whether the given object is a CfnRegexPatternSet.
public static bool IsCfnRegexPatternSet(object x)
Parameters
- x object
Returns
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
This is the latest version of AWS WAF , named AWS WAF V2, released in November, 2019.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF developer guide .
Use an RegexPatternSet to have AWS WAF inspect a web request component for a specific set of regular expression patterns.
You use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement RegexPatternSetReferenceStatement , when you add a rule to a rule group or web ACL.
CloudformationResource: AWS::WAFv2::RegexPatternSet
ExampleMetadata: fixture=_generated