#[non_exhaustive]pub struct PutCoreNetworkPolicyInput { /* private fields */ }Implementations§
source§impl PutCoreNetworkPolicyInput
impl PutCoreNetworkPolicyInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<PutCoreNetworkPolicy, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<PutCoreNetworkPolicy, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutCoreNetworkPolicy>
Examples found in repository?
src/client.rs (line 8884)
8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutCoreNetworkPolicy,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutCoreNetworkPolicyError>,
> {
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::PutCoreNetworkPolicyOutput,
aws_smithy_http::result::SdkError<crate::error::PutCoreNetworkPolicyError>,
> {
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 PutCoreNetworkPolicyInput.
source§impl PutCoreNetworkPolicyInput
impl PutCoreNetworkPolicyInput
sourcepub fn core_network_id(&self) -> Option<&str>
pub fn core_network_id(&self) -> Option<&str>
The ID of a core network.
sourcepub fn policy_document(&self) -> Option<&str>
pub fn policy_document(&self) -> Option<&str>
The policy document.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
a core network policy description.
sourcepub fn latest_version_id(&self) -> Option<i32>
pub fn latest_version_id(&self) -> Option<i32>
The ID of a core network policy.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
The client token associated with the request.
Trait Implementations§
source§impl Clone for PutCoreNetworkPolicyInput
impl Clone for PutCoreNetworkPolicyInput
source§fn clone(&self) -> PutCoreNetworkPolicyInput
fn clone(&self) -> PutCoreNetworkPolicyInput
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