authorize_client_vpn_ingress
async
¶
authorize_client_vpn_ingress(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
client_vpn_endpoint_id: Optional[ClientVpnEndpointId] = None,
target_network_cidr: Optional[String] = None,
access_group_id: Optional[String] = None,
authorize_all_groups: Optional[Boolean] = None,
description: Optional[String] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
) -> AuthorizeClientVpnIngressResult
Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.
Parameters:
-
client_vpn_endpoint_id(Optional[ClientVpnEndpointId], default:None) –The ID of the Client VPN endpoint.
-
target_network_cidr(Optional[String], default:None) –The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
-
access_group_id(Optional[String], default:None) –The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required if
AuthorizeAllGroupsisfalseor not specified. -
authorize_all_groups(Optional[Boolean], default:None) –Indicates whether to grant access to all clients. Specify
trueto grant all clients who successfully establish a VPN connection access to the network. Must be set totrueifAccessGroupIdis not specified. -
description(Optional[String], default:None) –A brief description of the authorization rule.
-
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
5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 | |