modify_vpc_encryption_control
¶
modify_vpc_encryption_control(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
vpc_encryption_control_id: Optional[VpcEncryptionControlId] = None,
mode: Optional[VpcEncryptionControlMode] = None,
internet_gateway_exclusion: Optional[
VpcEncryptionControlExclusionStateInput
] = None,
egress_only_internet_gateway_exclusion: Optional[
VpcEncryptionControlExclusionStateInput
] = None,
nat_gateway_exclusion: Optional[VpcEncryptionControlExclusionStateInput] = None,
virtual_private_gateway_exclusion: Optional[
VpcEncryptionControlExclusionStateInput
] = None,
vpc_peering_exclusion: Optional[VpcEncryptionControlExclusionStateInput] = None,
lambda_exclusion: Optional[VpcEncryptionControlExclusionStateInput] = None,
vpc_lattice_exclusion: Optional[VpcEncryptionControlExclusionStateInput] = None,
elastic_file_system_exclusion: Optional[
VpcEncryptionControlExclusionStateInput
] = None,
) -> ModifyVpcEncryptionControlResult
Modifies the encryption control configuration for a VPC. You can update the encryption mode and exclusion settings for various gateway types and peering connections.
For more information, see Enforce VPC encryption in transit in the Amazon VPC User Guide.
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. -
vpc_encryption_control_id(Optional[VpcEncryptionControlId], default:None) –The ID of the VPC Encryption Control resource to modify.
-
mode(Optional[VpcEncryptionControlMode], default:None) –The encryption mode for the VPC Encryption Control configuration.
-
internet_gateway_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude internet gateway traffic from encryption enforcement.
-
egress_only_internet_gateway_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude egress-only internet gateway traffic from encryption enforcement.
-
nat_gateway_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude NAT gateway traffic from encryption enforcement.
-
virtual_private_gateway_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude virtual private gateway traffic from encryption enforcement.
-
vpc_peering_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude VPC peering connection traffic from encryption enforcement.
-
lambda_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude Lambda function traffic from encryption enforcement.
-
vpc_lattice_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude VPC Lattice traffic from encryption enforcement.
-
elastic_file_system_exclusion(Optional[VpcEncryptionControlExclusionStateInput], default:None) –Specifies whether to exclude Elastic File System traffic from encryption enforcement.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
54095 54096 54097 54098 54099 54100 54101 54102 54103 54104 54105 54106 54107 54108 54109 54110 54111 54112 54113 54114 54115 54116 54117 54118 54119 54120 54121 54122 54123 54124 54125 54126 54127 54128 54129 54130 54131 54132 54133 54134 54135 54136 54137 54138 54139 54140 54141 54142 54143 54144 54145 54146 54147 54148 54149 54150 54151 54152 54153 54154 54155 54156 54157 54158 54159 54160 54161 54162 54163 54164 54165 54166 54167 54168 54169 54170 54171 54172 54173 54174 54175 54176 54177 54178 54179 54180 54181 54182 54183 54184 54185 54186 54187 54188 54189 54190 54191 54192 54193 54194 54195 54196 54197 54198 54199 54200 54201 | |