Struct aws_sdk_ec2::input::DeleteSecurityGroupInput
source · #[non_exhaustive]pub struct DeleteSecurityGroupInput { /* private fields */ }
Implementations§
source§impl DeleteSecurityGroupInput
impl DeleteSecurityGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteSecurityGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteSecurityGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteSecurityGroup
>
Examples found in repository?
src/client.rs (line 29267)
29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteSecurityGroup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteSecurityGroupError>,
> {
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::DeleteSecurityGroupOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteSecurityGroupError>,
> {
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 DeleteSecurityGroupInput
.
source§impl DeleteSecurityGroupInput
impl DeleteSecurityGroupInput
sourcepub fn group_id(&self) -> Option<&str>
pub fn group_id(&self) -> Option<&str>
The ID of the security group. Required for a nondefault VPC.
sourcepub fn group_name(&self) -> Option<&str>
pub fn group_name(&self) -> Option<&str>
[EC2-Classic, default VPC] The name of the security group. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, you must specify the security group ID.
Trait Implementations§
source§impl Clone for DeleteSecurityGroupInput
impl Clone for DeleteSecurityGroupInput
source§fn clone(&self) -> DeleteSecurityGroupInput
fn clone(&self) -> DeleteSecurityGroupInput
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