#[non_exhaustive]pub struct ModifyVpcEndpointServicePermissionsInput { /* private fields */ }
Implementations§
source§impl ModifyVpcEndpointServicePermissionsInput
impl ModifyVpcEndpointServicePermissionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpcEndpointServicePermissions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyVpcEndpointServicePermissions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyVpcEndpointServicePermissions
>
Examples found in repository?
src/client.rs (line 69981)
69965 69966 69967 69968 69969 69970 69971 69972 69973 69974 69975 69976 69977 69978 69979 69980 69981 69982 69983 69984 69985 69986 69987 69988 69989 69990 69991 69992 69993 69994 69995 69996 69997 69998 69999 70000 70001 70002 70003 70004 70005 70006 70007 70008 70009 70010 70011
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyVpcEndpointServicePermissions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::ModifyVpcEndpointServicePermissionsError,
>,
> {
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::ModifyVpcEndpointServicePermissionsOutput,
aws_smithy_http::result::SdkError<
crate::error::ModifyVpcEndpointServicePermissionsError,
>,
> {
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 ModifyVpcEndpointServicePermissionsInput
.
source§impl ModifyVpcEndpointServicePermissionsInput
impl ModifyVpcEndpointServicePermissionsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
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 is UnauthorizedOperation
.
sourcepub fn service_id(&self) -> Option<&str>
pub fn service_id(&self) -> Option<&str>
The ID of the service.
sourcepub fn add_allowed_principals(&self) -> Option<&[String]>
pub fn add_allowed_principals(&self) -> Option<&[String]>
The Amazon Resource Names (ARN) of one or more principals. Permissions are granted to the principals in this list. To grant permissions to all principals, specify an asterisk (*).
sourcepub fn remove_allowed_principals(&self) -> Option<&[String]>
pub fn remove_allowed_principals(&self) -> Option<&[String]>
The Amazon Resource Names (ARN) of one or more principals. Permissions are revoked for principals in this list.
Trait Implementations§
source§impl Clone for ModifyVpcEndpointServicePermissionsInput
impl Clone for ModifyVpcEndpointServicePermissionsInput
source§fn clone(&self) -> ModifyVpcEndpointServicePermissionsInput
fn clone(&self) -> ModifyVpcEndpointServicePermissionsInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more