XssMatchSet
Provides a WAF Regional XSS Match Set Resource for use with Application Load Balancer.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var xssMatchSet = new Aws.WafRegional.XssMatchSet("xssMatchSet", new Aws.WafRegional.XssMatchSetArgs
{
XssMatchTuples =
{
new Aws.WafRegional.Inputs.XssMatchSetXssMatchTupleArgs
{
FieldToMatch = new Aws.WafRegional.Inputs.XssMatchSetXssMatchTupleFieldToMatchArgs
{
Type = "URI",
},
TextTransformation = "NONE",
},
new Aws.WafRegional.Inputs.XssMatchSetXssMatchTupleArgs
{
FieldToMatch = new Aws.WafRegional.Inputs.XssMatchSetXssMatchTupleFieldToMatchArgs
{
Type = "QUERY_STRING",
},
TextTransformation = "NONE",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/wafregional"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wafregional.NewXssMatchSet(ctx, "xssMatchSet", &wafregional.XssMatchSetArgs{
XssMatchTuples: wafregional.XssMatchSetXssMatchTupleArray{
&wafregional.XssMatchSetXssMatchTupleArgs{
FieldToMatch: &wafregional.XssMatchSetXssMatchTupleFieldToMatchArgs{
Type: pulumi.String("URI"),
},
TextTransformation: pulumi.String("NONE"),
},
&wafregional.XssMatchSetXssMatchTupleArgs{
FieldToMatch: &wafregional.XssMatchSetXssMatchTupleFieldToMatchArgs{
Type: pulumi.String("QUERY_STRING"),
},
TextTransformation: pulumi.String("NONE"),
},
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
xss_match_set = aws.wafregional.XssMatchSet("xssMatchSet", xss_match_tuples=[
{
"fieldToMatch": {
"type": "URI",
},
"textTransformation": "NONE",
},
{
"fieldToMatch": {
"type": "QUERY_STRING",
},
"textTransformation": "NONE",
},
])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const xssMatchSet = new aws.wafregional.XssMatchSet("xss_match_set", {
xssMatchTuples: [
{
fieldToMatch: {
type: "URI",
},
textTransformation: "NONE",
},
{
fieldToMatch: {
type: "QUERY_STRING",
},
textTransformation: "NONE",
},
],
});Create a XssMatchSet Resource
new XssMatchSet(name: string, args?: XssMatchSetArgs, opts?: CustomResourceOptions);def XssMatchSet(resource_name, opts=None, name=None, xss_match_tuples=None, __props__=None);func NewXssMatchSet(ctx *Context, name string, args *XssMatchSetArgs, opts ...ResourceOption) (*XssMatchSet, error)public XssMatchSet(string name, XssMatchSetArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args XssMatchSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args XssMatchSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args XssMatchSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
XssMatchSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The XssMatchSet resource accepts the following input properties:
- Name string
The name of the set
- Xss
Match List<XssTuples Match Set Xss Match Tuple Args> The parts of web requests that you want to inspect for cross-site scripting attacks.
- Name string
The name of the set
- Xss
Match []XssTuples Match Set Xss Match Tuple The parts of web requests that you want to inspect for cross-site scripting attacks.
- name string
The name of the set
- xss
Match XssTuples Match Set Xss Match Tuple[] The parts of web requests that you want to inspect for cross-site scripting attacks.
- name str
The name of the set
- xss_
match_ List[Xsstuples Match Set Xss Match Tuple] The parts of web requests that you want to inspect for cross-site scripting attacks.
Outputs
All input properties are implicitly available as output properties. Additionally, the XssMatchSet resource produces the following output properties:
Look up an Existing XssMatchSet Resource
Get an existing XssMatchSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: XssMatchSetState, opts?: CustomResourceOptions): XssMatchSetstatic get(resource_name, id, opts=None, name=None, xss_match_tuples=None, __props__=None);func GetXssMatchSet(ctx *Context, name string, id IDInput, state *XssMatchSetState, opts ...ResourceOption) (*XssMatchSet, error)public static XssMatchSet Get(string name, Input<string> id, XssMatchSetState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Name string
The name of the set
- Xss
Match List<XssTuples Match Set Xss Match Tuple Args> The parts of web requests that you want to inspect for cross-site scripting attacks.
- Name string
The name of the set
- Xss
Match []XssTuples Match Set Xss Match Tuple The parts of web requests that you want to inspect for cross-site scripting attacks.
- name string
The name of the set
- xss
Match XssTuples Match Set Xss Match Tuple[] The parts of web requests that you want to inspect for cross-site scripting attacks.
- name str
The name of the set
- xss_
match_ List[Xsstuples Match Set Xss Match Tuple] The parts of web requests that you want to inspect for cross-site scripting attacks.
Supporting Types
XssMatchSetXssMatchTuple
- Field
To XssMatch Match Set Xss Match Tuple Field To Match Args Specifies where in a web request to look for cross-site scripting attacks.
- Text
Transformation string Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.
- Field
To XssMatch Match Set Xss Match Tuple Field To Match Specifies where in a web request to look for cross-site scripting attacks.
- Text
Transformation string Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.
- field
To XssMatch Match Set Xss Match Tuple Field To Match Specifies where in a web request to look for cross-site scripting attacks.
- text
Transformation string Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.
- field
To Dict[XssMatch Match Set Xss Match Tuple Field To Match] Specifies where in a web request to look for cross-site scripting attacks.
- text
Transformation str Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks.
XssMatchSetXssMatchTupleFieldToMatch
- Type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADERorMETHOD- Data string
When the value of
typeisHEADER, enter the name of the header that you want the WAF to search, for example,User-AgentorReferer. If the value oftypeis any other value, omitdata.
- Type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADERorMETHOD- Data string
When the value of
typeisHEADER, enter the name of the header that you want the WAF to search, for example,User-AgentorReferer. If the value oftypeis any other value, omitdata.
- type string
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADERorMETHOD- data string
When the value of
typeisHEADER, enter the name of the header that you want the WAF to search, for example,User-AgentorReferer. If the value oftypeis any other value, omitdata.
- type str
The part of the web request that you want AWS WAF to search for a specified string. e.g.
HEADERorMETHOD- data str
When the value of
typeisHEADER, enter the name of the header that you want the WAF to search, for example,User-AgentorReferer. If the value oftypeis any other value, omitdata.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.