Class: Aws::EC2::Types::VpcBlockPublicAccessOptions

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

Overview

VPC Block Public Access (BPA) enables you to block resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. To learn more about VPC BPA, see Block public access to VPCs and subnets in the Amazon VPC User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#aws_account_idString

An Amazon Web Services account ID.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#aws_regionString

An Amazon Web Services Region.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#exclusions_allowedString

Determines if exclusions are allowed. If you have enabled VPC BPA at the Organization level, exclusions may be not-allowed. Otherwise, they are allowed.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#internet_gateway_block_modeString

The current mode of VPC BPA.

  • off: VPC BPA is not enabled and traffic is allowed to and from internet gateways and egress-only internet gateways in this Region.

  • block-bidirectional: Block all traffic to and from internet gateways and egress-only internet gateways in this Region (except for excluded VPCs and subnets).

  • block-ingress: Block all internet traffic to the VPCs in this Region (except for VPCs or subnets which are excluded). Only traffic to and from NAT gateways and egress-only internet gateways is allowed because these gateways only allow outbound connections to be established.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#last_update_timestampTime

The last time the VPC BPA mode was updated.

Returns:

  • (Time)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#managed_byString

The entity that manages the state of VPC BPA. Possible values include:

  • account - The state is managed by the account.

  • declarative-policy - The state is managed by a declarative policy and can't be modified by the account.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#reasonString

The reason for the current state.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end

#stateString

The current state of VPC BPA.

Returns:

  • (String)

73185
73186
73187
73188
73189
73190
73191
73192
73193
73194
73195
73196
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 73185

class VpcBlockPublicAccessOptions < Struct.new(
  :aws_account_id,
  :aws_region,
  :state,
  :internet_gateway_block_mode,
  :reason,
  :last_update_timestamp,
  :managed_by,
  :exclusions_allowed)
  SENSITIVE = []
  include Aws::Structure
end