Class: Aws::EC2::Types::ModifySecurityGroupRulesRequest

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 ModifySecurityGroupRulesRequest data as a hash:

{
  group_id: "SecurityGroupId", # required
  security_group_rules: [ # required
    {
      security_group_rule_id: "SecurityGroupRuleId",
      security_group_rule: {
        ip_protocol: "String",
        from_port: 1,
        to_port: 1,
        cidr_ipv_4: "String",
        cidr_ipv_6: "String",
        prefix_list_id: "PrefixListResourceId",
        referenced_group_id: "SecurityGroupId",
        description: "String",
      },
    },
  ],
  dry_run: false,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#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)


41340
41341
41342
41343
41344
41345
41346
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41340

class ModifySecurityGroupRulesRequest < Struct.new(
  :group_id,
  :security_group_rules,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#group_idString

The ID of the security group.

Returns:

  • (String)


41340
41341
41342
41343
41344
41345
41346
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41340

class ModifySecurityGroupRulesRequest < Struct.new(
  :group_id,
  :security_group_rules,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#security_group_rulesArray<Types::SecurityGroupRuleUpdate>

Information about the security group properties to update.

Returns:



41340
41341
41342
41343
41344
41345
41346
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 41340

class ModifySecurityGroupRulesRequest < Struct.new(
  :group_id,
  :security_group_rules,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end