Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a RegexPatternSet, which you reference in a RegexPatternSetReferenceStatement, to have WAF inspect a web request component for the specified patterns.
Synopsis
- data CreateRegexPatternSet = CreateRegexPatternSet' {}
- newCreateRegexPatternSet :: Text -> Scope -> CreateRegexPatternSet
- createRegexPatternSet_description :: Lens' CreateRegexPatternSet (Maybe Text)
- createRegexPatternSet_tags :: Lens' CreateRegexPatternSet (Maybe (NonEmpty Tag))
- createRegexPatternSet_name :: Lens' CreateRegexPatternSet Text
- createRegexPatternSet_scope :: Lens' CreateRegexPatternSet Scope
- createRegexPatternSet_regularExpressionList :: Lens' CreateRegexPatternSet [Regex]
- data CreateRegexPatternSetResponse = CreateRegexPatternSetResponse' {}
- newCreateRegexPatternSetResponse :: Int -> CreateRegexPatternSetResponse
- createRegexPatternSetResponse_summary :: Lens' CreateRegexPatternSetResponse (Maybe RegexPatternSetSummary)
- createRegexPatternSetResponse_httpStatus :: Lens' CreateRegexPatternSetResponse Int
Creating a Request
data CreateRegexPatternSet Source #
See: newCreateRegexPatternSet
smart constructor.
CreateRegexPatternSet' | |
|
Instances
newCreateRegexPatternSet Source #
Create a value of CreateRegexPatternSet
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateRegexPatternSet
, createRegexPatternSet_description
- A description of the set that helps with identification.
CreateRegexPatternSet
, createRegexPatternSet_tags
- An array of key:value pairs to associate with the resource.
CreateRegexPatternSet
, createRegexPatternSet_name
- The name of the set. You cannot change the name after you create the
set.
CreateRegexPatternSet
, createRegexPatternSet_scope
- Specifies whether this is for an Amazon CloudFront distribution or for a
regional application. A regional application can be an Application Load
Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
or an Amazon Cognito user pool.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
- CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. - API and SDKs - For all calls, use the Region endpoint us-east-1.
CreateRegexPatternSet
, createRegexPatternSet_regularExpressionList
- Array of regular expression strings.
Request Lenses
createRegexPatternSet_description :: Lens' CreateRegexPatternSet (Maybe Text) Source #
A description of the set that helps with identification.
createRegexPatternSet_tags :: Lens' CreateRegexPatternSet (Maybe (NonEmpty Tag)) Source #
An array of key:value pairs to associate with the resource.
createRegexPatternSet_name :: Lens' CreateRegexPatternSet Text Source #
The name of the set. You cannot change the name after you create the set.
createRegexPatternSet_scope :: Lens' CreateRegexPatternSet Scope Source #
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
- CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. - API and SDKs - For all calls, use the Region endpoint us-east-1.
createRegexPatternSet_regularExpressionList :: Lens' CreateRegexPatternSet [Regex] Source #
Array of regular expression strings.
Destructuring the Response
data CreateRegexPatternSetResponse Source #
See: newCreateRegexPatternSetResponse
smart constructor.
CreateRegexPatternSetResponse' | |
|
Instances
newCreateRegexPatternSetResponse Source #
Create a value of CreateRegexPatternSetResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:summary:CreateRegexPatternSetResponse'
, createRegexPatternSetResponse_summary
- High-level information about a RegexPatternSet, returned by operations
like create and list. This provides information like the ID, that you
can use to retrieve and manage a RegexPatternSet
, and the ARN, that
you provide to the RegexPatternSetReferenceStatement to use the pattern
set in a Rule.
$sel:httpStatus:CreateRegexPatternSetResponse'
, createRegexPatternSetResponse_httpStatus
- The response's http status code.
Response Lenses
createRegexPatternSetResponse_summary :: Lens' CreateRegexPatternSetResponse (Maybe RegexPatternSetSummary) Source #
High-level information about a RegexPatternSet, returned by operations
like create and list. This provides information like the ID, that you
can use to retrieve and manage a RegexPatternSet
, and the ARN, that
you provide to the RegexPatternSetReferenceStatement to use the pattern
set in a Rule.
createRegexPatternSetResponse_httpStatus :: Lens' CreateRegexPatternSetResponse Int Source #
The response's http status code.