pub struct CreateWorkspaceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateWorkspace
.
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
Implementations§
source§impl CreateWorkspaceFluentBuilder
impl CreateWorkspaceFluentBuilder
sourcepub fn as_input(&self) -> &CreateWorkspaceInputBuilder
pub fn as_input(&self) -> &CreateWorkspaceInputBuilder
Access the CreateWorkspace as a reference.
sourcepub async fn send(
self
) -> Result<CreateWorkspaceOutput, SdkError<CreateWorkspaceError, HttpResponse>>
pub async fn send( self ) -> Result<CreateWorkspaceOutput, SdkError<CreateWorkspaceError, 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<CreateWorkspaceOutput, CreateWorkspaceError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateWorkspaceOutput, CreateWorkspaceError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn alias(self, input: impl Into<String>) -> Self
pub fn alias(self, input: impl Into<String>) -> Self
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn set_alias(self, input: Option<String>) -> Self
pub fn set_alias(self, input: Option<String>) -> Self
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn get_alias(&self) -> &Option<String>
pub fn get_alias(&self) -> &Option<String>
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of tag keys and values to associate with the workspace.
The list of tag keys and values to associate with the workspace.
The list of tag keys and values to associate with the workspace.
sourcepub fn kms_key_arn(self, input: impl Into<String>) -> Self
pub fn kms_key_arn(self, input: impl Into<String>) -> Self
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn set_kms_key_arn(self, input: Option<String>) -> Self
pub fn set_kms_key_arn(self, input: Option<String>) -> Self
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
sourcepub fn get_kms_key_arn(&self) -> &Option<String>
pub fn get_kms_key_arn(&self) -> &Option<String>
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
Trait Implementations§
source§impl Clone for CreateWorkspaceFluentBuilder
impl Clone for CreateWorkspaceFluentBuilder
source§fn clone(&self) -> CreateWorkspaceFluentBuilder
fn clone(&self) -> CreateWorkspaceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more