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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
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*.

[1]: docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#aws_account_idString

An Amazon Web Services account ID.

Returns:

  • (String)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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`.

[1]: docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html#security-vpc-bpa-exclusions-orgs

Returns:

  • (String)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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)


72928
72929
72930
72931
72932
72933
72934
72935
72936
72937
72938
72939
# File 'lib/aws-sdk-ec2/types.rb', line 72928

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