apply_security_groups_to_client_vpn_target_network
async
¶
apply_security_groups_to_client_vpn_target_network(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_vpn_endpoint_id: Optional[ClientVpnEndpointId] = None,
vpc_id: Optional[VpcId] = None,
security_group_ids: Optional[ClientVpnSecurityGroupIdSet] = None,
dry_run: Optional[Boolean] = None,
) -> ApplySecurityGroupsToClientVpnTargetNetworkResult
Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.
Parameters:
-
client_vpn_endpoint_id(Optional[ClientVpnEndpointId], default:None) –The ID of the Client VPN endpoint.
-
vpc_id(Optional[VpcId], default:None) –The ID of the VPC in which the associated target network is located.
-
security_group_ids(Optional[ClientVpnSecurityGroupIdSet], default:None) –The IDs of the security groups to apply to the associated target network. Up to 5 security groups can be applied to an associated target network.
-
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
3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 | |