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)


120
121
122
123
124
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 120

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

#resource_arnString

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

Returns:

  • (String)


120
121
122
123
124
# File 'gems/aws-sdk-shield/lib/aws-sdk-shield/types.rb', line 120

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