Class ByteMatchSet
Provides a WAF Byte Match Set Resource
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var byteSet = new Aws.Waf.ByteMatchSet("byteSet", new Aws.Waf.ByteMatchSetArgs
{
ByteMatchTuples =
{
new Aws.Waf.Inputs.ByteMatchSetByteMatchTupleArgs
{
FieldToMatch = new Aws.Waf.Inputs.ByteMatchSetByteMatchTupleFieldToMatchArgs
{
Data = "referer",
Type = "HEADER",
},
PositionalConstraint = "CONTAINS",
TargetString = "badrefer1",
TextTransformation = "NONE",
},
},
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Waf
Assembly: Pulumi.Aws.dll
Syntax
public class ByteMatchSet : CustomResource
Constructors
View SourceByteMatchSet(String, ByteMatchSetArgs, CustomResourceOptions)
Create a ByteMatchSet resource with the given unique name, arguments, and options.
Declaration
public ByteMatchSet(string name, ByteMatchSetArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ByteMatchSetArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceByteMatchTuples
Specifies the bytes (typically a string that corresponds with ASCII characters) that you want to search for in web requests, the location in requests that you want to search, and other settings.
Declaration
public Output<ImmutableArray<ByteMatchSetByteMatchTuple>> ByteMatchTuples { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ByteMatchSetByteMatchTuple>> |
Name
The name or description of the Byte Match Set.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ByteMatchSetState, CustomResourceOptions)
Get an existing ByteMatchSet resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ByteMatchSet Get(string name, Input<string> id, ByteMatchSetState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ByteMatchSetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ByteMatchSet |