Struct aws_sdk_ec2::input::ModifySecurityGroupRulesInput
source · #[non_exhaustive]pub struct ModifySecurityGroupRulesInput { /* private fields */ }
Implementations§
source§impl ModifySecurityGroupRulesInput
impl ModifySecurityGroupRulesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySecurityGroupRules, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySecurityGroupRules, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifySecurityGroupRules
>
Examples found in repository?
src/client.rs (line 67213)
67199 67200 67201 67202 67203 67204 67205 67206 67207 67208 67209 67210 67211 67212 67213 67214 67215 67216 67217 67218 67219 67220 67221 67222 67223 67224 67225 67226 67227 67228 67229 67230 67231 67232 67233 67234 67235 67236 67237 67238 67239 67240 67241
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifySecurityGroupRules,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifySecurityGroupRulesError>,
> {
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::ModifySecurityGroupRulesOutput,
aws_smithy_http::result::SdkError<crate::error::ModifySecurityGroupRulesError>,
> {
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 ModifySecurityGroupRulesInput
.
source§impl ModifySecurityGroupRulesInput
impl ModifySecurityGroupRulesInput
sourcepub fn security_group_rules(&self) -> Option<&[SecurityGroupRuleUpdate]>
pub fn security_group_rules(&self) -> Option<&[SecurityGroupRuleUpdate]>
Information about the security group properties to update.
Trait Implementations§
source§impl Clone for ModifySecurityGroupRulesInput
impl Clone for ModifySecurityGroupRulesInput
source§fn clone(&self) -> ModifySecurityGroupRulesInput
fn clone(&self) -> ModifySecurityGroupRulesInput
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