Struct aws_sdk_apprunner::client::Client
source · [−]pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Client for AWS App Runner
Client for invoking operations on AWS App Runner. Each operation on AWS App Runner is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_apprunner::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_apprunner::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_apprunner::Client::from_conf(config);
Implementations
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> Client<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
Constructs a fluent builder for the AssociateCustomDomain
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.
domain_name(impl Into<String>)
/set_domain_name(Option<String>)
:A custom domain endpoint to associate. Specify a root domain (for example,
example.com
), a subdomain (for example,login.example.com
oradmin.login.example.com
), or a wildcard (for example,*.example.com
).enable_www_subdomain(bool)
/set_enable_www_subdomain(Option<bool>)
:Set to
true
to associate the subdomainwww.DomainName
with the App Runner service in addition to the base domain.Default:
true
- On success, responds with
AssociateCustomDomainOutput
with field(s):dns_target(Option<String>)
:The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service with which a custom domain name is associated.
custom_domain(Option<CustomDomain>)
:A description of the domain name that’s being associated.
- On failure, responds with
SdkError<AssociateCustomDomainError>
Constructs a fluent builder for the CreateAutoScalingConfiguration
operation.
- The fluent builder is configurable:
auto_scaling_configuration_name(impl Into<String>)
/set_auto_scaling_configuration_name(Option<String>)
:A name for the auto scaling configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number
1
of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.max_concurrency(i32)
/set_max_concurrency(Option<i32>)
:The maximum number of concurrent requests that you want an instance to process. If the number of concurrent requests exceeds this limit, App Runner scales up your service.
Default:
100
min_size(i32)
/set_min_size(Option<i32>)
:The minimum number of instances that App Runner provisions for your service. The service always has at least
MinSize
provisioned instances. Some of them actively serve traffic. The rest of them (provisioned and inactive instances) are a cost-effective compute capacity reserve and are ready to be quickly activated. You pay for memory usage of all the provisioned instances. You pay for CPU usage of only the active subset.App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.
Default:
1
max_size(i32)
/set_max_size(Option<i32>)
:The maximum number of instances that your service scales up to. At most
MaxSize
instances actively serve traffic for your service.Default:
25
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.
- On success, responds with
CreateAutoScalingConfigurationOutput
with field(s):auto_scaling_configuration(Option<AutoScalingConfiguration>)
:A description of the App Runner auto scaling configuration that’s created by this request.
- On failure, responds with
SdkError<CreateAutoScalingConfigurationError>
Constructs a fluent builder for the CreateConnection
operation.
- The fluent builder is configurable:
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:A name for the new connection. It must be unique across all App Runner connections for the Amazon Web Services account in the Amazon Web Services Region.
provider_type(ProviderType)
/set_provider_type(Option<ProviderType>)
:The source repository provider.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.
- On success, responds with
CreateConnectionOutput
with field(s):connection(Option<Connection>)
:A description of the App Runner connection that’s created by this request.
- On failure, responds with
SdkError<CreateConnectionError>
Constructs a fluent builder for the CreateService
operation.
- The fluent builder is configurable:
service_name(impl Into<String>)
/set_service_name(Option<String>)
:A name for the new service. It must be unique across all the running App Runner services in your Amazon Web Services account in the Amazon Web Services Region.
source_configuration(SourceConfiguration)
/set_source_configuration(Option<SourceConfiguration>)
:The source to deploy to the App Runner service. It can be a code or an image repository.
instance_configuration(InstanceConfiguration)
/set_instance_configuration(Option<InstanceConfiguration>)
:The runtime configuration of instances (scaling units) of the App Runner service.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:An optional list of metadata items that you can associate with your service resource. A tag is a key-value pair.
encryption_configuration(EncryptionConfiguration)
/set_encryption_configuration(Option<EncryptionConfiguration>)
:An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an Amazon Web Services managed CMK.
health_check_configuration(HealthCheckConfiguration)
/set_health_check_configuration(Option<HealthCheckConfiguration>)
:The settings for the health check that App Runner performs to monitor the health of your service.
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration.
- On success, responds with
CreateServiceOutput
with field(s):service(Option<Service>)
:A description of the App Runner service that’s created by this request.
operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation’s progress.
- On failure, responds with
SdkError<CreateServiceError>
Constructs a fluent builder for the DeleteAutoScalingConfiguration
operation.
- The fluent builder is configurable:
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.
The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either
…/name
or…/name/revision
. If a revision isn’t specified, the latest active revision is deleted.
- On success, responds with
DeleteAutoScalingConfigurationOutput
with field(s):auto_scaling_configuration(Option<AutoScalingConfiguration>)
:A description of the App Runner auto scaling configuration that this request just deleted.
- On failure, responds with
SdkError<DeleteAutoScalingConfigurationError>
Constructs a fluent builder for the DeleteConnection
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.
- On success, responds with
DeleteConnectionOutput
with field(s):connection(Option<Connection>)
:A description of the App Runner connection that this request just deleted.
- On failure, responds with
SdkError<DeleteConnectionError>
Constructs a fluent builder for the DeleteService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to delete.
- On success, responds with
DeleteServiceOutput
with field(s):service(Option<Service>)
:A description of the App Runner service that this request just deleted.
operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the
ListOperations
call to track the operation’s progress.
- On failure, responds with
SdkError<DeleteServiceError>
pub fn describe_auto_scaling_configuration(
&self
) -> DescribeAutoScalingConfiguration<C, M, R>
pub fn describe_auto_scaling_configuration(
&self
) -> DescribeAutoScalingConfiguration<C, M, R>
Constructs a fluent builder for the DescribeAutoScalingConfiguration
operation.
- The fluent builder is configurable:
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want a description for.
The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either
…/name
or…/name/revision
. If a revision isn’t specified, the latest active revision is described.
- On success, responds with
DescribeAutoScalingConfigurationOutput
with field(s):auto_scaling_configuration(Option<AutoScalingConfiguration>)
:A full description of the App Runner auto scaling configuration that you specified in this request.
- On failure, responds with
SdkError<DescribeAutoScalingConfigurationError>
Constructs a fluent builder for the DescribeCustomDomains
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token from a previous result page. It’s used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.
If you don’t specify
NextToken
, the request retrieves the first result page.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results that each response (result page) can include. It’s used for a paginated request.
If you don’t specify
MaxResults
, the request retrieves all available results in a single response.
- On success, responds with
DescribeCustomDomainsOutput
with field(s):dns_target(Option<String>)
:The App Runner subdomain of the App Runner service. The associated custom domain names are mapped to this target name.
service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service whose associated custom domain names you want to describe.
custom_domains(Option<Vec<CustomDomain>>)
:A list of descriptions of custom domain names that are associated with the service. In a paginated request, the request returns up to
MaxResults
records per call.next_token(Option<String>)
:The token that you can pass in a subsequent request to get the next result page. It’s returned in a paginated request.
- On failure, responds with
SdkError<DescribeCustomDomainsError>
Constructs a fluent builder for the DescribeService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want a description for.
- On success, responds with
DescribeServiceOutput
with field(s):service(Option<Service>)
:A full description of the App Runner service that you specified in this request.
- On failure, responds with
SdkError<DescribeServiceError>
Constructs a fluent builder for the DisassociateCustomDomain
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.
domain_name(impl Into<String>)
/set_domain_name(Option<String>)
:The domain name that you want to disassociate from the App Runner service.
- On success, responds with
DisassociateCustomDomainOutput
with field(s):dns_target(Option<String>)
:The App Runner subdomain of the App Runner service. The disassociated custom domain name was mapped to this target name.
service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that a custom domain name is disassociated from.
custom_domain(Option<CustomDomain>)
:A description of the domain name that’s being disassociated.
- On failure, responds with
SdkError<DisassociateCustomDomainError>
Constructs a fluent builder for the ListAutoScalingConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
auto_scaling_configuration_name(impl Into<String>)
/set_auto_scaling_configuration_name(Option<String>)
:The name of the App Runner auto scaling configuration that you want to list. If specified, App Runner lists revisions that share this name. If not specified, App Runner returns revisions of all configurations.
latest_only(bool)
/set_latest_only(bool)
:Set to
true
to list only the latest revision for each requested configuration name.Keep as
false
to list all revisions for each requested configuration name.Default:
false
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to include in each response (result page). It’s used for a paginated request.
If you don’t specify
MaxResults
, the request retrieves all available results in a single response.next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token from a previous result page. It’s used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones that are specified in the initial request.
If you don’t specify
NextToken
, the request retrieves the first result page.
- On success, responds with
ListAutoScalingConfigurationsOutput
with field(s):auto_scaling_configuration_summary_list(Option<Vec<AutoScalingConfigurationSummary>>)
:A list of summary information records for auto scaling configurations. In a paginated request, the request returns up to
MaxResults
records for each call.next_token(Option<String>)
:The token that you can pass in a subsequent request to get the next result page. It’s returned in a paginated request.
- On failure, responds with
SdkError<ListAutoScalingConfigurationsError>
Constructs a fluent builder for the ListConnections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:If specified, only this connection is returned. If not specified, the result isn’t filtered by name.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to include in each response (result page). Used for a paginated request.
If you don’t specify
MaxResults
, the request retrieves all available results in a single response.next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don’t specify
NextToken
, the request retrieves the first result page.
- On success, responds with
ListConnectionsOutput
with field(s):connection_summary_list(Option<Vec<ConnectionSummary>>)
:A list of summary information records for connections. In a paginated request, the request returns up to
MaxResults
records for each call.next_token(Option<String>)
:The token that you can pass in a subsequent request to get the next result page. Returned in a paginated request.
- On failure, responds with
SdkError<ListConnectionsError>
Constructs a fluent builder for the ListOperations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token from a previous result page. It’s used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don’t specify
NextToken
, the request retrieves the first result page.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to include in each response (result page). It’s used for a paginated request.
If you don’t specify
MaxResults
, the request retrieves all available results in a single response.
- On success, responds with
ListOperationsOutput
with field(s):operation_summary_list(Option<Vec<OperationSummary>>)
:A list of operation summary information records. In a paginated request, the request returns up to
MaxResults
records for each call.next_token(Option<String>)
:The token that you can pass in a subsequent request to get the next result page. It’s returned in a paginated request.
- On failure, responds with
SdkError<ListOperationsError>
Constructs a fluent builder for the ListServices
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.
If you don’t specify
NextToken
, the request retrieves the first result page.max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to include in each response (result page). It’s used for a paginated request.
If you don’t specify
MaxResults
, the request retrieves all available results in a single response.
- On success, responds with
ListServicesOutput
with field(s):service_summary_list(Option<Vec<ServiceSummary>>)
:A list of service summary information records. In a paginated request, the request returns up to
MaxResults
records for each call.next_token(Option<String>)
:The token that you can pass in a subsequent request to get the next result page. It’s returned in a paginated request.
- On failure, responds with
SdkError<ListServicesError>
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource that a tag list is requested for.
It must be the ARN of an App Runner resource.
- On success, responds with
ListTagsForResourceOutput
with field(s):tags(Option<Vec<Tag>>)
:A list of the tag key-value pairs that are associated with the resource.
- On failure, responds with
SdkError<ListTagsForResourceError>
Constructs a fluent builder for the PauseService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to pause.
- On success, responds with
PauseServiceOutput
with field(s):service(Option<Service>)
:A description of the App Runner service that this request just paused.
operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the
ListOperations
call to track the operation’s progress.
- On failure, responds with
SdkError<PauseServiceError>
Constructs a fluent builder for the ResumeService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to resume.
- On success, responds with
ResumeServiceOutput
with field(s):service(Option<Service>)
:A description of the App Runner service that this request just resumed.
operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the
ListOperations
call to track the operation’s progress.
- On failure, responds with
SdkError<ResumeServiceError>
Constructs a fluent builder for the StartDeployment
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to manually deploy to.
- On success, responds with
StartDeploymentOutput
with field(s):operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the
ListOperations
call to track the operation’s progress.
- On failure, responds with
SdkError<StartDeploymentError>
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource that you want to update tags for.
It must be the ARN of an App Runner resource.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:A list of tag key-value pairs to add or update. If a key is new to the resource, the tag is added with the provided value. If a key is already associated with the resource, the value of the tag is updated.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:The Amazon Resource Name (ARN) of the resource that you want to remove tags from.
It must be the ARN of an App Runner resource.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
:A list of tag keys that you want to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Constructs a fluent builder for the UpdateService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:The Amazon Resource Name (ARN) of the App Runner service that you want to update.
source_configuration(SourceConfiguration)
/set_source_configuration(Option<SourceConfiguration>)
:The source configuration to apply to the App Runner service.
You can change the configuration of the code or image repository that the service uses. However, you can’t switch from code to image or the other way around. This means that you must provide the same structure member of
SourceConfiguration
that you originally included when you created the service. Specifically, you can include eitherCodeRepository
orImageRepository
. To update the source configuration, set the values to members of the structure that you include.instance_configuration(InstanceConfiguration)
/set_instance_configuration(Option<InstanceConfiguration>)
:The runtime configuration to apply to instances (scaling units) of the App Runner service.
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service.
health_check_configuration(HealthCheckConfiguration)
/set_health_check_configuration(Option<HealthCheckConfiguration>)
:The settings for the health check that App Runner performs to monitor the health of your service.
- On success, responds with
UpdateServiceOutput
with field(s):service(Option<Service>)
:A description of the App Runner service updated by this request. All configuration values in the returned
Service
structure reflect configuration changes that are being applied by this request.operation_id(Option<String>)
:The unique ID of the asynchronous operation that this request started. You can use it combined with the
ListOperations
call to track the operation’s progress.
- On failure, responds with
SdkError<UpdateServiceError>
Creates a client with the given service config and connector override.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for Client<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for Client<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more