modify_client_vpn_endpoint_authorization_policy
async
¶
modify_client_vpn_endpoint_authorization_policy(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_vpn_endpoint_id: Optional[ClientVpnEndpointId] = None,
policy_document: Optional[String] = None,
description: Optional[String] = None,
shadow_mode: Optional[ClientVpnAuthorizationPolicyShadowMode] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> ModifyClientVpnEndpointAuthorizationPolicyResult
Creates or updates the authorization policy for a Client VPN endpoint. A Client VPN endpoint can have one authorization policy. If a policy already exists for the endpoint, the values that you specify replace the corresponding values in the existing policy, and values that you do not specify remain unchanged.
Parameters:
-
client_vpn_endpoint_id(Optional[ClientVpnEndpointId], default:None) –The ID of the Client VPN endpoint.
-
policy_document(Optional[String], default:None) –The authorization policy document, written in the Cedar policy language. This parameter is required when you create the authorization policy for a Client VPN endpoint that does not already have one.
-
description(Optional[String], default:None) –A brief description of the authorization policy.
-
shadow_mode(Optional[ClientVpnAuthorizationPolicyShadowMode], default:None) –Specifies whether the authorization policy is evaluated in shadow mode. Possible values include:
-
enabled- The authorization policy is evaluated and the results are logged, but access is not enforced. -
disabled- The authorization policy is enforced.
The default value is
disabled. -
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
50145 50146 50147 50148 50149 50150 50151 50152 50153 50154 50155 50156 50157 50158 50159 50160 50161 50162 50163 50164 50165 50166 50167 50168 50169 50170 50171 50172 50173 50174 50175 50176 50177 50178 50179 50180 50181 50182 50183 50184 50185 50186 50187 50188 50189 50190 50191 50192 50193 50194 50195 50196 50197 50198 50199 50200 50201 50202 50203 50204 50205 50206 50207 50208 50209 50210 50211 50212 50213 50214 | |