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

Class: Aws::Shield::Types::CreateProtectionRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb

Overview

Note:

When making an API call, you may pass CreateProtectionRequest data as a hash:

{
  name: "ProtectionName", # required
  resource_arn: "ResourceArn", # required
}

Instance Attribute Summary collapse

Instance Attribute Details

#nameString

Friendly name for the Protection you are creating.

Returns:

  • (String)


252
253
254
255
256
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 252

class CreateProtectionRequest < Struct.new(
  :name,
  :resource_arn)
  include Aws::Structure
end

#resource_arnString

The ARN (Amazon Resource Name) of the resource to be protected.

The ARN should be in one of the following formats:

  • For an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id

  • For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name

  • For AWS CloudFront distribution: arn:aws:cloudfront::account-id:distribution/distribution-id

  • For Amazon Route 53: arn:aws:route53::account-id:hostedzone/hosted-zone-id

  • For an Elastic IP address: arn:aws:ec2:region:account-id:eip-allocation/allocation-id

Returns:

  • (String)


252
253
254
255
256
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 252

class CreateProtectionRequest < Struct.new(
  :name,
  :resource_arn)
  include Aws::Structure
end