pub struct CreateService { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateService
.
Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint.
If an Amazon Web Services resource is launched in a service VPC, and you want it to be accessible to all of an environment’s services with VPCs and routes, apply the RefactorSpacesSecurityGroup
to the resource. Alternatively, to add more cross-account constraints, apply your own security group.
Implementations§
source§impl CreateService
impl CreateService
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateService, AwsResponseRetryClassifier>, SdkError<CreateServiceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateService, AwsResponseRetryClassifier>, SdkError<CreateServiceError>>
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<CreateServiceOutput, SdkError<CreateServiceError>>
pub async fn send(
self
) -> Result<CreateServiceOutput, SdkError<CreateServiceError>>
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the service.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the service.
sourcepub fn environment_identifier(self, input: impl Into<String>) -> Self
pub fn environment_identifier(self, input: impl Into<String>) -> Self
The ID of the environment in which the service is created.
sourcepub fn set_environment_identifier(self, input: Option<String>) -> Self
pub fn set_environment_identifier(self, input: Option<String>) -> Self
The ID of the environment in which the service is created.
sourcepub fn application_identifier(self, input: impl Into<String>) -> Self
pub fn application_identifier(self, input: impl Into<String>) -> Self
The ID of the application which the service is created.
sourcepub fn set_application_identifier(self, input: Option<String>) -> Self
pub fn set_application_identifier(self, input: Option<String>) -> Self
The ID of the application which the service is created.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC.
sourcepub fn endpoint_type(self, input: ServiceEndpointType) -> Self
pub fn endpoint_type(self, input: ServiceEndpointType) -> Self
The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.
sourcepub fn set_endpoint_type(self, input: Option<ServiceEndpointType>) -> Self
pub fn set_endpoint_type(self, input: Option<ServiceEndpointType>) -> Self
The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.
sourcepub fn url_endpoint(self, input: UrlEndpointInput) -> Self
pub fn url_endpoint(self, input: UrlEndpointInput) -> Self
The configuration for the URL endpoint type. When creating a route to a service, Refactor Spaces automatically resolves the address in the UrlEndpointInput
object URL when the Domain Name System (DNS) time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds.
sourcepub fn set_url_endpoint(self, input: Option<UrlEndpointInput>) -> Self
pub fn set_url_endpoint(self, input: Option<UrlEndpointInput>) -> Self
The configuration for the URL endpoint type. When creating a route to a service, Refactor Spaces automatically resolves the address in the UrlEndpointInput
object URL when the Domain Name System (DNS) time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds.
sourcepub fn lambda_endpoint(self, input: LambdaEndpointInput) -> Self
pub fn lambda_endpoint(self, input: LambdaEndpointInput) -> Self
The configuration for the Lambda endpoint type.
sourcepub fn set_lambda_endpoint(self, input: Option<LambdaEndpointInput>) -> Self
pub fn set_lambda_endpoint(self, input: Option<LambdaEndpointInput>) -> Self
The configuration for the Lambda endpoint type.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The tags to assign to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..
The tags to assign to the service. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..
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 that you provide to ensure the 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 that you provide to ensure the idempotency of the request.
Trait Implementations§
source§impl Clone for CreateService
impl Clone for CreateService
source§fn clone(&self) -> CreateService
fn clone(&self) -> CreateService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more