Class: Aws::WAF::Types::CreateRuleRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::WAF::Types::CreateRuleRequest
- Defined in:
- gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb
Overview
Note:
When making an API call, you may pass CreateRuleRequest data as a hash:
{
name: "ResourceName", # required
metric_name: "MetricName", # required
change_token: "ChangeToken", # required
tags: [
{
key: "TagKey", # required
value: "TagValue", # required
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
-
#metric_name ⇒ String
A friendly name or description for the metrics for this
Rule
. -
#name ⇒ String
A friendly name or description of the Rule.
-
#tags ⇒ Array<Types::Tag>
Instance Attribute Details
#change_token ⇒ String
The value returned by the most recent call to GetChangeToken.
994 995 996 997 998 999 1000 1001 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 994 class CreateRuleRequest < Struct.new( :name, :metric_name, :change_token, :tags) SENSITIVE = [] include Aws::Structure end |
#metric_name ⇒ String
A friendly name or description for the metrics for this Rule
. The
name can contain only alphanumeric characters (A-Z, a-z, 0-9), with
maximum length 128 and minimum length one. It can't contain
whitespace or metric names reserved for AWS WAF, including "All"
and "Default_Action." You can't change the name of the metric
after you create the Rule
.
994 995 996 997 998 999 1000 1001 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 994 class CreateRuleRequest < Struct.new( :name, :metric_name, :change_token, :tags) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
A friendly name or description of the Rule. You can't change the
name of a Rule
after you create it.
994 995 996 997 998 999 1000 1001 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 994 class CreateRuleRequest < Struct.new( :name, :metric_name, :change_token, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
994 995 996 997 998 999 1000 1001 |
# File 'gems/aws-sdk-waf/lib/aws-sdk-waf/types.rb', line 994 class CreateRuleRequest < Struct.new( :name, :metric_name, :change_token, :tags) SENSITIVE = [] include Aws::Structure end |