pub struct Client { /* 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.
§Constructing a Client
A Config
is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env()
, since this will resolve an SdkConfig
which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env()
instead, which returns a ConfigLoader
that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_apprunner::Client::new(&config);
Occasionally, SDKs may have additional service-specific values that can be set on the Config
that
is absent from SdkConfig
, or slightly different settings for a specific client may be desired.
The Builder
struct implements From<&SdkConfig>
, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_apprunner::config::Builder::from(&sdk_config)
.some_service_specific_setting("value")
.build();
See the aws-config
docs and Config
for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the AssociateCustomDomain
operation has
a Client::associate_custom_domain
, function which returns a builder for that operation.
The fluent builder ultimately has a send()
function that returns an async future that
returns a result, as illustrated below:
let result = client.associate_custom_domain()
.service_arn("example")
.send()
.await;
The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize
module for more
information.
Implementations§
Source§impl Client
impl Client
Sourcepub fn associate_custom_domain(&self) -> AssociateCustomDomainFluentBuilder
pub fn associate_custom_domain(&self) -> AssociateCustomDomainFluentBuilder
Constructs a fluent builder for the AssociateCustomDomain
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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>)
:
required: trueA 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>)
:
required: falseSet 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(String)
:The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.
service_arn(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.
vpc_dns_targets(Vec::<VpcDnsTarget>)
:DNS Target records for the custom domains of this Amazon VPC.
- On failure, responds with
SdkError<AssociateCustomDomainError>
Source§impl Client
impl Client
Sourcepub fn create_auto_scaling_configuration(
&self,
) -> CreateAutoScalingConfigurationFluentBuilder
pub fn create_auto_scaling_configuration( &self, ) -> CreateAutoScalingConfigurationFluentBuilder
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>)
:
required: trueA 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.Prior to the release of Auto scale configuration enhancements, the name
DefaultConfiguration
was reserved.This restriction is no longer in place. You can now manage
DefaultConfiguration
the same way you manage your custom auto scaling configurations. This means you can do the following with theDefaultConfiguration
that App Runner provides:-
Create new revisions of the
DefaultConfiguration
. -
Delete the revisions of the
DefaultConfiguration
. -
Delete the auto scaling configuration for which the App Runner
DefaultConfiguration
was created. -
If you delete the auto scaling configuration you can create another custom auto scaling configuration with the same
DefaultConfiguration
name. The originalDefaultConfiguration
resource provided by App Runner remains in your account unless you make changes to it.
-
max_concurrency(i32)
/set_max_concurrency(Option<i32>)
:
required: falseThe 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>)
:
required: falseThe 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>)
:
required: falseThe maximum number of instances that your service scales up to. At most
MaxSize
instances actively serve traffic for your service.Default:
25
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA 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>
Source§impl Client
impl Client
Sourcepub fn create_connection(&self) -> CreateConnectionFluentBuilder
pub fn create_connection(&self) -> CreateConnectionFluentBuilder
Constructs a fluent builder for the CreateConnection
operation.
- The fluent builder is configurable:
connection_name(impl Into<String>)
/set_connection_name(Option<String>)
:
required: trueA 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>)
:
required: trueThe source repository provider.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA 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>
Source§impl Client
impl Client
Sourcepub fn create_observability_configuration(
&self,
) -> CreateObservabilityConfigurationFluentBuilder
pub fn create_observability_configuration( &self, ) -> CreateObservabilityConfigurationFluentBuilder
Constructs a fluent builder for the CreateObservabilityConfiguration
operation.
- The fluent builder is configurable:
observability_configuration_name(impl Into<String>)
/set_observability_configuration_name(Option<String>)
:
required: trueA name for the observability 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.The name
DefaultConfiguration
is reserved. You can’t use it to create a new observability configuration, and you can’t create a revision of it.When you want to use your own observability configuration for your App Runner service, create a configuration with a different name, and then provide it when you create or update your service.
trace_configuration(TraceConfiguration)
/set_trace_configuration(Option<TraceConfiguration>)
:
required: falseThe configuration of the tracing feature within this observability configuration. If you don’t specify it, App Runner doesn’t enable tracing.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.
- On success, responds with
CreateObservabilityConfigurationOutput
with field(s):observability_configuration(Option<ObservabilityConfiguration>)
:A description of the App Runner observability configuration that’s created by this request.
- On failure, responds with
SdkError<CreateObservabilityConfigurationError>
Source§impl Client
impl Client
Sourcepub fn create_service(&self) -> CreateServiceFluentBuilder
pub fn create_service(&self) -> CreateServiceFluentBuilder
Constructs a fluent builder for the CreateService
operation.
- The fluent builder is configurable:
service_name(impl Into<String>)
/set_service_name(Option<String>)
:
required: trueA name for the App Runner 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>)
:
required: trueThe 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>)
:
required: falseThe runtime configuration of instances (scaling units) of your service.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseAn optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.
encryption_configuration(EncryptionConfiguration)
/set_encryption_configuration(Option<EncryptionConfiguration>)
:
required: falseAn 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 key.
health_check_configuration(HealthCheckConfiguration)
/set_health_check_configuration(Option<HealthCheckConfiguration>)
:
required: falseThe settings for the health check that App Runner performs to monitor the health of the App Runner service.
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:
required: falseThe 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.
Specify an ARN with a name and a revision number to associate that revision. For example:
arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3
Specify just the name to associate the latest revision. For example:
arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability
network_configuration(NetworkConfiguration)
/set_network_configuration(Option<NetworkConfiguration>)
:
required: falseConfiguration settings related to network traffic of the web application that the App Runner service runs.
observability_configuration(ServiceObservabilityConfiguration)
/set_observability_configuration(Option<ServiceObservabilityConfiguration>)
:
required: falseThe observability configuration of your service.
- 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(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>
Source§impl Client
impl Client
Sourcepub fn create_vpc_connector(&self) -> CreateVpcConnectorFluentBuilder
pub fn create_vpc_connector(&self) -> CreateVpcConnectorFluentBuilder
Constructs a fluent builder for the CreateVpcConnector
operation.
- The fluent builder is configurable:
vpc_connector_name(impl Into<String>)
/set_vpc_connector_name(Option<String>)
:
required: trueA name for the VPC connector.
subnets(impl Into<String>)
/set_subnets(Option<Vec::<String>>)
:
required: trueA list of IDs of subnets that App Runner should use when it associates your service with a custom Amazon VPC. Specify IDs of subnets of a single Amazon VPC. App Runner determines the Amazon VPC from the subnets you specify.
App Runner currently only provides support for IPv4.
security_groups(impl Into<String>)
/set_security_groups(Option<Vec::<String>>)
:
required: falseA list of IDs of security groups that App Runner should use for access to Amazon Web Services resources under the specified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The default security group allows all outbound traffic.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseA list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.
- On success, responds with
CreateVpcConnectorOutput
with field(s):vpc_connector(Option<VpcConnector>)
:A description of the App Runner VPC connector that’s created by this request.
- On failure, responds with
SdkError<CreateVpcConnectorError>
Source§impl Client
impl Client
Sourcepub fn create_vpc_ingress_connection(
&self,
) -> CreateVpcIngressConnectionFluentBuilder
pub fn create_vpc_ingress_connection( &self, ) -> CreateVpcIngressConnectionFluentBuilder
Constructs a fluent builder for the CreateVpcIngressConnection
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.
vpc_ingress_connection_name(impl Into<String>)
/set_vpc_ingress_connection_name(Option<String>)
:
required: trueA name for the VPC Ingress Connection resource. It must be unique across all the active VPC Ingress Connections in your Amazon Web Services account in the Amazon Web Services Region.
ingress_vpc_configuration(IngressVpcConfiguration)
/set_ingress_vpc_configuration(Option<IngressVpcConfiguration>)
:
required: trueSpecifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to create the VPC Ingress Connection resource.
tags(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: falseAn optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.
- On success, responds with
CreateVpcIngressConnectionOutput
with field(s):vpc_ingress_connection(Option<VpcIngressConnection>)
:A description of the App Runner VPC Ingress Connection resource that’s created by this request.
- On failure, responds with
SdkError<CreateVpcIngressConnectionError>
Source§impl Client
impl Client
Sourcepub fn delete_auto_scaling_configuration(
&self,
) -> DeleteAutoScalingConfigurationFluentBuilder
pub fn delete_auto_scaling_configuration( &self, ) -> DeleteAutoScalingConfigurationFluentBuilder
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>)
:
required: trueThe 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.delete_all_revisions(bool)
/set_delete_all_revisions(Option<bool>)
:
required: falseSet to
true
to delete all of the revisions associated with theAutoScalingConfigurationArn
parameter value.When
DeleteAllRevisions
is set totrue
, the only valid value for the Amazon Resource Name (ARN) is a partial ARN ending with:…/name
.
- 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>
Source§impl Client
impl Client
Sourcepub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
pub fn delete_connection(&self) -> DeleteConnectionFluentBuilder
Constructs a fluent builder for the DeleteConnection
operation.
- The fluent builder is configurable:
connection_arn(impl Into<String>)
/set_connection_arn(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn delete_observability_configuration(
&self,
) -> DeleteObservabilityConfigurationFluentBuilder
pub fn delete_observability_configuration( &self, ) -> DeleteObservabilityConfigurationFluentBuilder
Constructs a fluent builder for the DeleteObservabilityConfiguration
operation.
- The fluent builder is configurable:
observability_configuration_arn(impl Into<String>)
/set_observability_configuration_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner observability configuration that you want to delete.
The ARN can be a full observability 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
DeleteObservabilityConfigurationOutput
with field(s):observability_configuration(Option<ObservabilityConfiguration>)
:A description of the App Runner observability configuration that this request just deleted.
- On failure, responds with
SdkError<DeleteObservabilityConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_service(&self) -> DeleteServiceFluentBuilder
pub fn delete_service(&self) -> DeleteServiceFluentBuilder
Constructs a fluent builder for the DeleteService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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(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>
Source§impl Client
impl Client
Sourcepub fn delete_vpc_connector(&self) -> DeleteVpcConnectorFluentBuilder
pub fn delete_vpc_connector(&self) -> DeleteVpcConnectorFluentBuilder
Constructs a fluent builder for the DeleteVpcConnector
operation.
- The fluent builder is configurable:
vpc_connector_arn(impl Into<String>)
/set_vpc_connector_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner VPC connector that you want to delete.
The ARN must be a full VPC connector ARN.
- On success, responds with
DeleteVpcConnectorOutput
with field(s):vpc_connector(Option<VpcConnector>)
:A description of the App Runner VPC connector that this request just deleted.
- On failure, responds with
SdkError<DeleteVpcConnectorError>
Source§impl Client
impl Client
Sourcepub fn delete_vpc_ingress_connection(
&self,
) -> DeleteVpcIngressConnectionFluentBuilder
pub fn delete_vpc_ingress_connection( &self, ) -> DeleteVpcIngressConnectionFluentBuilder
Constructs a fluent builder for the DeleteVpcIngressConnection
operation.
- The fluent builder is configurable:
vpc_ingress_connection_arn(impl Into<String>)
/set_vpc_ingress_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want to delete.
- On success, responds with
DeleteVpcIngressConnectionOutput
with field(s):vpc_ingress_connection(Option<VpcIngressConnection>)
:A description of the App Runner VPC Ingress Connection that this request just deleted.
- On failure, responds with
SdkError<DeleteVpcIngressConnectionError>
Source§impl Client
impl Client
Sourcepub fn describe_auto_scaling_configuration(
&self,
) -> DescribeAutoScalingConfigurationFluentBuilder
pub fn describe_auto_scaling_configuration( &self, ) -> DescribeAutoScalingConfigurationFluentBuilder
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>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_custom_domains(&self) -> DescribeCustomDomainsFluentBuilder
pub fn describe_custom_domains(&self) -> DescribeCustomDomainsFluentBuilder
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>)
:
required: trueThe 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>)
:
required: falseA 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>)
:
required: falseThe 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(String)
:The App Runner subdomain of the App Runner service. The associated custom domain names are mapped to this target name.
service_arn(String)
:The Amazon Resource Name (ARN) of the App Runner service whose associated custom domain names you want to describe.
custom_domains(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.vpc_dns_targets(Vec::<VpcDnsTarget>)
:DNS Target records for the custom domains of this Amazon VPC.
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>
Source§impl Client
impl Client
Sourcepub fn describe_observability_configuration(
&self,
) -> DescribeObservabilityConfigurationFluentBuilder
pub fn describe_observability_configuration( &self, ) -> DescribeObservabilityConfigurationFluentBuilder
Constructs a fluent builder for the DescribeObservabilityConfiguration
operation.
- The fluent builder is configurable:
observability_configuration_arn(impl Into<String>)
/set_observability_configuration_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.
The ARN can be a full observability 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
DescribeObservabilityConfigurationOutput
with field(s):observability_configuration(Option<ObservabilityConfiguration>)
:A full description of the App Runner observability configuration that you specified in this request.
- On failure, responds with
SdkError<DescribeObservabilityConfigurationError>
Source§impl Client
impl Client
Sourcepub fn describe_service(&self) -> DescribeServiceFluentBuilder
pub fn describe_service(&self) -> DescribeServiceFluentBuilder
Constructs a fluent builder for the DescribeService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn describe_vpc_connector(&self) -> DescribeVpcConnectorFluentBuilder
pub fn describe_vpc_connector(&self) -> DescribeVpcConnectorFluentBuilder
Constructs a fluent builder for the DescribeVpcConnector
operation.
- The fluent builder is configurable:
vpc_connector_arn(impl Into<String>)
/set_vpc_connector_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.
The ARN must be a full VPC connector ARN.
- On success, responds with
DescribeVpcConnectorOutput
with field(s):vpc_connector(Option<VpcConnector>)
:A description of the App Runner VPC connector that you specified in this request.
- On failure, responds with
SdkError<DescribeVpcConnectorError>
Source§impl Client
impl Client
Sourcepub fn describe_vpc_ingress_connection(
&self,
) -> DescribeVpcIngressConnectionFluentBuilder
pub fn describe_vpc_ingress_connection( &self, ) -> DescribeVpcIngressConnectionFluentBuilder
Constructs a fluent builder for the DescribeVpcIngressConnection
operation.
- The fluent builder is configurable:
vpc_ingress_connection_arn(impl Into<String>)
/set_vpc_ingress_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want a description for.
- On success, responds with
DescribeVpcIngressConnectionOutput
with field(s):vpc_ingress_connection(Option<VpcIngressConnection>)
:A description of the App Runner VPC Ingress Connection that you specified in this request.
- On failure, responds with
SdkError<DescribeVpcIngressConnectionError>
Source§impl Client
impl Client
Sourcepub fn disassociate_custom_domain(
&self,
) -> DisassociateCustomDomainFluentBuilder
pub fn disassociate_custom_domain( &self, ) -> DisassociateCustomDomainFluentBuilder
Constructs a fluent builder for the DisassociateCustomDomain
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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>)
:
required: trueThe domain name that you want to disassociate from the App Runner service.
- On success, responds with
DisassociateCustomDomainOutput
with field(s):dns_target(String)
:The App Runner subdomain of the App Runner service. The disassociated custom domain name was mapped to this target name.
service_arn(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.
vpc_dns_targets(Vec::<VpcDnsTarget>)
:DNS Target records for the custom domains of this Amazon VPC.
- On failure, responds with
SdkError<DisassociateCustomDomainError>
Source§impl Client
impl Client
Sourcepub fn list_auto_scaling_configurations(
&self,
) -> ListAutoScalingConfigurationsFluentBuilder
pub fn list_auto_scaling_configurations( &self, ) -> ListAutoScalingConfigurationsFluentBuilder
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>)
:
required: falseThe 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 active configurations.
latest_only(bool)
/set_latest_only(Option<bool>)
:
required: falseSet to
true
to list only the latest revision for each requested configuration name.Set to
false
to list all revisions for each requested configuration name.Default:
true
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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(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>
Source§impl Client
impl Client
Sourcepub fn list_connections(&self) -> ListConnectionsFluentBuilder
pub fn list_connections(&self) -> ListConnectionsFluentBuilder
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>)
:
required: falseIf specified, only this connection is returned. If not specified, the result isn’t filtered by name.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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(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>
Source§impl Client
impl Client
Sourcepub fn list_observability_configurations(
&self,
) -> ListObservabilityConfigurationsFluentBuilder
pub fn list_observability_configurations( &self, ) -> ListObservabilityConfigurationsFluentBuilder
Constructs a fluent builder for the ListObservabilityConfigurations
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
observability_configuration_name(impl Into<String>)
/set_observability_configuration_name(Option<String>)
:
required: falseThe name of the App Runner observability 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 active configurations.
latest_only(bool)
/set_latest_only(Option<bool>)
:
required: falseSet to
true
to list only the latest revision for each requested configuration name.Set to
false
to list all revisions for each requested configuration name.Default:
true
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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
ListObservabilityConfigurationsOutput
with field(s):observability_configuration_summary_list(Vec::<ObservabilityConfigurationSummary>)
:A list of summary information records for observability 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<ListObservabilityConfigurationsError>
Source§impl Client
impl Client
Sourcepub fn list_operations(&self) -> ListOperationsFluentBuilder
pub fn list_operations(&self) -> ListOperationsFluentBuilder
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>)
:
required: trueThe 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>)
:
required: falseA 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>)
:
required: falseThe 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>
Source§impl Client
impl Client
Sourcepub fn list_services(&self) -> ListServicesFluentBuilder
pub fn list_services(&self) -> ListServicesFluentBuilder
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>)
:
required: falseA 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>)
:
required: falseThe 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(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>
Source§impl Client
impl Client
Sourcepub fn list_services_for_auto_scaling_configuration(
&self,
) -> ListServicesForAutoScalingConfigurationFluentBuilder
pub fn list_services_for_auto_scaling_configuration( &self, ) -> ListServicesForAutoScalingConfigurationFluentBuilder
Constructs a fluent builder for the ListServicesForAutoScalingConfiguration
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to list the services 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 used.max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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.
- On success, responds with
ListServicesForAutoScalingConfigurationOutput
with field(s):service_arn_list(Vec::<String>)
:A list of service ARN 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<ListServicesForAutoScalingConfigurationError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn list_vpc_connectors(&self) -> ListVpcConnectorsFluentBuilder
pub fn list_vpc_connectors(&self) -> ListVpcConnectorsFluentBuilder
Constructs a fluent builder for the ListVpcConnectors
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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
ListVpcConnectorsOutput
with field(s):vpc_connectors(Vec::<VpcConnector>)
:A list of information records for VPC connectors. 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<ListVpcConnectorsError>
Source§impl Client
impl Client
Sourcepub fn list_vpc_ingress_connections(
&self,
) -> ListVpcIngressConnectionsFluentBuilder
pub fn list_vpc_ingress_connections( &self, ) -> ListVpcIngressConnectionsFluentBuilder
Constructs a fluent builder for the ListVpcIngressConnections
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
filter(ListVpcIngressConnectionsFilter)
/set_filter(Option<ListVpcIngressConnectionsFilter>)
:
required: falseThe VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.
max_results(i32)
/set_max_results(Option<i32>)
:
required: falseThe 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>)
:
required: falseA 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
ListVpcIngressConnectionsOutput
with field(s):vpc_ingress_connection_summary_list(Vec::<VpcIngressConnectionSummary>)
:A list of summary information records for VPC Ingress 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. It’s returned in a paginated request.
- On failure, responds with
SdkError<ListVpcIngressConnectionsError>
Source§impl Client
impl Client
Sourcepub fn pause_service(&self) -> PauseServiceFluentBuilder
pub fn pause_service(&self) -> PauseServiceFluentBuilder
Constructs a fluent builder for the PauseService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn resume_service(&self) -> ResumeServiceFluentBuilder
pub fn resume_service(&self) -> ResumeServiceFluentBuilder
Constructs a fluent builder for the ResumeService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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>
Source§impl Client
impl Client
Sourcepub fn start_deployment(&self) -> StartDeploymentFluentBuilder
pub fn start_deployment(&self) -> StartDeploymentFluentBuilder
Constructs a fluent builder for the StartDeployment
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe 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(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>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe 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(Tag)
/set_tags(Option<Vec::<Tag>>)
:
required: trueA 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>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)
/set_resource_arn(Option<String>)
:
required: trueThe 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(impl Into<String>)
/set_tag_keys(Option<Vec::<String>>)
:
required: trueA list of tag keys that you want to remove.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_default_auto_scaling_configuration(
&self,
) -> UpdateDefaultAutoScalingConfigurationFluentBuilder
pub fn update_default_auto_scaling_configuration( &self, ) -> UpdateDefaultAutoScalingConfigurationFluentBuilder
Constructs a fluent builder for the UpdateDefaultAutoScalingConfiguration
operation.
- The fluent builder is configurable:
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to set as the default.
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 set as the default.
- On success, responds with
UpdateDefaultAutoScalingConfigurationOutput
with field(s):auto_scaling_configuration(Option<AutoScalingConfiguration>)
:A description of the App Runner auto scaling configuration that was set as default.
- On failure, responds with
SdkError<UpdateDefaultAutoScalingConfigurationError>
Source§impl Client
impl Client
Sourcepub fn update_service(&self) -> UpdateServiceFluentBuilder
pub fn update_service(&self) -> UpdateServiceFluentBuilder
Constructs a fluent builder for the UpdateService
operation.
- The fluent builder is configurable:
service_arn(impl Into<String>)
/set_service_arn(Option<String>)
:
required: trueThe Amazon Resource Name (ARN) of the App Runner service that you want to update.
source_configuration(SourceConfiguration)
/set_source_configuration(Option<SourceConfiguration>)
:
required: falseThe 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>)
:
required: falseThe runtime configuration to apply to instances (scaling units) of your service.
auto_scaling_configuration_arn(impl Into<String>)
/set_auto_scaling_configuration_arn(Option<String>)
:
required: falseThe Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.
health_check_configuration(HealthCheckConfiguration)
/set_health_check_configuration(Option<HealthCheckConfiguration>)
:
required: falseThe settings for the health check that App Runner performs to monitor the health of the App Runner service.
network_configuration(NetworkConfiguration)
/set_network_configuration(Option<NetworkConfiguration>)
:
required: falseConfiguration settings related to network traffic of the web application that the App Runner service runs.
observability_configuration(ServiceObservabilityConfiguration)
/set_observability_configuration(Option<ServiceObservabilityConfiguration>)
:
required: falseThe observability configuration 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(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>
Source§impl Client
impl Client
Sourcepub fn update_vpc_ingress_connection(
&self,
) -> UpdateVpcIngressConnectionFluentBuilder
pub fn update_vpc_ingress_connection( &self, ) -> UpdateVpcIngressConnectionFluentBuilder
Constructs a fluent builder for the UpdateVpcIngressConnection
operation.
- The fluent builder is configurable:
vpc_ingress_connection_arn(impl Into<String>)
/set_vpc_ingress_connection_arn(Option<String>)
:
required: trueThe Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.
ingress_vpc_configuration(IngressVpcConfiguration)
/set_ingress_vpc_configuration(Option<IngressVpcConfiguration>)
:
required: trueSpecifications for the customer’s Amazon VPC and the related Amazon Web Services PrivateLink VPC endpoint that are used to update the VPC Ingress Connection resource.
- On success, responds with
UpdateVpcIngressConnectionOutput
with field(s):vpc_ingress_connection(Option<VpcIngressConnection>)
:A description of the App Runner VPC Ingress Connection resource that’s updated by this request.
- On failure, responds with
SdkError<UpdateVpcIngressConnectionError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a
sleep_impl
configured. - Identity caching is enabled without a
sleep_impl
andtime_source
configured. - No
behavior_version
is provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it. - This method will panic if no
BehaviorVersion
is provided. If you experience this panic, setbehavior_version
on the Config or enable thebehavior-version-latest
Cargo feature.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);