Struct aws_sdk_connect::client::fluent_builders::CreateInstance
source · [−]pub struct CreateInstance { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateInstance
.
This API is in preview release for Amazon Connect and is subject to change.
Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage, such as Amazon Simple Storage Service (Amazon S3) or Amazon Kinesis. It also does not allow for any configurations on features, such as Contact Lens for Amazon Connect.
Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.
Implementations
sourceimpl CreateInstance
impl CreateInstance
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateInstance, AwsResponseRetryClassifier>, SdkError<CreateInstanceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateInstance, AwsResponseRetryClassifier>, SdkError<CreateInstanceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateInstanceOutput, SdkError<CreateInstanceError>>
pub async fn send(
self
) -> Result<CreateInstanceOutput, SdkError<CreateInstanceError>>
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 client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token.
sourcepub fn identity_management_type(self, input: DirectoryType) -> Self
pub fn identity_management_type(self, input: DirectoryType) -> Self
The type of identity management for your Amazon Connect users.
sourcepub fn set_identity_management_type(self, input: Option<DirectoryType>) -> Self
pub fn set_identity_management_type(self, input: Option<DirectoryType>) -> Self
The type of identity management for your Amazon Connect users.
sourcepub fn instance_alias(self, input: impl Into<String>) -> Self
pub fn instance_alias(self, input: impl Into<String>) -> Self
The name for your instance.
sourcepub fn set_instance_alias(self, input: Option<String>) -> Self
pub fn set_instance_alias(self, input: Option<String>) -> Self
The name for your instance.
sourcepub fn directory_id(self, input: impl Into<String>) -> Self
pub fn directory_id(self, input: impl Into<String>) -> Self
The identifier for the directory.
sourcepub fn set_directory_id(self, input: Option<String>) -> Self
pub fn set_directory_id(self, input: Option<String>) -> Self
The identifier for the directory.
sourcepub fn inbound_calls_enabled(self, input: bool) -> Self
pub fn inbound_calls_enabled(self, input: bool) -> Self
Your contact center handles incoming contacts.
sourcepub fn set_inbound_calls_enabled(self, input: Option<bool>) -> Self
pub fn set_inbound_calls_enabled(self, input: Option<bool>) -> Self
Your contact center handles incoming contacts.
sourcepub fn outbound_calls_enabled(self, input: bool) -> Self
pub fn outbound_calls_enabled(self, input: bool) -> Self
Your contact center allows outbound calls.
sourcepub fn set_outbound_calls_enabled(self, input: Option<bool>) -> Self
pub fn set_outbound_calls_enabled(self, input: Option<bool>) -> Self
Your contact center allows outbound calls.
Trait Implementations
sourceimpl Clone for CreateInstance
impl Clone for CreateInstance
sourcefn clone(&self) -> CreateInstance
fn clone(&self) -> CreateInstance
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more