Struct aws_sdk_opensearchserverless::operation::create_lifecycle_policy::builders::CreateLifecyclePolicyFluentBuilder
source · pub struct CreateLifecyclePolicyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLifecyclePolicy
.
Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
Implementations§
source§impl CreateLifecyclePolicyFluentBuilder
impl CreateLifecyclePolicyFluentBuilder
sourcepub fn as_input(&self) -> &CreateLifecyclePolicyInputBuilder
pub fn as_input(&self) -> &CreateLifecyclePolicyInputBuilder
Access the CreateLifecyclePolicy as a reference.
sourcepub async fn send(
self
) -> Result<CreateLifecyclePolicyOutput, SdkError<CreateLifecyclePolicyError, HttpResponse>>
pub async fn send( self ) -> Result<CreateLifecyclePolicyOutput, SdkError<CreateLifecyclePolicyError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateLifecyclePolicyOutput, CreateLifecyclePolicyError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateLifecyclePolicyOutput, CreateLifecyclePolicyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn type(self, input: LifecyclePolicyType) -> Self
pub fn type(self, input: LifecyclePolicyType) -> Self
The type of lifecycle policy.
sourcepub fn set_type(self, input: Option<LifecyclePolicyType>) -> Self
pub fn set_type(self, input: Option<LifecyclePolicyType>) -> Self
The type of lifecycle policy.
sourcepub fn get_type(&self) -> &Option<LifecyclePolicyType>
pub fn get_type(&self) -> &Option<LifecyclePolicyType>
The type of lifecycle policy.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the lifecycle policy.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the lifecycle policy.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the lifecycle policy.
sourcepub fn policy(self, input: impl Into<String>) -> Self
pub fn policy(self, input: impl Into<String>) -> Self
The JSON policy document to use as the content for the lifecycle policy.
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The JSON policy document to use as the content for the lifecycle policy.
sourcepub fn get_policy(&self) -> &Option<String>
pub fn get_policy(&self) -> &Option<String>
The JSON policy document to use as the content for the lifecycle policy.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier to ensure idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier to ensure idempotency of the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier to ensure idempotency of the request.
Trait Implementations§
source§impl Clone for CreateLifecyclePolicyFluentBuilder
impl Clone for CreateLifecyclePolicyFluentBuilder
source§fn clone(&self) -> CreateLifecyclePolicyFluentBuilder
fn clone(&self) -> CreateLifecyclePolicyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more