Struct aws_sdk_ec2::input::AuthorizeClientVpnIngressInput
source · #[non_exhaustive]pub struct AuthorizeClientVpnIngressInput { /* private fields */ }
Implementations§
source§impl AuthorizeClientVpnIngressInput
impl AuthorizeClientVpnIngressInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AuthorizeClientVpnIngress, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<AuthorizeClientVpnIngress, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AuthorizeClientVpnIngress
>
Examples found in repository?
12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AuthorizeClientVpnIngress,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AuthorizeClientVpnIngressError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AuthorizeClientVpnIngressOutput,
aws_smithy_http::result::SdkError<crate::error::AuthorizeClientVpnIngressError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AuthorizeClientVpnIngressInput
.
source§impl AuthorizeClientVpnIngressInput
impl AuthorizeClientVpnIngressInput
sourcepub fn client_vpn_endpoint_id(&self) -> Option<&str>
pub fn client_vpn_endpoint_id(&self) -> Option<&str>
The ID of the Client VPN endpoint.
sourcepub fn target_network_cidr(&self) -> Option<&str>
pub fn target_network_cidr(&self) -> Option<&str>
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
sourcepub fn access_group_id(&self) -> Option<&str>
pub fn access_group_id(&self) -> Option<&str>
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required if AuthorizeAllGroups
is false
or not specified.
Indicates whether to grant access to all clients. Specify true
to grant all clients who successfully establish a VPN connection access to the network. Must be set to true
if AccessGroupId
is not specified.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A brief description of the authorization rule.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
Trait Implementations§
source§impl Clone for AuthorizeClientVpnIngressInput
impl Clone for AuthorizeClientVpnIngressInput
source§fn clone(&self) -> AuthorizeClientVpnIngressInput
fn clone(&self) -> AuthorizeClientVpnIngressInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more