Show / Hide Table of Contents

Class CfnRulePropsMixin

This is AWS WAF Classic documentation.

Inheritance
object
Mixin
CfnRulePropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.WAF
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnRulePropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnRulePropsMixin Inherits Mixin Implements IMixin
Remarks

For more information, see AWS WAF Classic in the developer guide.

<em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.

A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

    To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

    CloudformationResource: AWS::WAF::Rule

    Mixin: true

    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.CfnPropertyMixins.AWS.WAF;
                 using Amazon.CDK;
    
                 IMergeStrategy mergeStrategy;
    
                 var cfnRulePropsMixin = new CfnRulePropsMixin(new CfnRuleMixinProps {
                     MetricName = "metricName",
                     Name = "name",
                     Predicates = new [] { new PredicateProperty {
                         DataId = "dataId",
                         Negated = false,
                         Type = "type"
                     } }
                 }, new CfnPropertyMixinOptions {
                     Strategy = mergeStrategy
                 });

    Synopsis

    Constructors

    CfnRulePropsMixin(ICfnRuleMixinProps, ICfnPropertyMixinOptions?)

    Create a mixin to apply properties to AWS::WAF::Rule.

    Properties

    CFN_PROPERTY_KEYS

    This is AWS WAF Classic documentation.

    Props

    This is AWS WAF Classic documentation.

    Strategy

    This is AWS WAF Classic documentation.

    Methods

    ApplyTo(IConstruct)

    Apply the mixin properties to the construct.

    Supports(IConstruct)

    Check if this mixin supports the given construct.

    Constructors

    CfnRulePropsMixin(ICfnRuleMixinProps, ICfnPropertyMixinOptions?)

    Create a mixin to apply properties to AWS::WAF::Rule.

    public CfnRulePropsMixin(ICfnRuleMixinProps props, ICfnPropertyMixinOptions? options = null)
    Parameters
    props ICfnRuleMixinProps

    L1 properties to apply.

    options ICfnPropertyMixinOptions

    Mixin options.

    Remarks

    For more information, see AWS WAF Classic in the developer guide.

    <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
    

    A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

      To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

      CloudformationResource: AWS::WAF::Rule

      Mixin: true

      ExampleMetadata: fixture=_generated

      Properties

      CFN_PROPERTY_KEYS

      This is AWS WAF Classic documentation.

      protected static string[] CFN_PROPERTY_KEYS { get; }
      Property Value

      string[]

      Remarks

      For more information, see AWS WAF Classic in the developer guide.

      <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
      

      A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

        To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

        See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

        CloudformationResource: AWS::WAF::Rule

        Mixin: true

        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.CfnPropertyMixins.AWS.WAF;
                     using Amazon.CDK;
        
                     IMergeStrategy mergeStrategy;
        
                     var cfnRulePropsMixin = new CfnRulePropsMixin(new CfnRuleMixinProps {
                         MetricName = "metricName",
                         Name = "name",
                         Predicates = new [] { new PredicateProperty {
                             DataId = "dataId",
                             Negated = false,
                             Type = "type"
                         } }
                     }, new CfnPropertyMixinOptions {
                         Strategy = mergeStrategy
                     });

        Props

        This is AWS WAF Classic documentation.

        protected virtual ICfnRuleMixinProps Props { get; }
        Property Value

        ICfnRuleMixinProps

        Remarks

        For more information, see AWS WAF Classic in the developer guide.

        <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
        

        A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

          To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

          See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

          CloudformationResource: AWS::WAF::Rule

          Mixin: true

          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.CfnPropertyMixins.AWS.WAF;
                       using Amazon.CDK;
          
                       IMergeStrategy mergeStrategy;
          
                       var cfnRulePropsMixin = new CfnRulePropsMixin(new CfnRuleMixinProps {
                           MetricName = "metricName",
                           Name = "name",
                           Predicates = new [] { new PredicateProperty {
                               DataId = "dataId",
                               Negated = false,
                               Type = "type"
                           } }
                       }, new CfnPropertyMixinOptions {
                           Strategy = mergeStrategy
                       });

          Strategy

          This is AWS WAF Classic documentation.

          protected virtual IMergeStrategy Strategy { get; }
          Property Value

          IMergeStrategy

          Remarks

          For more information, see AWS WAF Classic in the developer guide.

          <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
          

          A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

            To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

            See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

            CloudformationResource: AWS::WAF::Rule

            Mixin: true

            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.CfnPropertyMixins.AWS.WAF;
                         using Amazon.CDK;
            
                         IMergeStrategy mergeStrategy;
            
                         var cfnRulePropsMixin = new CfnRulePropsMixin(new CfnRuleMixinProps {
                             MetricName = "metricName",
                             Name = "name",
                             Predicates = new [] { new PredicateProperty {
                                 DataId = "dataId",
                                 Negated = false,
                                 Type = "type"
                             } }
                         }, new CfnPropertyMixinOptions {
                             Strategy = mergeStrategy
                         });

            Methods

            ApplyTo(IConstruct)

            Apply the mixin properties to the construct.

            public override void ApplyTo(IConstruct construct)
            Parameters
            construct IConstruct
            Overrides
            Mixin.ApplyTo(IConstruct)
            Remarks

            For more information, see AWS WAF Classic in the developer guide.

            <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
            

            A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

              To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

              See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

              CloudformationResource: AWS::WAF::Rule

              Mixin: true

              ExampleMetadata: fixture=_generated

              Supports(IConstruct)

              Check if this mixin supports the given construct.

              public override bool Supports(IConstruct construct)
              Parameters
              construct IConstruct
              Returns

              bool

              Overrides
              Mixin.Supports(IConstruct)
              Remarks

              For more information, see AWS WAF Classic in the developer guide.

              <em>For the latest version of AWS WAF</em> , use the AWS WAF V2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a> . With the latest version, AWS WAF has a single set of endpoints for regional and global use.
              

              A combination of ByteMatchSet , IPSet , and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count. For example, you might create a Rule that includes the following predicates:

                To match the settings in this Rule , a request must originate from 192.0.2.44 AND include a User-Agent header for which the value is BadBot .

                See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

                CloudformationResource: AWS::WAF::Rule

                Mixin: true

                ExampleMetadata: fixture=_generated

                Implements

                Constructs.IMixin
                Back to top Generated by DocFX