modify_vpc_block_public_access_exclusion
async
¶
modify_vpc_block_public_access_exclusion(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
54740 54741 54742 54743 54744 54745 54746 54747 54748 54749 54750 54751 54752 54753 54754 54755 54756 54757 54758 54759 54760 54761 54762 54763 54764 54765 54766 54767 54768 54769 54770 54771 54772 54773 54774 54775 54776 54777 54778 54779 54780 54781 54782 54783 54784 54785 54786 54787 54788 54789 54790 54791 54792 54793 54794 54795 | |