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

Class: Aws::NetworkFirewall::Client

Inherits:
Seahorse::Client::Base show all
Defined in:
(unknown)

Overview

An API client for AWS Network Firewall. To construct a client, you need to configure a :region and :credentials.

networkfirewall = Aws::NetworkFirewall::Client.new(
  region: region_name,
  credentials: credentials,
  # ...
)

See #initialize for a full list of supported configuration options.

Region

You can configure a default region in the following locations:

  • ENV['AWS_REGION']
  • Aws.config[:region]

Go here for a list of supported regions.

Credentials

Default credentials are loaded automatically from the following locations:

  • ENV['AWS_ACCESS_KEY_ID'] and ENV['AWS_SECRET_ACCESS_KEY']
  • Aws.config[:credentials]
  • The shared credentials ini file at ~/.aws/credentials (more information)
  • From an instance profile when running on EC2

You can also construct a credentials object from one of the following classes:

Alternatively, you configure credentials with :access_key_id and :secret_access_key:

# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))

Aws::NetworkFirewall::Client.new(
  access_key_id: creds['access_key_id'],
  secret_access_key: creds['secret_access_key']
)

Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Base

#config, #handlers

Constructor collapse

API Operations collapse

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Base

add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Constructor Details

#initialize(options = {}) ⇒ Aws::NetworkFirewall::Client

Constructs an API client.

Options Hash (options):

  • :access_key_id (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :active_endpoint_cache (Boolean)

    When set to true, a thread polling for endpoints will be running in the background every 60 secs (default). Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :convert_params (Boolean) — default: true

    When true, an attempt is made to coerce request parameters into the required types. See Plugins::ParamConverter for more details.

  • :credentials (required, Credentials)

    Your AWS credentials. The following locations will be searched in order for credentials:

    • :access_key_id, :secret_access_key, and :session_token options
    • ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
    • HOME/.aws/credentials shared credentials file
    • EC2 instance profile credentials See Plugins::RequestSigner for more details.
  • :disable_host_prefix_injection (Boolean)

    Set to true to disable SDK automatically adding host prefix to default service endpoint when available. See Plugins::EndpointPattern for more details.

  • :endpoint (String)

    A default endpoint is constructed from the :region. See Plugins::RegionalEndpoint for more details.

  • :endpoint_cache_max_entries (Integer)

    Used for the maximum size limit of the LRU cache storing endpoints data for endpoint discovery enabled operations. Defaults to 1000. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_max_threads (Integer)

    Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. See Plugins::EndpointDiscovery for more details.

  • :endpoint_cache_poll_interval (Integer)

    When :endpoint_discovery and :active_endpoint_cache is enabled, Use this option to config the time interval in seconds for making requests fetching endpoints information. Defaults to 60 sec. See Plugins::EndpointDiscovery for more details.

  • :endpoint_discovery (Boolean)

    When set to true, endpoint discovery will be enabled for operations when available. Defaults to false. See Plugins::EndpointDiscovery for more details.

  • :http_continue_timeout (Float) — default: 1

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_idle_timeout (Integer) — default: 5

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_open_timeout (Integer) — default: 15

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_proxy (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_read_timeout (Integer) — default: 60

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :http_wire_trace (Boolean) — default: false

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :log_level (Symbol) — default: :info

    The log level to send messages to the logger at. See Plugins::Logging for more details.

  • :log_formatter (Logging::LogFormatter)

    The log formatter. Defaults to Seahorse::Client::Logging::Formatter.default. See Plugins::Logging for more details.

  • :logger (Logger) — default: nil

    The Logger instance to send log messages to. If this option is not set, logging will be disabled. See Plugins::Logging for more details.

  • :profile (String)

    Used when loading credentials from the shared credentials file at HOME/.aws/credentials. When not specified, 'default' is used. See Plugins::RequestSigner for more details.

  • :raise_response_errors (Boolean) — default: true

    When true, response errors are raised. See Seahorse::Client::Plugins::RaiseResponseErrors for more details.

  • :region (required, String)

    The AWS region to connect to. The region is used to construct the client endpoint. Defaults to ENV['AWS_REGION']. Also checks AMAZON_REGION and AWS_DEFAULT_REGION. See Plugins::RegionalEndpoint for more details.

  • :retry_limit (Integer) — default: 3

    The maximum number of times to retry failed requests. Only ~ 500 level server errors and certain ~ 400 level client errors are retried. Generally, these are throttling errors, data checksum errors, networking errors, timeout errors and auth errors from expired credentials. See Plugins::RetryErrors for more details.

  • :secret_access_key (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :session_token (String)

    Used to set credentials statically. See Plugins::RequestSigner for more details.

  • :simple_json (Boolean) — default: false

    Disables request parameter conversion, validation, and formatting. Also disable response data type conversions. This option is useful when you want to ensure the highest level of performance by avoiding overhead of walking request parameters and response data structures.

    When :simple_json is enabled, the request parameters hash must be formatted exactly as the DynamoDB API expects. See Plugins::Protocols::JsonRpc for more details.

  • :ssl_ca_bundle (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_directory (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_ca_store (String)

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :ssl_verify_peer (Boolean) — default: true

    See Seahorse::Client::Plugins::NetHttp for more details.

  • :stub_responses (Boolean) — default: false

    Causes the client to return stubbed responses. By default fake responses are generated and returned. You can specify the response data to return or errors to raise by calling ClientStubs#stub_responses. See ClientStubs for more information.

    Please note When response stubbing is enabled, no HTTP requests are made, and retries are disabled. See Plugins::StubResponses for more details.

  • :validate_params (Boolean) — default: true

    When true, request parameters are validated before sending the request. See Plugins::ParamValidator for more details.

Instance Method Details

#associate_firewall_policy(options = {}) ⇒ Types::AssociateFirewallPolicyResponse

Associates a FirewallPolicy to a Firewall.

A firewall policy defines how to monitor and manage your VPC network traffic, using a collection of inspection rule groups and other settings. Each firewall requires one firewall policy association, and you can use the same firewall policy for multiple firewalls.

Examples:

Request syntax with placeholder values


resp = client.associate_firewall_policy({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  firewall_policy_arn: "ResourceArn", # required
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.firewall_policy_arn #=> String
resp.update_token #=> String

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_arn (required, String)

    The Amazon Resource Name (ARN) of the firewall policy.

Returns:

See Also:

#associate_subnets(options = {}) ⇒ Types::AssociateSubnetsResponse

Associates the specified subnets in the Amazon VPC to the firewall. You can specify one subnet for each of the Availability Zones that the VPC spans.

This request creates an AWS Network Firewall firewall endpoint in each of the subnets. To enable the firewall's protections, you must also modify the VPC's route tables for each subnet's Availability Zone, to redirect the traffic that's coming into and going out of the zone through the firewall endpoint.

Examples:

Request syntax with placeholder values


resp = client.associate_subnets({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  subnet_mappings: [ # required
    {
      subnet_id: "CollectionMember_String", # required
    },
  ],
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.subnet_mappings #=> Array
resp.subnet_mappings[0].subnet_id #=> String
resp.update_token #=> String

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :subnet_mappings (required, Array<Types::SubnetMapping>)

    The IDs of the subnets that you want to associate with the firewall.

Returns:

See Also:

#create_firewall(options = {}) ⇒ Types::CreateFirewallResponse

Creates an AWS Network Firewall Firewall and accompanying FirewallStatus for a VPC.

The firewall defines the configuration settings for an AWS Network Firewall firewall. The settings that you can define at creation include the firewall policy, the subnets in your VPC to use for the firewall endpoints, and any tags that are attached to the firewall AWS resource.

After you create a firewall, you can provide additional settings, like the logging configuration.

To update the settings for a firewall, you use the operations that apply to the settings themselves, for example UpdateLoggingConfiguration, AssociateSubnets, and UpdateFirewallDeleteProtection.

To manage a firewall's tags, use the standard AWS resource tagging operations, ListTagsForResource, TagResource, and UntagResource.

To retrieve information about firewalls, use ListFirewalls and DescribeFirewall.

Examples:

Request syntax with placeholder values


resp = client.create_firewall({
  firewall_name: "ResourceName", # required
  firewall_policy_arn: "ResourceArn", # required
  vpc_id: "VpcId", # required
  subnet_mappings: [ # required
    {
      subnet_id: "CollectionMember_String", # required
    },
  ],
  delete_protection: false,
  subnet_change_protection: false,
  firewall_policy_change_protection: false,
  description: "Description",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Response structure


resp.firewall.firewall_name #=> String
resp.firewall.firewall_arn #=> String
resp.firewall.firewall_policy_arn #=> String
resp.firewall.vpc_id #=> String
resp.firewall.subnet_mappings #=> Array
resp.firewall.subnet_mappings[0].subnet_id #=> String
resp.firewall.delete_protection #=> true/false
resp.firewall.subnet_change_protection #=> true/false
resp.firewall.firewall_policy_change_protection #=> true/false
resp.firewall.description #=> String
resp.firewall.firewall_id #=> String
resp.firewall.tags #=> Array
resp.firewall.tags[0].key #=> String
resp.firewall.tags[0].value #=> String
resp.firewall_status.status #=> String, one of "PROVISIONING", "DELETING", "READY"
resp.firewall_status.configuration_sync_state_summary #=> String, one of "PENDING", "IN_SYNC"
resp.firewall_status.sync_states #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].attachment.subnet_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.endpoint_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.status #=> String, one of "CREATING", "DELETING", "SCALING", "READY"
resp.firewall_status.sync_states["AvailabilityZone"].config #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].config["ResourceName"].sync_status #=> String, one of "PENDING", "IN_SYNC"

Options Hash (options):

  • :firewall_name (required, String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

  • :firewall_policy_arn (required, String)

    The Amazon Resource Name (ARN) of the FirewallPolicy that you want to use for the firewall.

  • :vpc_id (required, String)

    The unique identifier of the VPC where Network Firewall should create the firewall.

    You can\'t change this setting after you create the firewall.

  • :subnet_mappings (required, Array<Types::SubnetMapping>)

    The public subnets to use for your Network Firewall firewalls. Each subnet must belong to a different Availability Zone in the VPC. Network Firewall creates a firewall endpoint in each subnet.

  • :delete_protection (Boolean)

    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

  • :subnet_change_protection (Boolean)

    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

  • :firewall_policy_change_protection (Boolean)

    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

  • :description (String)

    A description of the firewall.

  • :tags (Array<Types::Tag>)

    The key:value pairs to associate with the resource.

Returns:

See Also:

#create_firewall_policy(options = {}) ⇒ Types::CreateFirewallPolicyResponse

Creates the firewall policy for the firewall according to the specifications.

An AWS Network Firewall firewall policy defines the behavior of a firewall, in a collection of stateless and stateful rule groups and other settings. You can use one firewall policy for multiple firewalls.

Examples:

Request syntax with placeholder values


resp = client.create_firewall_policy({
  firewall_policy_name: "ResourceName", # required
  firewall_policy: { # required
    stateless_rule_group_references: [
      {
        resource_arn: "ResourceArn", # required
        priority: 1, # required
      },
    ],
    stateless_default_actions: ["CollectionMember_String"], # required
    stateless_fragment_default_actions: ["CollectionMember_String"], # required
    stateless_custom_actions: [
      {
        action_name: "ActionName", # required
        action_definition: { # required
          publish_metric_action: {
            dimensions: [ # required
              {
                value: "DimensionValue", # required
              },
            ],
          },
        },
      },
    ],
    stateful_rule_group_references: [
      {
        resource_arn: "ResourceArn", # required
      },
    ],
  },
  description: "Description",
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  dry_run: false,
})

Response structure


resp.update_token #=> String
resp.firewall_policy_response.firewall_policy_name #=> String
resp.firewall_policy_response.firewall_policy_arn #=> String
resp.firewall_policy_response.firewall_policy_id #=> String
resp.firewall_policy_response.description #=> String
resp.firewall_policy_response.firewall_policy_status #=> String, one of "ACTIVE", "DELETING"
resp.firewall_policy_response.tags #=> Array
resp.firewall_policy_response.tags[0].key #=> String
resp.firewall_policy_response.tags[0].value #=> String

Options Hash (options):

  • :firewall_policy_name (required, String)

    The descriptive name of the firewall policy. You can\'t change the name of a firewall policy after you create it.

  • :firewall_policy (required, Types::FirewallPolicy)

    The rule groups and policy actions to use in the firewall policy.

  • :description (String)

    A description of the firewall policy.

  • :tags (Array<Types::Tag>)

    The key:value pairs to associate with the resource.

  • :dry_run (Boolean)

    Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.

    If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn\'t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to FALSE, but doesn\'t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.

    If set to FALSE, Network Firewall makes the requested changes to your resources.

Returns:

See Also:

#create_rule_group(options = {}) ⇒ Types::CreateRuleGroupResponse

Creates the specified stateless or stateful rule group, which includes the rules for network traffic inspection, a capacity setting, and tags.

You provide your rule group specification in your request using either RuleGroup or Rules.

Examples:

Request syntax with placeholder values


resp = client.create_rule_group({
  rule_group_name: "ResourceName", # required
  rule_group: {
    rule_variables: {
      ip_sets: {
        "RuleVariableName" => {
          definition: ["VariableDefinition"], # required
        },
      },
      port_sets: {
        "RuleVariableName" => {
          definition: ["VariableDefinition"],
        },
      },
    },
    rules_source: { # required
      rules_string: "RulesString",
      rules_source_list: {
        targets: ["CollectionMember_String"], # required
        target_types: ["TLS_SNI"], # required, accepts TLS_SNI, HTTP_HOST
        generated_rules_type: "ALLOWLIST", # required, accepts ALLOWLIST, DENYLIST
      },
      stateful_rules: [
        {
          action: "PASS", # required, accepts PASS, DROP, ALERT
          header: { # required
            protocol: "IP", # required, accepts IP, TCP, UDP, ICMP, HTTP, FTP, TLS, SMB, DNS, DCERPC, SSH, SMTP, IMAP, MSN, KRB5, IKEV2, TFTP, NTP, DHCP
            source: "Source", # required
            source_port: "Port", # required
            direction: "FORWARD", # required, accepts FORWARD, ANY
            destination: "Destination", # required
            destination_port: "Port", # required
          },
          rule_options: [ # required
            {
              keyword: "Keyword", # required
              settings: ["Setting"],
            },
          ],
        },
      ],
      stateless_rules_and_custom_actions: {
        stateless_rules: [ # required
          {
            rule_definition: { # required
              match_attributes: { # required
                sources: [
                  {
                    address_definition: "AddressDefinition", # required
                  },
                ],
                destinations: [
                  {
                    address_definition: "AddressDefinition", # required
                  },
                ],
                source_ports: [
                  {
                    from_port: 1, # required
                    to_port: 1, # required
                  },
                ],
                destination_ports: [
                  {
                    from_port: 1, # required
                    to_port: 1, # required
                  },
                ],
                protocols: [1],
                tcp_flags: [
                  {
                    flags: ["FIN"], # required, accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
                    masks: ["FIN"], # accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
                  },
                ],
              },
              actions: ["CollectionMember_String"], # required
            },
            priority: 1, # required
          },
        ],
        custom_actions: [
          {
            action_name: "ActionName", # required
            action_definition: { # required
              publish_metric_action: {
                dimensions: [ # required
                  {
                    value: "DimensionValue", # required
                  },
                ],
              },
            },
          },
        ],
      },
    },
  },
  rules: "RulesString",
  type: "STATELESS", # required, accepts STATELESS, STATEFUL
  description: "Description",
  capacity: 1, # required
  tags: [
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
  dry_run: false,
})

Response structure


resp.update_token #=> String
resp.rule_group_response.rule_group_arn #=> String
resp.rule_group_response.rule_group_name #=> String
resp.rule_group_response.rule_group_id #=> String
resp.rule_group_response.description #=> String
resp.rule_group_response.type #=> String, one of "STATELESS", "STATEFUL"
resp.rule_group_response.capacity #=> Integer
resp.rule_group_response.rule_group_status #=> String, one of "ACTIVE", "DELETING"
resp.rule_group_response.tags #=> Array
resp.rule_group_response.tags[0].key #=> String
resp.rule_group_response.tags[0].value #=> String

Options Hash (options):

  • :rule_group_name (required, String)

    The descriptive name of the rule group. You can\'t change the name of a rule group after you create it.

  • :rule_group (Types::RuleGroup)

    An object that defines the rule group rules.

    You must provide either this rule group setting or a Rules setting, but not both.

  • :rules (String)

    The name of a file containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use this to import your existing Suricata compatible rule groups.

    You must provide either this rules setting or a populated RuleGroup setting, but not both.

    You can provide your rule group specification in a file through this setting when you create or update your rule group. The call response returns a RuleGroup object that Network Firewall has populated from your file. Network Firewall uses the file contents to populate the rule group rules, but does not maintain a reference to the file or use the file in any way after performing the create or update. If you call DescribeRuleGroup to retrieve the rule group, Network Firewall returns rules settings inside a RuleGroup object.

  • :type (required, String)

    Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.

  • :description (String)

    A description of the rule group.

  • :capacity (required, Integer)

    The maximum operating resources that this rule group can use. Rule group capacity is fixed at creation. When you update a rule group, you are limited to this capacity. When you reference a rule group from a firewall policy, Network Firewall reserves this capacity for the rule group.

    You can retrieve the capacity that would be required for a rule group before you create the rule group by calling CreateRuleGroup with DryRun set to TRUE.

    You can\'t change or exceed this capacity when you update the rule group, so leave room for your rule group to grow.

    Capacity for a stateless rule group

    For a stateless rule group, the capacity required is the sum of the capacity requirements of the individual rules that you expect to have in the rule group.

    To calculate the capacity requirement of a single rule, multiply the capacity requirement values of each of the rule\'s match settings:

    • A match setting with no criteria specified has a value of 1.

    • A match setting with Any specified has a value of 1.

    • All other match settings have a value equal to the number of elements provided in the setting. For example, a protocol setting [\"UDP\"] and a source setting [\"10.0.0.0/24\"] each have a value of 1. A protocol setting [\"UDP\",\"TCP\"] has a value of 2. A source setting [\"10.0.0.0/24\",\"10.0.0.1/24\",\"10.0.0.2/24\"] has a value of 3.

    A rule with no criteria specified in any of its match settings has a capacity requirement of 1. A rule with protocol setting [\"UDP\",\"TCP\"], source setting [\"10.0.0.0/24\",\"10.0.0.1/24\",\"10.0.0.2/24\"], and a single specification or no specification for each of the other match settings has a capacity requirement of 6.

    Capacity for a stateful rule group

    For a stateful rule group, the minimum capacity required is the number of individual rules that you expect to have in the rule group.

  • :tags (Array<Types::Tag>)

    The key:value pairs to associate with the resource.

  • :dry_run (Boolean)

    Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.

    If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn\'t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to FALSE, but doesn\'t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.

    If set to FALSE, Network Firewall makes the requested changes to your resources.

Returns:

See Also:

#delete_firewall(options = {}) ⇒ Types::DeleteFirewallResponse

Deletes the specified Firewall and its FirewallStatus. This operation requires the firewall's DeleteProtection flag to be FALSE. You can't revert this operation.

You can check whether a firewall is in use by reviewing the route tables for the Availability Zones where you have firewall subnet mappings. Retrieve the subnet mappings by calling DescribeFirewall. You define and update the route tables through Amazon VPC. As needed, update the route tables for the zones to remove the firewall endpoints. When the route tables no longer use the firewall endpoints, you can remove the firewall safely.

To delete a firewall, remove the delete protection if you need to using UpdateFirewallDeleteProtection, then delete the firewall by calling DeleteFirewall.

Examples:

Request syntax with placeholder values


resp = client.delete_firewall({
  firewall_name: "ResourceName",
  firewall_arn: "ResourceArn",
})

Response structure


resp.firewall.firewall_name #=> String
resp.firewall.firewall_arn #=> String
resp.firewall.firewall_policy_arn #=> String
resp.firewall.vpc_id #=> String
resp.firewall.subnet_mappings #=> Array
resp.firewall.subnet_mappings[0].subnet_id #=> String
resp.firewall.delete_protection #=> true/false
resp.firewall.subnet_change_protection #=> true/false
resp.firewall.firewall_policy_change_protection #=> true/false
resp.firewall.description #=> String
resp.firewall.firewall_id #=> String
resp.firewall.tags #=> Array
resp.firewall.tags[0].key #=> String
resp.firewall.tags[0].value #=> String
resp.firewall_status.status #=> String, one of "PROVISIONING", "DELETING", "READY"
resp.firewall_status.configuration_sync_state_summary #=> String, one of "PENDING", "IN_SYNC"
resp.firewall_status.sync_states #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].attachment.subnet_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.endpoint_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.status #=> String, one of "CREATING", "DELETING", "SCALING", "READY"
resp.firewall_status.sync_states["AvailabilityZone"].config #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].config["ResourceName"].sync_status #=> String, one of "PENDING", "IN_SYNC"

Options Hash (options):

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

Returns:

See Also:

#delete_firewall_policy(options = {}) ⇒ Types::DeleteFirewallPolicyResponse

Deletes the specified FirewallPolicy.

Examples:

Request syntax with placeholder values


resp = client.delete_firewall_policy({
  firewall_policy_name: "ResourceName",
  firewall_policy_arn: "ResourceArn",
})

Response structure


resp.firewall_policy_response.firewall_policy_name #=> String
resp.firewall_policy_response.firewall_policy_arn #=> String
resp.firewall_policy_response.firewall_policy_id #=> String
resp.firewall_policy_response.description #=> String
resp.firewall_policy_response.firewall_policy_status #=> String, one of "ACTIVE", "DELETING"
resp.firewall_policy_response.tags #=> Array
resp.firewall_policy_response.tags[0].key #=> String
resp.firewall_policy_response.tags[0].value #=> String

Options Hash (options):

  • :firewall_policy_name (String)

    The descriptive name of the firewall policy. You can\'t change the name of a firewall policy after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_arn (String)

    The Amazon Resource Name (ARN) of the firewall policy.

    You must specify the ARN or the name, and you can specify both.

Returns:

See Also:

#delete_resource_policy(options = {}) ⇒ Struct

Deletes a resource policy that you created in a PutResourcePolicy request.

Examples:

Request syntax with placeholder values


resp = client.delete_resource_policy({
  resource_arn: "ResourceArn", # required
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to delete.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#delete_rule_group(options = {}) ⇒ Types::DeleteRuleGroupResponse

Deletes the specified RuleGroup.

Examples:

Request syntax with placeholder values


resp = client.delete_rule_group({
  rule_group_name: "ResourceName",
  rule_group_arn: "ResourceArn",
  type: "STATELESS", # accepts STATELESS, STATEFUL
})

Response structure


resp.rule_group_response.rule_group_arn #=> String
resp.rule_group_response.rule_group_name #=> String
resp.rule_group_response.rule_group_id #=> String
resp.rule_group_response.description #=> String
resp.rule_group_response.type #=> String, one of "STATELESS", "STATEFUL"
resp.rule_group_response.capacity #=> Integer
resp.rule_group_response.rule_group_status #=> String, one of "ACTIVE", "DELETING"
resp.rule_group_response.tags #=> Array
resp.rule_group_response.tags[0].key #=> String
resp.rule_group_response.tags[0].value #=> String

Options Hash (options):

  • :rule_group_name (String)

    The descriptive name of the rule group. You can\'t change the name of a rule group after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :rule_group_arn (String)

    The Amazon Resource Name (ARN) of the rule group.

    You must specify the ARN or the name, and you can specify both.

  • :type (String)

    Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.

    This setting is required for requests that do not include the RuleGroupARN.

Returns:

See Also:

#describe_firewall(options = {}) ⇒ Types::DescribeFirewallResponse

Returns the data objects for the specified firewall.

Examples:

Request syntax with placeholder values


resp = client.describe_firewall({
  firewall_name: "ResourceName",
  firewall_arn: "ResourceArn",
})

Response structure


resp.update_token #=> String
resp.firewall.firewall_name #=> String
resp.firewall.firewall_arn #=> String
resp.firewall.firewall_policy_arn #=> String
resp.firewall.vpc_id #=> String
resp.firewall.subnet_mappings #=> Array
resp.firewall.subnet_mappings[0].subnet_id #=> String
resp.firewall.delete_protection #=> true/false
resp.firewall.subnet_change_protection #=> true/false
resp.firewall.firewall_policy_change_protection #=> true/false
resp.firewall.description #=> String
resp.firewall.firewall_id #=> String
resp.firewall.tags #=> Array
resp.firewall.tags[0].key #=> String
resp.firewall.tags[0].value #=> String
resp.firewall_status.status #=> String, one of "PROVISIONING", "DELETING", "READY"
resp.firewall_status.configuration_sync_state_summary #=> String, one of "PENDING", "IN_SYNC"
resp.firewall_status.sync_states #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].attachment.subnet_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.endpoint_id #=> String
resp.firewall_status.sync_states["AvailabilityZone"].attachment.status #=> String, one of "CREATING", "DELETING", "SCALING", "READY"
resp.firewall_status.sync_states["AvailabilityZone"].config #=> Hash
resp.firewall_status.sync_states["AvailabilityZone"].config["ResourceName"].sync_status #=> String, one of "PENDING", "IN_SYNC"

Options Hash (options):

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

Returns:

See Also:

#describe_firewall_policy(options = {}) ⇒ Types::DescribeFirewallPolicyResponse

Returns the data objects for the specified firewall policy.

Examples:

Request syntax with placeholder values


resp = client.describe_firewall_policy({
  firewall_policy_name: "ResourceName",
  firewall_policy_arn: "ResourceArn",
})

Response structure


resp.update_token #=> String
resp.firewall_policy_response.firewall_policy_name #=> String
resp.firewall_policy_response.firewall_policy_arn #=> String
resp.firewall_policy_response.firewall_policy_id #=> String
resp.firewall_policy_response.description #=> String
resp.firewall_policy_response.firewall_policy_status #=> String, one of "ACTIVE", "DELETING"
resp.firewall_policy_response.tags #=> Array
resp.firewall_policy_response.tags[0].key #=> String
resp.firewall_policy_response.tags[0].value #=> String
resp.firewall_policy.stateless_rule_group_references #=> Array
resp.firewall_policy.stateless_rule_group_references[0].resource_arn #=> String
resp.firewall_policy.stateless_rule_group_references[0].priority #=> Integer
resp.firewall_policy.stateless_default_actions #=> Array
resp.firewall_policy.stateless_default_actions[0] #=> String
resp.firewall_policy.stateless_fragment_default_actions #=> Array
resp.firewall_policy.stateless_fragment_default_actions[0] #=> String
resp.firewall_policy.stateless_custom_actions #=> Array
resp.firewall_policy.stateless_custom_actions[0].action_name #=> String
resp.firewall_policy.stateless_custom_actions[0].action_definition.publish_metric_action.dimensions #=> Array
resp.firewall_policy.stateless_custom_actions[0].action_definition.publish_metric_action.dimensions[0].value #=> String
resp.firewall_policy.stateful_rule_group_references #=> Array
resp.firewall_policy.stateful_rule_group_references[0].resource_arn #=> String

Options Hash (options):

  • :firewall_policy_name (String)

    The descriptive name of the firewall policy. You can\'t change the name of a firewall policy after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_arn (String)

    The Amazon Resource Name (ARN) of the firewall policy.

    You must specify the ARN or the name, and you can specify both.

Returns:

See Also:

#describe_logging_configuration(options = {}) ⇒ Types::DescribeLoggingConfigurationResponse

Returns the logging configuration for the specified firewall.

Examples:

Request syntax with placeholder values


resp = client.describe_logging_configuration({
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
})

Response structure


resp.firewall_arn #=> String
resp.logging_configuration.log_destination_configs #=> Array
resp.logging_configuration.log_destination_configs[0].log_type #=> String, one of "ALERT", "FLOW"
resp.logging_configuration.log_destination_configs[0].log_destination_type #=> String, one of "S3", "CloudWatchLogs", "KinesisDataFirehose"
resp.logging_configuration.log_destination_configs[0].log_destination #=> Hash
resp.logging_configuration.log_destination_configs[0].log_destination["HashMapKey"] #=> String

Options Hash (options):

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

Returns:

See Also:

#describe_resource_policy(options = {}) ⇒ Types::DescribeResourcePolicyResponse

Retrieves a resource policy that you created in a PutResourcePolicy request.

Examples:

Request syntax with placeholder values


resp = client.describe_resource_policy({
  resource_arn: "ResourceArn", # required
})

Response structure


resp.policy #=> String

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to retrieve.

Returns:

See Also:

#describe_rule_group(options = {}) ⇒ Types::DescribeRuleGroupResponse

Returns the data objects for the specified rule group.

Examples:

Request syntax with placeholder values


resp = client.describe_rule_group({
  rule_group_name: "ResourceName",
  rule_group_arn: "ResourceArn",
  type: "STATELESS", # accepts STATELESS, STATEFUL
})

Response structure


resp.update_token #=> String
resp.rule_group.rule_variables.ip_sets #=> Hash
resp.rule_group.rule_variables.ip_sets["RuleVariableName"].definition #=> Array
resp.rule_group.rule_variables.ip_sets["RuleVariableName"].definition[0] #=> String
resp.rule_group.rule_variables.port_sets #=> Hash
resp.rule_group.rule_variables.port_sets["RuleVariableName"].definition #=> Array
resp.rule_group.rule_variables.port_sets["RuleVariableName"].definition[0] #=> String
resp.rule_group.rules_source.rules_string #=> String
resp.rule_group.rules_source.rules_source_list.targets #=> Array
resp.rule_group.rules_source.rules_source_list.targets[0] #=> String
resp.rule_group.rules_source.rules_source_list.target_types #=> Array
resp.rule_group.rules_source.rules_source_list.target_types[0] #=> String, one of "TLS_SNI", "HTTP_HOST"
resp.rule_group.rules_source.rules_source_list.generated_rules_type #=> String, one of "ALLOWLIST", "DENYLIST"
resp.rule_group.rules_source.stateful_rules #=> Array
resp.rule_group.rules_source.stateful_rules[0].action #=> String, one of "PASS", "DROP", "ALERT"
resp.rule_group.rules_source.stateful_rules[0].header.protocol #=> String, one of "IP", "TCP", "UDP", "ICMP", "HTTP", "FTP", "TLS", "SMB", "DNS", "DCERPC", "SSH", "SMTP", "IMAP", "MSN", "KRB5", "IKEV2", "TFTP", "NTP", "DHCP"
resp.rule_group.rules_source.stateful_rules[0].header.source #=> String
resp.rule_group.rules_source.stateful_rules[0].header.source_port #=> String
resp.rule_group.rules_source.stateful_rules[0].header.direction #=> String, one of "FORWARD", "ANY"
resp.rule_group.rules_source.stateful_rules[0].header.destination #=> String
resp.rule_group.rules_source.stateful_rules[0].header.destination_port #=> String
resp.rule_group.rules_source.stateful_rules[0].rule_options #=> Array
resp.rule_group.rules_source.stateful_rules[0].rule_options[0].keyword #=> String
resp.rule_group.rules_source.stateful_rules[0].rule_options[0].settings #=> Array
resp.rule_group.rules_source.stateful_rules[0].rule_options[0].settings[0] #=> String
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.sources #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.sources[0].address_definition #=> String
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.destinations #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.destinations[0].address_definition #=> String
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.source_ports #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.source_ports[0].from_port #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.source_ports[0].to_port #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.destination_ports #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.destination_ports[0].from_port #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.destination_ports[0].to_port #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.protocols #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.protocols[0] #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.tcp_flags #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.tcp_flags[0].flags #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.tcp_flags[0].flags[0] #=> String, one of "FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECE", "CWR"
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.tcp_flags[0].masks #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.match_attributes.tcp_flags[0].masks[0] #=> String, one of "FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECE", "CWR"
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.actions #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].rule_definition.actions[0] #=> String
resp.rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules[0].priority #=> Integer
resp.rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions[0].action_name #=> String
resp.rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions[0].action_definition.publish_metric_action.dimensions #=> Array
resp.rule_group.rules_source.stateless_rules_and_custom_actions.custom_actions[0].action_definition.publish_metric_action.dimensions[0].value #=> String
resp.rule_group_response.rule_group_arn #=> String
resp.rule_group_response.rule_group_name #=> String
resp.rule_group_response.rule_group_id #=> String
resp.rule_group_response.description #=> String
resp.rule_group_response.type #=> String, one of "STATELESS", "STATEFUL"
resp.rule_group_response.capacity #=> Integer
resp.rule_group_response.rule_group_status #=> String, one of "ACTIVE", "DELETING"
resp.rule_group_response.tags #=> Array
resp.rule_group_response.tags[0].key #=> String
resp.rule_group_response.tags[0].value #=> String

Options Hash (options):

  • :rule_group_name (String)

    The descriptive name of the rule group. You can\'t change the name of a rule group after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :rule_group_arn (String)

    The Amazon Resource Name (ARN) of the rule group.

    You must specify the ARN or the name, and you can specify both.

  • :type (String)

    Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.

    This setting is required for requests that do not include the RuleGroupARN.

Returns:

See Also:

#disassociate_subnets(options = {}) ⇒ Types::DisassociateSubnetsResponse

Removes the specified subnet associations from the firewall. This removes the firewall endpoints from the subnets and removes any network filtering protections that the endpoints were providing.

Examples:

Request syntax with placeholder values


resp = client.disassociate_subnets({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  subnet_ids: ["AzSubnet"], # required
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.subnet_mappings #=> Array
resp.subnet_mappings[0].subnet_id #=> String
resp.update_token #=> String

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :subnet_ids (required, Array<String>)

    The unique identifiers for the subnets that you want to disassociate.

Returns:

See Also:

#list_firewall_policies(options = {}) ⇒ Types::ListFirewallPoliciesResponse

Retrieves the metadata for the firewall policies that you have defined. Depending on your setting for max results and the number of firewall policies, a single call might not return the full list.

Examples:

Request syntax with placeholder values


resp = client.list_firewall_policies({
  next_token: "PaginationToken",
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.firewall_policies #=> Array
resp.firewall_policies[0].name #=> String
resp.firewall_policies[0].arn #=> String

Options Hash (options):

  • :next_token (String)

    When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

  • :max_results (Integer)

    The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

Returns:

See Also:

#list_firewalls(options = {}) ⇒ Types::ListFirewallsResponse

Retrieves the metadata for the firewalls that you have defined. If you provide VPC identifiers in your request, this returns only the firewalls for those VPCs.

Depending on your setting for max results and the number of firewalls, a single call might not return the full list.

Examples:

Request syntax with placeholder values


resp = client.list_firewalls({
  next_token: "PaginationToken",
  vpc_ids: ["VpcId"],
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.firewalls #=> Array
resp.firewalls[0].firewall_name #=> String
resp.firewalls[0].firewall_arn #=> String

Options Hash (options):

  • :next_token (String)

    When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

  • :vpc_ids (Array<String>)

    The unique identifiers of the VPCs that you want Network Firewall to retrieve the firewalls for. Leave this blank to retrieve all firewalls that you have defined.

  • :max_results (Integer)

    The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

Returns:

See Also:

#list_rule_groups(options = {}) ⇒ Types::ListRuleGroupsResponse

Retrieves the metadata for the rule groups that you have defined. Depending on your setting for max results and the number of rule groups, a single call might not return the full list.

Examples:

Request syntax with placeholder values


resp = client.list_rule_groups({
  next_token: "PaginationToken",
  max_results: 1,
})

Response structure


resp.next_token #=> String
resp.rule_groups #=> Array
resp.rule_groups[0].name #=> String
resp.rule_groups[0].arn #=> String

Options Hash (options):

  • :next_token (String)

    When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

  • :max_results (Integer)

    The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

Returns:

See Also:

#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse

Retrieves the tags associated with the specified resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.

You can tag the AWS resources that you manage through AWS Network Firewall: firewalls, firewall policies, and rule groups.

Examples:

Request syntax with placeholder values


resp = client.list_tags_for_resource({
  next_token: "PaginationToken",
  max_results: 1,
  resource_arn: "ResourceArn", # required
})

Response structure


resp.next_token #=> String
resp.tags #=> Array
resp.tags[0].key #=> String
resp.tags[0].value #=> String

Options Hash (options):

  • :next_token (String)

    When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

  • :max_results (Integer)

    The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource.

Returns:

See Also:

#put_resource_policy(options = {}) ⇒ Struct

Creates or updates an AWS Identity and Access Management policy for your rule group or firewall policy. Use this to share rule groups and firewall policies between accounts. This operation works in conjunction with the AWS Resource Access Manager (RAM) service to manage resource sharing for Network Firewall.

Use this operation to create or update a resource policy for your rule group or firewall policy. In the policy, you specify the accounts that you want to share the resource with and the operations that you want the accounts to be able to perform.

When you add an account in the resource policy, you then run the following Resource Access Manager (RAM) operations to access and accept the shared rule group or firewall policy.

For additional information about resource sharing using RAM, see AWS Resource Access Manager User Guide.

Examples:

Request syntax with placeholder values


resp = client.put_resource_policy({
  resource_arn: "ResourceArn", # required
  policy: "PolicyString", # required
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the account that you want to share rule groups and firewall policies with.

  • :policy (required, String)

    The AWS Identity and Access Management policy statement that lists the accounts that you want to share your rule group or firewall policy with and the operations that you want the accounts to be able to perform.

    For a rule group resource, you can specify the following operations in the Actions section of the statement:

    • network-firewall:CreateFirewallPolicy

    • network-firewall:UpdateFirewallPolicy

    • network-firewall:ListRuleGroups

    For a firewall policy resource, you can specify the following operations in the Actions section of the statement:

    • network-firewall:CreateFirewall

    • network-firewall:UpdateFirewall

    • network-firewall:AssociateFirewallPolicy

    • network-firewall:ListFirewallPolicies

    In the Resource section of the statement, you specify the ARNs for the rule groups and firewall policies that you want to share with the account that you specified in Arn.

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#tag_resource(options = {}) ⇒ Struct

Adds the specified tags to the specified resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.

You can tag the AWS resources that you manage through AWS Network Firewall: firewalls, firewall policies, and rule groups.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "ResourceArn", # required
  tags: [ # required
    {
      key: "TagKey", # required
      value: "TagValue", # required
    },
  ],
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource.

  • :tags (required, Array<Types::Tag>)

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#untag_resource(options = {}) ⇒ Struct

Removes the tags with the specified keys from the specified resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.

You can manage tags for the AWS resources that you manage through AWS Network Firewall: firewalls, firewall policies, and rule groups.

Examples:

Request syntax with placeholder values


resp = client.untag_resource({
  resource_arn: "ResourceArn", # required
  tag_keys: ["TagKey"], # required
})

Options Hash (options):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the resource.

  • :tag_keys (required, Array<String>)

Returns:

  • (Struct)

    Returns an empty response.

See Also:

#update_firewall_delete_protection(options = {}) ⇒ Types::UpdateFirewallDeleteProtectionResponse

Modifies the flag, DeleteProtection, which indicates whether it is possible to delete the firewall. If the flag is set to TRUE, the firewall is protected against deletion. This setting helps protect against accidentally deleting a firewall that's in use.

Examples:

Request syntax with placeholder values


resp = client.update_firewall_delete_protection({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  delete_protection: false, # required
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.delete_protection #=> true/false
resp.update_token #=> String

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :delete_protection (required, Boolean)

    A flag indicating whether it is possible to delete the firewall. A setting of TRUE indicates that the firewall is protected against deletion. Use this setting to protect against accidentally deleting a firewall that is in use. When you create a firewall, the operation initializes this flag to TRUE.

Returns:

See Also:

#update_firewall_description(options = {}) ⇒ Types::UpdateFirewallDescriptionResponse

Modifies the description for the specified firewall. Use the description to help you identify the firewall when you're working with it.

Examples:

Request syntax with placeholder values


resp = client.update_firewall_description({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  description: "Description",
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.description #=> String
resp.update_token #=> String

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :description (String)

    The new description for the firewall. If you omit this setting, Network Firewall removes the description for the firewall.

Returns:

See Also:

#update_firewall_policy(options = {}) ⇒ Types::UpdateFirewallPolicyResponse

Updates the properties of the specified firewall policy.

Examples:

Request syntax with placeholder values


resp = client.update_firewall_policy({
  update_token: "UpdateToken", # required
  firewall_policy_arn: "ResourceArn",
  firewall_policy_name: "ResourceName",
  firewall_policy: { # required
    stateless_rule_group_references: [
      {
        resource_arn: "ResourceArn", # required
        priority: 1, # required
      },
    ],
    stateless_default_actions: ["CollectionMember_String"], # required
    stateless_fragment_default_actions: ["CollectionMember_String"], # required
    stateless_custom_actions: [
      {
        action_name: "ActionName", # required
        action_definition: { # required
          publish_metric_action: {
            dimensions: [ # required
              {
                value: "DimensionValue", # required
              },
            ],
          },
        },
      },
    ],
    stateful_rule_group_references: [
      {
        resource_arn: "ResourceArn", # required
      },
    ],
  },
  description: "Description",
  dry_run: false,
})

Response structure


resp.update_token #=> String
resp.firewall_policy_response.firewall_policy_name #=> String
resp.firewall_policy_response.firewall_policy_arn #=> String
resp.firewall_policy_response.firewall_policy_id #=> String
resp.firewall_policy_response.description #=> String
resp.firewall_policy_response.firewall_policy_status #=> String, one of "ACTIVE", "DELETING"
resp.firewall_policy_response.tags #=> Array
resp.firewall_policy_response.tags[0].key #=> String
resp.firewall_policy_response.tags[0].value #=> String

Options Hash (options):

  • :update_token (required, String)

    A token used for optimistic locking. Network Firewall returns a token to your requests that access the firewall policy. The token marks the state of the policy resource at the time of the request.

    To make changes to the policy, you provide the token in your request. Network Firewall uses the token to ensure that the policy hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall policy again to get a current copy of it with current token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_policy_arn (String)

    The Amazon Resource Name (ARN) of the firewall policy.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_name (String)

    The descriptive name of the firewall policy. You can\'t change the name of a firewall policy after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy (required, Types::FirewallPolicy)

    The updated firewall policy to use for the firewall.

  • :description (String)

    A description of the firewall policy.

  • :dry_run (Boolean)

    Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.

    If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn\'t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to FALSE, but doesn\'t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.

    If set to FALSE, Network Firewall makes the requested changes to your resources.

Returns:

See Also:

#update_firewall_policy_change_protection(options = {}) ⇒ Types::UpdateFirewallPolicyChangeProtectionResponse

Examples:

Request syntax with placeholder values


resp = client.update_firewall_policy_change_protection({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  firewall_policy_change_protection: false, # required
})

Response structure


resp.update_token #=> String
resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.firewall_policy_change_protection #=> true/false

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_policy_change_protection (required, Boolean)

    A setting indicating whether the firewall is protected against a change to the firewall policy association. Use this setting to protect against accidentally modifying the firewall policy for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Returns:

See Also:

#update_logging_configuration(options = {}) ⇒ Types::UpdateLoggingConfigurationResponse

Sets the logging configuration for the specified firewall.

To change the logging configuration, retrieve the LoggingConfiguration by calling DescribeLoggingConfiguration, then change it and provide the modified object to this update call. You must change the logging configuration one LogDestinationConfig at a time inside the retrieved LoggingConfiguration object.

You can perform only one of the following actions in any call to UpdateLoggingConfiguration:

  • Create a new log destination object by adding a single LogDestinationConfig array element to LogDestinationConfigs.

  • Delete a log destination object by removing a single LogDestinationConfig array element from LogDestinationConfigs.

  • Change the LogDestination setting in a single LogDestinationConfig array element.

You can't change the LogDestinationType or LogType in a LogDestinationConfig. To change these settings, delete the existing LogDestinationConfig object and create a new one, using two separate calls to this update operation.

Examples:

Request syntax with placeholder values


resp = client.update_logging_configuration({
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  logging_configuration: {
    log_destination_configs: [ # required
      {
        log_type: "ALERT", # required, accepts ALERT, FLOW
        log_destination_type: "S3", # required, accepts S3, CloudWatchLogs, KinesisDataFirehose
        log_destination: { # required
          "HashMapKey" => "HashMapValue",
        },
      },
    ],
  },
})

Response structure


resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.logging_configuration.log_destination_configs #=> Array
resp.logging_configuration.log_destination_configs[0].log_type #=> String, one of "ALERT", "FLOW"
resp.logging_configuration.log_destination_configs[0].log_destination_type #=> String, one of "S3", "CloudWatchLogs", "KinesisDataFirehose"
resp.logging_configuration.log_destination_configs[0].log_destination #=> Hash
resp.logging_configuration.log_destination_configs[0].log_destination["HashMapKey"] #=> String

Options Hash (options):

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :logging_configuration (Types::LoggingConfiguration)

    Defines how Network Firewall performs logging for a firewall. If you omit this setting, Network Firewall disables logging for the firewall.

Returns:

See Also:

#update_rule_group(options = {}) ⇒ Types::UpdateRuleGroupResponse

Updates the rule settings for the specified rule group. You use a rule group by reference in one or more firewall policies. When you modify a rule group, you modify all firewall policies that use the rule group.

To update a rule group, first call DescribeRuleGroup to retrieve the current RuleGroup object, update the object as needed, and then provide the updated object to this call.

Examples:

Request syntax with placeholder values


resp = client.update_rule_group({
  update_token: "UpdateToken", # required
  rule_group_arn: "ResourceArn",
  rule_group_name: "ResourceName",
  rule_group: {
    rule_variables: {
      ip_sets: {
        "RuleVariableName" => {
          definition: ["VariableDefinition"], # required
        },
      },
      port_sets: {
        "RuleVariableName" => {
          definition: ["VariableDefinition"],
        },
      },
    },
    rules_source: { # required
      rules_string: "RulesString",
      rules_source_list: {
        targets: ["CollectionMember_String"], # required
        target_types: ["TLS_SNI"], # required, accepts TLS_SNI, HTTP_HOST
        generated_rules_type: "ALLOWLIST", # required, accepts ALLOWLIST, DENYLIST
      },
      stateful_rules: [
        {
          action: "PASS", # required, accepts PASS, DROP, ALERT
          header: { # required
            protocol: "IP", # required, accepts IP, TCP, UDP, ICMP, HTTP, FTP, TLS, SMB, DNS, DCERPC, SSH, SMTP, IMAP, MSN, KRB5, IKEV2, TFTP, NTP, DHCP
            source: "Source", # required
            source_port: "Port", # required
            direction: "FORWARD", # required, accepts FORWARD, ANY
            destination: "Destination", # required
            destination_port: "Port", # required
          },
          rule_options: [ # required
            {
              keyword: "Keyword", # required
              settings: ["Setting"],
            },
          ],
        },
      ],
      stateless_rules_and_custom_actions: {
        stateless_rules: [ # required
          {
            rule_definition: { # required
              match_attributes: { # required
                sources: [
                  {
                    address_definition: "AddressDefinition", # required
                  },
                ],
                destinations: [
                  {
                    address_definition: "AddressDefinition", # required
                  },
                ],
                source_ports: [
                  {
                    from_port: 1, # required
                    to_port: 1, # required
                  },
                ],
                destination_ports: [
                  {
                    from_port: 1, # required
                    to_port: 1, # required
                  },
                ],
                protocols: [1],
                tcp_flags: [
                  {
                    flags: ["FIN"], # required, accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
                    masks: ["FIN"], # accepts FIN, SYN, RST, PSH, ACK, URG, ECE, CWR
                  },
                ],
              },
              actions: ["CollectionMember_String"], # required
            },
            priority: 1, # required
          },
        ],
        custom_actions: [
          {
            action_name: "ActionName", # required
            action_definition: { # required
              publish_metric_action: {
                dimensions: [ # required
                  {
                    value: "DimensionValue", # required
                  },
                ],
              },
            },
          },
        ],
      },
    },
  },
  rules: "RulesString",
  type: "STATELESS", # accepts STATELESS, STATEFUL
  description: "Description",
  dry_run: false,
})

Response structure


resp.update_token #=> String
resp.rule_group_response.rule_group_arn #=> String
resp.rule_group_response.rule_group_name #=> String
resp.rule_group_response.rule_group_id #=> String
resp.rule_group_response.description #=> String
resp.rule_group_response.type #=> String, one of "STATELESS", "STATEFUL"
resp.rule_group_response.capacity #=> Integer
resp.rule_group_response.rule_group_status #=> String, one of "ACTIVE", "DELETING"
resp.rule_group_response.tags #=> Array
resp.rule_group_response.tags[0].key #=> String
resp.rule_group_response.tags[0].value #=> String

Options Hash (options):

  • :update_token (required, String)

    A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.

    To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.

  • :rule_group_arn (String)

    The Amazon Resource Name (ARN) of the rule group.

    You must specify the ARN or the name, and you can specify both.

  • :rule_group_name (String)

    The descriptive name of the rule group. You can\'t change the name of a rule group after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :rule_group (Types::RuleGroup)

    An object that defines the rule group rules.

    You must provide either this rule group setting or a Rules setting, but not both.

  • :rules (String)

    The name of a file containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use this to import your existing Suricata compatible rule groups.

    You must provide either this rules setting or a populated RuleGroup setting, but not both.

    You can provide your rule group specification in a file through this setting when you create or update your rule group. The call response returns a RuleGroup object that Network Firewall has populated from your file. Network Firewall uses the file contents to populate the rule group rules, but does not maintain a reference to the file or use the file in any way after performing the create or update. If you call DescribeRuleGroup to retrieve the rule group, Network Firewall returns rules settings inside a RuleGroup object.

  • :type (String)

    Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.

    This setting is required for requests that do not include the RuleGroupARN.

  • :description (String)

    A description of the rule group.

  • :dry_run (Boolean)

    Indicates whether you want Network Firewall to just check the validity of the request, rather than run the request.

    If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn\'t actually make the requested changes. The call returns the value that the request would return if you ran it with dry run set to FALSE, but doesn\'t make additions or changes to your resources. This option allows you to make sure that you have the required permissions to run the request and that your request parameters are valid.

    If set to FALSE, Network Firewall makes the requested changes to your resources.

Returns:

See Also:

#update_subnet_change_protection(options = {}) ⇒ Types::UpdateSubnetChangeProtectionResponse

Examples:

Request syntax with placeholder values


resp = client.update_subnet_change_protection({
  update_token: "UpdateToken",
  firewall_arn: "ResourceArn",
  firewall_name: "ResourceName",
  subnet_change_protection: false, # required
})

Response structure


resp.update_token #=> String
resp.firewall_arn #=> String
resp.firewall_name #=> String
resp.subnet_change_protection #=> true/false

Options Hash (options):

  • :update_token (String)

    An optional token that you can use for optimistic locking. Network Firewall returns a token to your requests that access the firewall. The token marks the state of the firewall resource at the time of the request.

    To make an unconditional change to the firewall, omit the token in your update request. Without the token, Network Firewall performs your updates regardless of whether the firewall has changed since you last retrieved it.

    To make a conditional change to the firewall, provide the token in your update request. Network Firewall uses the token to ensure that the firewall hasn\'t changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the firewall again to get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the new token.

  • :firewall_arn (String)

    The Amazon Resource Name (ARN) of the firewall.

    You must specify the ARN or the name, and you can specify both.

  • :firewall_name (String)

    The descriptive name of the firewall. You can\'t change the name of a firewall after you create it.

    You must specify the ARN or the name, and you can specify both.

  • :subnet_change_protection (required, Boolean)

    A setting indicating whether the firewall is protected against changes to the subnet associations. Use this setting to protect against accidentally modifying the subnet associations for a firewall that is in use. When you create a firewall, the operation initializes this setting to TRUE.

Returns:

See Also:

#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean

Waiters polls an API operation until a resource enters a desired state.

Basic Usage

Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.

# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)

Configuration

You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:

# poll for ~25 seconds
client.wait_until(...) do |w|
  w.max_attempts = 5
  w.delay = 5
end

Callbacks

You can be notified before each polling attempt and before each delay. If you throw :success or :failure from these callbacks, it will terminate the waiter.

started_at = Time.now
client.wait_until(...) do |w|

  # disable max attempts
  w.max_attempts = nil

  # poll for 1 hour, instead of a number of attempts
  w.before_wait do |attempts, response|
    throw :failure if Time.now - started_at > 3600
  end

end

Handling Errors

When a waiter is successful, it returns true. When a waiter fails, it raises an error. All errors raised extend from Waiters::Errors::WaiterFailed.

begin
  client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
  # resource did not enter the desired state in time
end

Parameters:

  • waiter_name (Symbol)

    The name of the waiter. See #waiter_names for a full list of supported waiters.

  • params (Hash) (defaults to: {})

    Additional request parameters. See the #waiter_names for a list of supported waiters and what request they call. The called request determines the list of accepted parameters.

Yield Parameters:

Returns:

  • (Boolean)

    Returns true if the waiter was successful.

Raises:

  • (Errors::FailureStateError)

    Raised when the waiter terminates because the waiter has entered a state that it will not transition out of, preventing success.

  • (Errors::TooManyAttemptsError)

    Raised when the configured maximum number of attempts have been made, and the waiter is not yet successful.

  • (Errors::UnexpectedError)

    Raised when an error is encounted while polling for a resource that is not expected.

  • (Errors::NoSuchWaiterError)

    Raised when you request to wait for an unknown state.

#waiter_namesArray<Symbol>

Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:

Waiter NameClient MethodDefault Delay:Default Max Attempts:

Returns:

  • (Array<Symbol>)

    the list of supported waiters.