Class: Aws::EC2::Types::ModifyManagedPrefixListRequest

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

Overview

Note:

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

{
  dry_run: false,
  prefix_list_id: "PrefixListResourceId", # required
  current_version: 1,
  prefix_list_name: "String",
  add_entries: [
    {
      cidr: "String", # required
      description: "String",
    },
  ],
  remove_entries: [
    {
      cidr: "String", # required
    },
  ],
  max_entries: 1,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#add_entriesArray<Types::AddPrefixListEntry>

One or more entries to add to the prefix list.

Returns:



41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#current_versionInteger

The current version of the prefix list.

Returns:

  • (Integer)


41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#max_entriesInteger

The maximum number of entries for the prefix list. You cannot modify the entries of a prefix list and modify the size of a prefix list at the same time.

If any of the resources that reference the prefix list cannot support the new maximum size, the modify operation fails. Check the state message for the IDs of the first ten resources that do not support the new maximum size.

Returns:

  • (Integer)


41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#prefix_list_idString

The ID of the prefix list.

Returns:

  • (String)


41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#prefix_list_nameString

A name for the prefix list.

Returns:

  • (String)


41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end

#remove_entriesArray<Types::RemovePrefixListEntry>

One or more entries to remove from the prefix list.

Returns:



41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41174

class ModifyManagedPrefixListRequest < Struct.new(
  :dry_run,
  :prefix_list_id,
  :current_version,
  :prefix_list_name,
  :add_entries,
  :remove_entries,
  :max_entries)
  SENSITIVE = []
  include Aws::Structure
end