modify_vpc_block_public_access_exclusion
¶
modify_vpc_block_public_access_exclusion(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
exclusion_id: Optional[VpcBlockPublicAccessExclusionId] = None,
internet_gateway_exclusion_mode: Optional[InternetGatewayExclusionMode] = None,
) -> ModifyVpcBlockPublicAccessExclusionResult
Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet that exempts it from the account’s BPA mode and will allow bidirectional or egress-only access. You can create BPA exclusions for VPCs and subnets even when BPA is not enabled on the account to ensure that there is no traffic disruption to the exclusions when VPC BPA is turned on.
Parameters:
-
dry_run(Optional[Boolean], default: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 isUnauthorizedOperation. -
exclusion_id(Optional[VpcBlockPublicAccessExclusionId], default:None) –The ID of an exclusion.
-
internet_gateway_exclusion_mode(Optional[InternetGatewayExclusionMode], default:None) –The exclusion mode for internet gateway traffic.
-
allow-bidirectional: Allow all internet traffic to and from the excluded VPCs and subnets. -
allow-egress: Allow outbound internet traffic from the excluded VPCs and subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only applies when VPC Block Public Access is set to Bidirectional.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
53989 53990 53991 53992 53993 53994 53995 53996 53997 53998 53999 54000 54001 54002 54003 54004 54005 54006 54007 54008 54009 54010 54011 54012 54013 54014 54015 54016 54017 54018 54019 54020 54021 54022 54023 54024 54025 54026 54027 54028 54029 54030 54031 54032 54033 54034 54035 54036 54037 54038 54039 54040 54041 54042 54043 | |