modify_vpc_block_public_access_options¶
Operation¶
modify_vpc_block_public_access_options
async
¶
modify_vpc_block_public_access_options(request: ModifyVpcBlockPublicAccessOptionsInput | ModifyVpcBlockPublicAccessOptionsInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyVpcBlockPublicAccessOptionsOutput
modify_vpc_block_public_access_options(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyVpcBlockPublicAccessOptionsInputDict]) -> ModifyVpcBlockPublicAccessOptionsOutput
Modify VPC Block Public Access (BPA) options. 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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
ModifyVpcBlockPublicAccessOptionsOutput
|
An instance of |
Input¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
ModifyVpcBlockPublicAccessOptionsInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcBlockPublicAccessOptionsInput structure.
Attributes¶
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
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.
internet_gateway_block_mode
class-attribute
instance-attribute
¶
internet_gateway_block_mode: str | None = ...
The 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.
Dictionaries¶
ModifyVpcBlockPublicAccessOptionsInputDict
¶
Bases: TypedDict
Dictionary form of ModifyVpcBlockPublicAccessOptionsInput.
Attributes¶
dry_run
instance-attribute
¶
dry_run: bool | None
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.
internet_gateway_block_mode
instance-attribute
¶
The 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.
Output¶
ModifyVpcBlockPublicAccessOptionsOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcBlockPublicAccessOptionsOutput structure.
Attributes¶
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.
vpc_block_public_access_options
class-attribute
instance-attribute
¶
vpc_block_public_access_options: VpcBlockPublicAccessOptions | None = ...
Details related to the VPC Block Public Access (BPA) options.