You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::WAF::Types::CreateRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateRuleRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  name: "ResourceName", # required
  metric_name: "MetricName", # required
  change_token: "ChangeToken", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#change_tokenString

The value returned by the most recent call to GetChangeToken.

Returns:

  • (String)

    The value returned by the most recent call to GetChangeToken.

#metric_nameString

A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can\'t contain whitespace. You can\'t change the name of the metric after you create the Rule.

Returns:

  • (String)

    A friendly name or description for the metrics for this Rule.

#nameString

A friendly name or description of the Rule. You can\'t change the name of a Rule after you create it.

Returns:

  • (String)

    A friendly name or description of the Rule.