// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// 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**
/// ```rust,no_run
/// # async fn docs() {
/// // 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**
/// ```rust,no_run
/// use aws_config::retry::RetryConfig;
/// # async fn docs() {
/// 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);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`AssociateCustomDomain`](crate::client::fluent_builders::AssociateCustomDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::AssociateCustomDomain::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::AssociateCustomDomain::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::AssociateCustomDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::AssociateCustomDomain::set_domain_name): <p>A custom domain endpoint to associate. Specify a root domain (for example, <code>example.com</code>), a subdomain (for example, <code>login.example.com</code> or <code>admin.login.example.com</code>), or a wildcard (for example, <code>*.example.com</code>).</p>
/// - [`enable_www_subdomain(bool)`](crate::client::fluent_builders::AssociateCustomDomain::enable_www_subdomain) / [`set_enable_www_subdomain(Option<bool>)`](crate::client::fluent_builders::AssociateCustomDomain::set_enable_www_subdomain): <p>Set to <code>true</code> to associate the subdomain <code>www.<i>DomainName</i> </code> with the App Runner service in addition to the base domain.</p> <p>Default: <code>true</code> </p>
/// - On success, responds with [`AssociateCustomDomainOutput`](crate::output::AssociateCustomDomainOutput) with field(s):
/// - [`dns_target(Option<String>)`](crate::output::AssociateCustomDomainOutput::dns_target): <p>The App Runner subdomain of the App Runner service. The custom domain name is mapped to this target name.</p>
/// - [`service_arn(Option<String>)`](crate::output::AssociateCustomDomainOutput::service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service with which a custom domain name is associated.</p>
/// - [`custom_domain(Option<CustomDomain>)`](crate::output::AssociateCustomDomainOutput::custom_domain): <p>A description of the domain name that's being associated.</p>
/// - [`vpc_dns_targets(Option<Vec<VpcDnsTarget>>)`](crate::output::AssociateCustomDomainOutput::vpc_dns_targets): <p>DNS Target records for the custom domains of this Amazon VPC. </p>
/// - On failure, responds with [`SdkError<AssociateCustomDomainError>`](crate::error::AssociateCustomDomainError)
pub fn associate_custom_domain(&self) -> fluent_builders::AssociateCustomDomain {
fluent_builders::AssociateCustomDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateAutoScalingConfiguration`](crate::client::fluent_builders::CreateAutoScalingConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`auto_scaling_configuration_name(impl Into<String>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::auto_scaling_configuration_name) / [`set_auto_scaling_configuration_name(Option<String>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::set_auto_scaling_configuration_name): <p>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 <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note> <p>The name <code>DefaultConfiguration</code> is reserved (it's the configuration that App Runner uses if you don't provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a revision of it.</p> <p>When you want to use your own auto scaling configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p> </note>
/// - [`max_concurrency(i32)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::max_concurrency) / [`set_max_concurrency(Option<i32>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::set_max_concurrency): <p>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.</p> <p>Default: <code>100</code> </p>
/// - [`min_size(i32)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::min_size) / [`set_min_size(Option<i32>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::set_min_size): <p>The minimum number of instances that App Runner provisions for your service. The service always has at least <code>MinSize</code> 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.</p> <p>App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.</p> <p>Default: <code>1</code> </p>
/// - [`max_size(i32)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::max_size) / [`set_max_size(Option<i32>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::set_max_size): <p>The maximum number of instances that your service scales up to. At most <code>MaxSize</code> instances actively serve traffic for your service.</p> <p>Default: <code>25</code> </p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateAutoScalingConfiguration::set_tags): <p>A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.</p>
/// - On success, responds with [`CreateAutoScalingConfigurationOutput`](crate::output::CreateAutoScalingConfigurationOutput) with field(s):
/// - [`auto_scaling_configuration(Option<AutoScalingConfiguration>)`](crate::output::CreateAutoScalingConfigurationOutput::auto_scaling_configuration): <p>A description of the App Runner auto scaling configuration that's created by this request.</p>
/// - On failure, responds with [`SdkError<CreateAutoScalingConfigurationError>`](crate::error::CreateAutoScalingConfigurationError)
pub fn create_auto_scaling_configuration(
&self,
) -> fluent_builders::CreateAutoScalingConfiguration {
fluent_builders::CreateAutoScalingConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateConnection`](crate::client::fluent_builders::CreateConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`connection_name(impl Into<String>)`](crate::client::fluent_builders::CreateConnection::connection_name) / [`set_connection_name(Option<String>)`](crate::client::fluent_builders::CreateConnection::set_connection_name): <p>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.</p>
/// - [`provider_type(ProviderType)`](crate::client::fluent_builders::CreateConnection::provider_type) / [`set_provider_type(Option<ProviderType>)`](crate::client::fluent_builders::CreateConnection::set_provider_type): <p>The source repository provider.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateConnection::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateConnection::set_tags): <p>A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.</p>
/// - On success, responds with [`CreateConnectionOutput`](crate::output::CreateConnectionOutput) with field(s):
/// - [`connection(Option<Connection>)`](crate::output::CreateConnectionOutput::connection): <p>A description of the App Runner connection that's created by this request.</p>
/// - On failure, responds with [`SdkError<CreateConnectionError>`](crate::error::CreateConnectionError)
pub fn create_connection(&self) -> fluent_builders::CreateConnection {
fluent_builders::CreateConnection::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateObservabilityConfiguration`](crate::client::fluent_builders::CreateObservabilityConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`observability_configuration_name(impl Into<String>)`](crate::client::fluent_builders::CreateObservabilityConfiguration::observability_configuration_name) / [`set_observability_configuration_name(Option<String>)`](crate::client::fluent_builders::CreateObservabilityConfiguration::set_observability_configuration_name): <p>A name for the observability configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note> <p>The name <code>DefaultConfiguration</code> is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.</p> <p>When you want to use your own observability configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p> </note>
/// - [`trace_configuration(TraceConfiguration)`](crate::client::fluent_builders::CreateObservabilityConfiguration::trace_configuration) / [`set_trace_configuration(Option<TraceConfiguration>)`](crate::client::fluent_builders::CreateObservabilityConfiguration::set_trace_configuration): <p>The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateObservabilityConfiguration::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateObservabilityConfiguration::set_tags): <p>A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.</p>
/// - On success, responds with [`CreateObservabilityConfigurationOutput`](crate::output::CreateObservabilityConfigurationOutput) with field(s):
/// - [`observability_configuration(Option<ObservabilityConfiguration>)`](crate::output::CreateObservabilityConfigurationOutput::observability_configuration): <p>A description of the App Runner observability configuration that's created by this request.</p>
/// - On failure, responds with [`SdkError<CreateObservabilityConfigurationError>`](crate::error::CreateObservabilityConfigurationError)
pub fn create_observability_configuration(
&self,
) -> fluent_builders::CreateObservabilityConfiguration {
fluent_builders::CreateObservabilityConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateService`](crate::client::fluent_builders::CreateService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_name(impl Into<String>)`](crate::client::fluent_builders::CreateService::service_name) / [`set_service_name(Option<String>)`](crate::client::fluent_builders::CreateService::set_service_name): <p>A 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.</p>
/// - [`source_configuration(SourceConfiguration)`](crate::client::fluent_builders::CreateService::source_configuration) / [`set_source_configuration(Option<SourceConfiguration>)`](crate::client::fluent_builders::CreateService::set_source_configuration): <p>The source to deploy to the App Runner service. It can be a code or an image repository.</p>
/// - [`instance_configuration(InstanceConfiguration)`](crate::client::fluent_builders::CreateService::instance_configuration) / [`set_instance_configuration(Option<InstanceConfiguration>)`](crate::client::fluent_builders::CreateService::set_instance_configuration): <p>The runtime configuration of instances (scaling units) of your service.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateService::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateService::set_tags): <p>An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.</p>
/// - [`encryption_configuration(EncryptionConfiguration)`](crate::client::fluent_builders::CreateService::encryption_configuration) / [`set_encryption_configuration(Option<EncryptionConfiguration>)`](crate::client::fluent_builders::CreateService::set_encryption_configuration): <p>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 key.</p>
/// - [`health_check_configuration(HealthCheckConfiguration)`](crate::client::fluent_builders::CreateService::health_check_configuration) / [`set_health_check_configuration(Option<HealthCheckConfiguration>)`](crate::client::fluent_builders::CreateService::set_health_check_configuration): <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
/// - [`auto_scaling_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::CreateService::auto_scaling_configuration_arn) / [`set_auto_scaling_configuration_arn(Option<String>)`](crate::client::fluent_builders::CreateService::set_auto_scaling_configuration_arn): <p>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.</p> <p>Specify an ARN with a name and a revision number to associate that revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3</code> </p> <p>Specify just the name to associate the latest revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability</code> </p>
/// - [`network_configuration(NetworkConfiguration)`](crate::client::fluent_builders::CreateService::network_configuration) / [`set_network_configuration(Option<NetworkConfiguration>)`](crate::client::fluent_builders::CreateService::set_network_configuration): <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
/// - [`observability_configuration(ServiceObservabilityConfiguration)`](crate::client::fluent_builders::CreateService::observability_configuration) / [`set_observability_configuration(Option<ServiceObservabilityConfiguration>)`](crate::client::fluent_builders::CreateService::set_observability_configuration): <p>The observability configuration of your service.</p>
/// - On success, responds with [`CreateServiceOutput`](crate::output::CreateServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::CreateServiceOutput::service): <p>A description of the App Runner service that's created by this request.</p>
/// - [`operation_id(Option<String>)`](crate::output::CreateServiceOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<CreateServiceError>`](crate::error::CreateServiceError)
pub fn create_service(&self) -> fluent_builders::CreateService {
fluent_builders::CreateService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateVpcConnector`](crate::client::fluent_builders::CreateVpcConnector) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_connector_name(impl Into<String>)`](crate::client::fluent_builders::CreateVpcConnector::vpc_connector_name) / [`set_vpc_connector_name(Option<String>)`](crate::client::fluent_builders::CreateVpcConnector::set_vpc_connector_name): <p>A name for the VPC connector.</p>
/// - [`subnets(Vec<String>)`](crate::client::fluent_builders::CreateVpcConnector::subnets) / [`set_subnets(Option<Vec<String>>)`](crate::client::fluent_builders::CreateVpcConnector::set_subnets): <p>A 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.</p> <note> <p> App Runner currently only provides support for IPv4. </p> </note>
/// - [`security_groups(Vec<String>)`](crate::client::fluent_builders::CreateVpcConnector::security_groups) / [`set_security_groups(Option<Vec<String>>)`](crate::client::fluent_builders::CreateVpcConnector::set_security_groups): <p>A 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.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateVpcConnector::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateVpcConnector::set_tags): <p>A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.</p>
/// - On success, responds with [`CreateVpcConnectorOutput`](crate::output::CreateVpcConnectorOutput) with field(s):
/// - [`vpc_connector(Option<VpcConnector>)`](crate::output::CreateVpcConnectorOutput::vpc_connector): <p>A description of the App Runner VPC connector that's created by this request.</p>
/// - On failure, responds with [`SdkError<CreateVpcConnectorError>`](crate::error::CreateVpcConnectorError)
pub fn create_vpc_connector(&self) -> fluent_builders::CreateVpcConnector {
fluent_builders::CreateVpcConnector::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CreateVpcIngressConnection`](crate::client::fluent_builders::CreateVpcIngressConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::CreateVpcIngressConnection::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::CreateVpcIngressConnection::set_service_arn): <p>The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.</p>
/// - [`vpc_ingress_connection_name(impl Into<String>)`](crate::client::fluent_builders::CreateVpcIngressConnection::vpc_ingress_connection_name) / [`set_vpc_ingress_connection_name(Option<String>)`](crate::client::fluent_builders::CreateVpcIngressConnection::set_vpc_ingress_connection_name): <p>A 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. </p>
/// - [`ingress_vpc_configuration(IngressVpcConfiguration)`](crate::client::fluent_builders::CreateVpcIngressConnection::ingress_vpc_configuration) / [`set_ingress_vpc_configuration(Option<IngressVpcConfiguration>)`](crate::client::fluent_builders::CreateVpcIngressConnection::set_ingress_vpc_configuration): <p>Specifications 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.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::CreateVpcIngressConnection::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::CreateVpcIngressConnection::set_tags): <p>An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.</p>
/// - On success, responds with [`CreateVpcIngressConnectionOutput`](crate::output::CreateVpcIngressConnectionOutput) with field(s):
/// - [`vpc_ingress_connection(Option<VpcIngressConnection>)`](crate::output::CreateVpcIngressConnectionOutput::vpc_ingress_connection): <p>A description of the App Runner VPC Ingress Connection resource that's created by this request. </p>
/// - On failure, responds with [`SdkError<CreateVpcIngressConnectionError>`](crate::error::CreateVpcIngressConnectionError)
pub fn create_vpc_ingress_connection(&self) -> fluent_builders::CreateVpcIngressConnection {
fluent_builders::CreateVpcIngressConnection::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteAutoScalingConfiguration`](crate::client::fluent_builders::DeleteAutoScalingConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`auto_scaling_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteAutoScalingConfiguration::auto_scaling_configuration_arn) / [`set_auto_scaling_configuration_arn(Option<String>)`](crate::client::fluent_builders::DeleteAutoScalingConfiguration::set_auto_scaling_configuration_arn): <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.</p> <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
/// - On success, responds with [`DeleteAutoScalingConfigurationOutput`](crate::output::DeleteAutoScalingConfigurationOutput) with field(s):
/// - [`auto_scaling_configuration(Option<AutoScalingConfiguration>)`](crate::output::DeleteAutoScalingConfigurationOutput::auto_scaling_configuration): <p>A description of the App Runner auto scaling configuration that this request just deleted.</p>
/// - On failure, responds with [`SdkError<DeleteAutoScalingConfigurationError>`](crate::error::DeleteAutoScalingConfigurationError)
pub fn delete_auto_scaling_configuration(
&self,
) -> fluent_builders::DeleteAutoScalingConfiguration {
fluent_builders::DeleteAutoScalingConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteConnection`](crate::client::fluent_builders::DeleteConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`connection_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteConnection::connection_arn) / [`set_connection_arn(Option<String>)`](crate::client::fluent_builders::DeleteConnection::set_connection_arn): <p>The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.</p>
/// - On success, responds with [`DeleteConnectionOutput`](crate::output::DeleteConnectionOutput) with field(s):
/// - [`connection(Option<Connection>)`](crate::output::DeleteConnectionOutput::connection): <p>A description of the App Runner connection that this request just deleted.</p>
/// - On failure, responds with [`SdkError<DeleteConnectionError>`](crate::error::DeleteConnectionError)
pub fn delete_connection(&self) -> fluent_builders::DeleteConnection {
fluent_builders::DeleteConnection::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteObservabilityConfiguration`](crate::client::fluent_builders::DeleteObservabilityConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`observability_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteObservabilityConfiguration::observability_configuration_arn) / [`set_observability_configuration_arn(Option<String>)`](crate::client::fluent_builders::DeleteObservabilityConfiguration::set_observability_configuration_arn): <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want to delete.</p> <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
/// - On success, responds with [`DeleteObservabilityConfigurationOutput`](crate::output::DeleteObservabilityConfigurationOutput) with field(s):
/// - [`observability_configuration(Option<ObservabilityConfiguration>)`](crate::output::DeleteObservabilityConfigurationOutput::observability_configuration): <p>A description of the App Runner observability configuration that this request just deleted.</p>
/// - On failure, responds with [`SdkError<DeleteObservabilityConfigurationError>`](crate::error::DeleteObservabilityConfigurationError)
pub fn delete_observability_configuration(
&self,
) -> fluent_builders::DeleteObservabilityConfiguration {
fluent_builders::DeleteObservabilityConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteService`](crate::client::fluent_builders::DeleteService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteService::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::DeleteService::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to delete.</p>
/// - On success, responds with [`DeleteServiceOutput`](crate::output::DeleteServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::DeleteServiceOutput::service): <p>A description of the App Runner service that this request just deleted.</p>
/// - [`operation_id(Option<String>)`](crate::output::DeleteServiceOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <code>ListOperations</code> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<DeleteServiceError>`](crate::error::DeleteServiceError)
pub fn delete_service(&self) -> fluent_builders::DeleteService {
fluent_builders::DeleteService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteVpcConnector`](crate::client::fluent_builders::DeleteVpcConnector) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_connector_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteVpcConnector::vpc_connector_arn) / [`set_vpc_connector_arn(Option<String>)`](crate::client::fluent_builders::DeleteVpcConnector::set_vpc_connector_arn): <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to delete.</p> <p>The ARN must be a full VPC connector ARN.</p>
/// - On success, responds with [`DeleteVpcConnectorOutput`](crate::output::DeleteVpcConnectorOutput) with field(s):
/// - [`vpc_connector(Option<VpcConnector>)`](crate::output::DeleteVpcConnectorOutput::vpc_connector): <p>A description of the App Runner VPC connector that this request just deleted.</p>
/// - On failure, responds with [`SdkError<DeleteVpcConnectorError>`](crate::error::DeleteVpcConnectorError)
pub fn delete_vpc_connector(&self) -> fluent_builders::DeleteVpcConnector {
fluent_builders::DeleteVpcConnector::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteVpcIngressConnection`](crate::client::fluent_builders::DeleteVpcIngressConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_ingress_connection_arn(impl Into<String>)`](crate::client::fluent_builders::DeleteVpcIngressConnection::vpc_ingress_connection_arn) / [`set_vpc_ingress_connection_arn(Option<String>)`](crate::client::fluent_builders::DeleteVpcIngressConnection::set_vpc_ingress_connection_arn): <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want to delete.</p>
/// - On success, responds with [`DeleteVpcIngressConnectionOutput`](crate::output::DeleteVpcIngressConnectionOutput) with field(s):
/// - [`vpc_ingress_connection(Option<VpcIngressConnection>)`](crate::output::DeleteVpcIngressConnectionOutput::vpc_ingress_connection): <p>A description of the App Runner VPC Ingress Connection that this request just deleted.</p>
/// - On failure, responds with [`SdkError<DeleteVpcIngressConnectionError>`](crate::error::DeleteVpcIngressConnectionError)
pub fn delete_vpc_ingress_connection(&self) -> fluent_builders::DeleteVpcIngressConnection {
fluent_builders::DeleteVpcIngressConnection::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeAutoScalingConfiguration`](crate::client::fluent_builders::DescribeAutoScalingConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`auto_scaling_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeAutoScalingConfiguration::auto_scaling_configuration_arn) / [`set_auto_scaling_configuration_arn(Option<String>)`](crate::client::fluent_builders::DescribeAutoScalingConfiguration::set_auto_scaling_configuration_arn): <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want a description for.</p> <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
/// - On success, responds with [`DescribeAutoScalingConfigurationOutput`](crate::output::DescribeAutoScalingConfigurationOutput) with field(s):
/// - [`auto_scaling_configuration(Option<AutoScalingConfiguration>)`](crate::output::DescribeAutoScalingConfigurationOutput::auto_scaling_configuration): <p>A full description of the App Runner auto scaling configuration that you specified in this request.</p>
/// - On failure, responds with [`SdkError<DescribeAutoScalingConfigurationError>`](crate::error::DescribeAutoScalingConfigurationError)
pub fn describe_auto_scaling_configuration(
&self,
) -> fluent_builders::DescribeAutoScalingConfiguration {
fluent_builders::DescribeAutoScalingConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeCustomDomains`](crate::client::fluent_builders::DescribeCustomDomains) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::DescribeCustomDomains::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeCustomDomains::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::DescribeCustomDomains::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::DescribeCustomDomains::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::DescribeCustomDomains::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::DescribeCustomDomains::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::DescribeCustomDomains::set_max_results): <p>The maximum number of results that each response (result page) can include. It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - On success, responds with [`DescribeCustomDomainsOutput`](crate::output::DescribeCustomDomainsOutput) with field(s):
/// - [`dns_target(Option<String>)`](crate::output::DescribeCustomDomainsOutput::dns_target): <p>The App Runner subdomain of the App Runner service. The associated custom domain names are mapped to this target name.</p>
/// - [`service_arn(Option<String>)`](crate::output::DescribeCustomDomainsOutput::service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service whose associated custom domain names you want to describe.</p>
/// - [`custom_domains(Option<Vec<CustomDomain>>)`](crate::output::DescribeCustomDomainsOutput::custom_domains): <p>A list of descriptions of custom domain names that are associated with the service. In a paginated request, the request returns up to <code>MaxResults</code> records per call.</p>
/// - [`vpc_dns_targets(Option<Vec<VpcDnsTarget>>)`](crate::output::DescribeCustomDomainsOutput::vpc_dns_targets): <p>DNS Target records for the custom domains of this Amazon VPC. </p>
/// - [`next_token(Option<String>)`](crate::output::DescribeCustomDomainsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<DescribeCustomDomainsError>`](crate::error::DescribeCustomDomainsError)
pub fn describe_custom_domains(&self) -> fluent_builders::DescribeCustomDomains {
fluent_builders::DescribeCustomDomains::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeObservabilityConfiguration`](crate::client::fluent_builders::DescribeObservabilityConfiguration) operation.
///
/// - The fluent builder is configurable:
/// - [`observability_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeObservabilityConfiguration::observability_configuration_arn) / [`set_observability_configuration_arn(Option<String>)`](crate::client::fluent_builders::DescribeObservabilityConfiguration::set_observability_configuration_arn): <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.</p> <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
/// - On success, responds with [`DescribeObservabilityConfigurationOutput`](crate::output::DescribeObservabilityConfigurationOutput) with field(s):
/// - [`observability_configuration(Option<ObservabilityConfiguration>)`](crate::output::DescribeObservabilityConfigurationOutput::observability_configuration): <p>A full description of the App Runner observability configuration that you specified in this request.</p>
/// - On failure, responds with [`SdkError<DescribeObservabilityConfigurationError>`](crate::error::DescribeObservabilityConfigurationError)
pub fn describe_observability_configuration(
&self,
) -> fluent_builders::DescribeObservabilityConfiguration {
fluent_builders::DescribeObservabilityConfiguration::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeService`](crate::client::fluent_builders::DescribeService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeService::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::DescribeService::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want a description for.</p>
/// - On success, responds with [`DescribeServiceOutput`](crate::output::DescribeServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::DescribeServiceOutput::service): <p>A full description of the App Runner service that you specified in this request.</p>
/// - On failure, responds with [`SdkError<DescribeServiceError>`](crate::error::DescribeServiceError)
pub fn describe_service(&self) -> fluent_builders::DescribeService {
fluent_builders::DescribeService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeVpcConnector`](crate::client::fluent_builders::DescribeVpcConnector) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_connector_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeVpcConnector::vpc_connector_arn) / [`set_vpc_connector_arn(Option<String>)`](crate::client::fluent_builders::DescribeVpcConnector::set_vpc_connector_arn): <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.</p> <p>The ARN must be a full VPC connector ARN.</p>
/// - On success, responds with [`DescribeVpcConnectorOutput`](crate::output::DescribeVpcConnectorOutput) with field(s):
/// - [`vpc_connector(Option<VpcConnector>)`](crate::output::DescribeVpcConnectorOutput::vpc_connector): <p>A description of the App Runner VPC connector that you specified in this request.</p>
/// - On failure, responds with [`SdkError<DescribeVpcConnectorError>`](crate::error::DescribeVpcConnectorError)
pub fn describe_vpc_connector(&self) -> fluent_builders::DescribeVpcConnector {
fluent_builders::DescribeVpcConnector::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DescribeVpcIngressConnection`](crate::client::fluent_builders::DescribeVpcIngressConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_ingress_connection_arn(impl Into<String>)`](crate::client::fluent_builders::DescribeVpcIngressConnection::vpc_ingress_connection_arn) / [`set_vpc_ingress_connection_arn(Option<String>)`](crate::client::fluent_builders::DescribeVpcIngressConnection::set_vpc_ingress_connection_arn): <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want a description for.</p>
/// - On success, responds with [`DescribeVpcIngressConnectionOutput`](crate::output::DescribeVpcIngressConnectionOutput) with field(s):
/// - [`vpc_ingress_connection(Option<VpcIngressConnection>)`](crate::output::DescribeVpcIngressConnectionOutput::vpc_ingress_connection): <p>A description of the App Runner VPC Ingress Connection that you specified in this request.</p>
/// - On failure, responds with [`SdkError<DescribeVpcIngressConnectionError>`](crate::error::DescribeVpcIngressConnectionError)
pub fn describe_vpc_ingress_connection(&self) -> fluent_builders::DescribeVpcIngressConnection {
fluent_builders::DescribeVpcIngressConnection::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisassociateCustomDomain`](crate::client::fluent_builders::DisassociateCustomDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::DisassociateCustomDomain::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::DisassociateCustomDomain::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.</p>
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DisassociateCustomDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DisassociateCustomDomain::set_domain_name): <p>The domain name that you want to disassociate from the App Runner service.</p>
/// - On success, responds with [`DisassociateCustomDomainOutput`](crate::output::DisassociateCustomDomainOutput) with field(s):
/// - [`dns_target(Option<String>)`](crate::output::DisassociateCustomDomainOutput::dns_target): <p>The App Runner subdomain of the App Runner service. The disassociated custom domain name was mapped to this target name.</p>
/// - [`service_arn(Option<String>)`](crate::output::DisassociateCustomDomainOutput::service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that a custom domain name is disassociated from.</p>
/// - [`custom_domain(Option<CustomDomain>)`](crate::output::DisassociateCustomDomainOutput::custom_domain): <p>A description of the domain name that's being disassociated.</p>
/// - [`vpc_dns_targets(Option<Vec<VpcDnsTarget>>)`](crate::output::DisassociateCustomDomainOutput::vpc_dns_targets): <p>DNS Target records for the custom domains of this Amazon VPC. </p>
/// - On failure, responds with [`SdkError<DisassociateCustomDomainError>`](crate::error::DisassociateCustomDomainError)
pub fn disassociate_custom_domain(&self) -> fluent_builders::DisassociateCustomDomain {
fluent_builders::DisassociateCustomDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListAutoScalingConfigurations`](crate::client::fluent_builders::ListAutoScalingConfigurations) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListAutoScalingConfigurations::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`auto_scaling_configuration_name(impl Into<String>)`](crate::client::fluent_builders::ListAutoScalingConfigurations::auto_scaling_configuration_name) / [`set_auto_scaling_configuration_name(Option<String>)`](crate::client::fluent_builders::ListAutoScalingConfigurations::set_auto_scaling_configuration_name): <p>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 active configurations.</p>
/// - [`latest_only(bool)`](crate::client::fluent_builders::ListAutoScalingConfigurations::latest_only) / [`set_latest_only(bool)`](crate::client::fluent_builders::ListAutoScalingConfigurations::set_latest_only): <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p> <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p> <p>Default: <code>true</code> </p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListAutoScalingConfigurations::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListAutoScalingConfigurations::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListAutoScalingConfigurations::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListAutoScalingConfigurations::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - On success, responds with [`ListAutoScalingConfigurationsOutput`](crate::output::ListAutoScalingConfigurationsOutput) with field(s):
/// - [`auto_scaling_configuration_summary_list(Option<Vec<AutoScalingConfigurationSummary>>)`](crate::output::ListAutoScalingConfigurationsOutput::auto_scaling_configuration_summary_list): <p>A list of summary information records for auto scaling configurations. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListAutoScalingConfigurationsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListAutoScalingConfigurationsError>`](crate::error::ListAutoScalingConfigurationsError)
pub fn list_auto_scaling_configurations(
&self,
) -> fluent_builders::ListAutoScalingConfigurations {
fluent_builders::ListAutoScalingConfigurations::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListConnections`](crate::client::fluent_builders::ListConnections) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListConnections::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`connection_name(impl Into<String>)`](crate::client::fluent_builders::ListConnections::connection_name) / [`set_connection_name(Option<String>)`](crate::client::fluent_builders::ListConnections::set_connection_name): <p>If specified, only this connection is returned. If not specified, the result isn't filtered by name.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListConnections::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListConnections::set_max_results): <p>The maximum number of results to include in each response (result page). Used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListConnections::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListConnections::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - On success, responds with [`ListConnectionsOutput`](crate::output::ListConnectionsOutput) with field(s):
/// - [`connection_summary_list(Option<Vec<ConnectionSummary>>)`](crate::output::ListConnectionsOutput::connection_summary_list): <p>A list of summary information records for connections. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListConnectionsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. Returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListConnectionsError>`](crate::error::ListConnectionsError)
pub fn list_connections(&self) -> fluent_builders::ListConnections {
fluent_builders::ListConnections::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListObservabilityConfigurations`](crate::client::fluent_builders::ListObservabilityConfigurations) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListObservabilityConfigurations::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`observability_configuration_name(impl Into<String>)`](crate::client::fluent_builders::ListObservabilityConfigurations::observability_configuration_name) / [`set_observability_configuration_name(Option<String>)`](crate::client::fluent_builders::ListObservabilityConfigurations::set_observability_configuration_name): <p>The 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.</p>
/// - [`latest_only(bool)`](crate::client::fluent_builders::ListObservabilityConfigurations::latest_only) / [`set_latest_only(bool)`](crate::client::fluent_builders::ListObservabilityConfigurations::set_latest_only): <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p> <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p> <p>Default: <code>true</code> </p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListObservabilityConfigurations::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListObservabilityConfigurations::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListObservabilityConfigurations::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListObservabilityConfigurations::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - On success, responds with [`ListObservabilityConfigurationsOutput`](crate::output::ListObservabilityConfigurationsOutput) with field(s):
/// - [`observability_configuration_summary_list(Option<Vec<ObservabilityConfigurationSummary>>)`](crate::output::ListObservabilityConfigurationsOutput::observability_configuration_summary_list): <p>A list of summary information records for observability configurations. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListObservabilityConfigurationsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListObservabilityConfigurationsError>`](crate::error::ListObservabilityConfigurationsError)
pub fn list_observability_configurations(
&self,
) -> fluent_builders::ListObservabilityConfigurations {
fluent_builders::ListObservabilityConfigurations::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListOperations`](crate::client::fluent_builders::ListOperations) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListOperations::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::ListOperations::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::ListOperations::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListOperations::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListOperations::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListOperations::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListOperations::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - On success, responds with [`ListOperationsOutput`](crate::output::ListOperationsOutput) with field(s):
/// - [`operation_summary_list(Option<Vec<OperationSummary>>)`](crate::output::ListOperationsOutput::operation_summary_list): <p>A list of operation summary information records. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListOperationsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListOperationsError>`](crate::error::ListOperationsError)
pub fn list_operations(&self) -> fluent_builders::ListOperations {
fluent_builders::ListOperations::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListServices`](crate::client::fluent_builders::ListServices) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListServices::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListServices::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListServices::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListServices::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListServices::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - On success, responds with [`ListServicesOutput`](crate::output::ListServicesOutput) with field(s):
/// - [`service_summary_list(Option<Vec<ServiceSummary>>)`](crate::output::ListServicesOutput::service_summary_list): <p>A list of service summary information records. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListServicesOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListServicesError>`](crate::error::ListServicesError)
pub fn list_services(&self) -> fluent_builders::ListServices {
fluent_builders::ListServices::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTagsForResource`](crate::client::fluent_builders::ListTagsForResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::ListTagsForResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::ListTagsForResource::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource that a tag list is requested for.</p> <p>It must be the ARN of an App Runner resource.</p>
/// - On success, responds with [`ListTagsForResourceOutput`](crate::output::ListTagsForResourceOutput) with field(s):
/// - [`tags(Option<Vec<Tag>>)`](crate::output::ListTagsForResourceOutput::tags): <p>A list of the tag key-value pairs that are associated with the resource.</p>
/// - On failure, responds with [`SdkError<ListTagsForResourceError>`](crate::error::ListTagsForResourceError)
pub fn list_tags_for_resource(&self) -> fluent_builders::ListTagsForResource {
fluent_builders::ListTagsForResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListVpcConnectors`](crate::client::fluent_builders::ListVpcConnectors) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListVpcConnectors::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::client::fluent_builders::ListVpcConnectors::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListVpcConnectors::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListVpcConnectors::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListVpcConnectors::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - On success, responds with [`ListVpcConnectorsOutput`](crate::output::ListVpcConnectorsOutput) with field(s):
/// - [`vpc_connectors(Option<Vec<VpcConnector>>)`](crate::output::ListVpcConnectorsOutput::vpc_connectors): <p>A list of information records for VPC connectors. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListVpcConnectorsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListVpcConnectorsError>`](crate::error::ListVpcConnectorsError)
pub fn list_vpc_connectors(&self) -> fluent_builders::ListVpcConnectors {
fluent_builders::ListVpcConnectors::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListVpcIngressConnections`](crate::client::fluent_builders::ListVpcIngressConnections) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListVpcIngressConnections::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`filter(ListVpcIngressConnectionsFilter)`](crate::client::fluent_builders::ListVpcIngressConnections::filter) / [`set_filter(Option<ListVpcIngressConnectionsFilter>)`](crate::client::fluent_builders::ListVpcIngressConnections::set_filter): <p>The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.</p>
/// - [`max_results(i32)`](crate::client::fluent_builders::ListVpcIngressConnections::max_results) / [`set_max_results(Option<i32>)`](crate::client::fluent_builders::ListVpcIngressConnections::set_max_results): <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p> <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
/// - [`next_token(impl Into<String>)`](crate::client::fluent_builders::ListVpcIngressConnections::next_token) / [`set_next_token(Option<String>)`](crate::client::fluent_builders::ListVpcIngressConnections::set_next_token): <p>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.</p> <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
/// - On success, responds with [`ListVpcIngressConnectionsOutput`](crate::output::ListVpcIngressConnectionsOutput) with field(s):
/// - [`vpc_ingress_connection_summary_list(Option<Vec<VpcIngressConnectionSummary>>)`](crate::output::ListVpcIngressConnectionsOutput::vpc_ingress_connection_summary_list): <p>A list of summary information records for VPC Ingress Connections. In a paginated request, the request returns up to <code>MaxResults</code> records for each call.</p>
/// - [`next_token(Option<String>)`](crate::output::ListVpcIngressConnectionsOutput::next_token): <p>The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.</p>
/// - On failure, responds with [`SdkError<ListVpcIngressConnectionsError>`](crate::error::ListVpcIngressConnectionsError)
pub fn list_vpc_ingress_connections(&self) -> fluent_builders::ListVpcIngressConnections {
fluent_builders::ListVpcIngressConnections::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`PauseService`](crate::client::fluent_builders::PauseService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::PauseService::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::PauseService::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to pause.</p>
/// - On success, responds with [`PauseServiceOutput`](crate::output::PauseServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::PauseServiceOutput::service): <p>A description of the App Runner service that this request just paused.</p>
/// - [`operation_id(Option<String>)`](crate::output::PauseServiceOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <code>ListOperations</code> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<PauseServiceError>`](crate::error::PauseServiceError)
pub fn pause_service(&self) -> fluent_builders::PauseService {
fluent_builders::PauseService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ResumeService`](crate::client::fluent_builders::ResumeService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::ResumeService::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::ResumeService::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to resume.</p>
/// - On success, responds with [`ResumeServiceOutput`](crate::output::ResumeServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::ResumeServiceOutput::service): <p>A description of the App Runner service that this request just resumed.</p>
/// - [`operation_id(Option<String>)`](crate::output::ResumeServiceOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <code>ListOperations</code> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<ResumeServiceError>`](crate::error::ResumeServiceError)
pub fn resume_service(&self) -> fluent_builders::ResumeService {
fluent_builders::ResumeService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`StartDeployment`](crate::client::fluent_builders::StartDeployment) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::StartDeployment::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::StartDeployment::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to manually deploy to.</p>
/// - On success, responds with [`StartDeploymentOutput`](crate::output::StartDeploymentOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::StartDeploymentOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <code>ListOperations</code> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<StartDeploymentError>`](crate::error::StartDeploymentError)
pub fn start_deployment(&self) -> fluent_builders::StartDeployment {
fluent_builders::StartDeployment::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TagResource`](crate::client::fluent_builders::TagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::TagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::TagResource::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource that you want to update tags for.</p> <p>It must be the ARN of an App Runner resource.</p>
/// - [`tags(Vec<Tag>)`](crate::client::fluent_builders::TagResource::tags) / [`set_tags(Option<Vec<Tag>>)`](crate::client::fluent_builders::TagResource::set_tags): <p>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.</p>
/// - On success, responds with [`TagResourceOutput`](crate::output::TagResourceOutput)
/// - On failure, responds with [`SdkError<TagResourceError>`](crate::error::TagResourceError)
pub fn tag_resource(&self) -> fluent_builders::TagResource {
fluent_builders::TagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UntagResource`](crate::client::fluent_builders::UntagResource) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::client::fluent_builders::UntagResource::resource_arn) / [`set_resource_arn(Option<String>)`](crate::client::fluent_builders::UntagResource::set_resource_arn): <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p> <p>It must be the ARN of an App Runner resource.</p>
/// - [`tag_keys(Vec<String>)`](crate::client::fluent_builders::UntagResource::tag_keys) / [`set_tag_keys(Option<Vec<String>>)`](crate::client::fluent_builders::UntagResource::set_tag_keys): <p>A list of tag keys that you want to remove.</p>
/// - On success, responds with [`UntagResourceOutput`](crate::output::UntagResourceOutput)
/// - On failure, responds with [`SdkError<UntagResourceError>`](crate::error::UntagResourceError)
pub fn untag_resource(&self) -> fluent_builders::UntagResource {
fluent_builders::UntagResource::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateService`](crate::client::fluent_builders::UpdateService) operation.
///
/// - The fluent builder is configurable:
/// - [`service_arn(impl Into<String>)`](crate::client::fluent_builders::UpdateService::service_arn) / [`set_service_arn(Option<String>)`](crate::client::fluent_builders::UpdateService::set_service_arn): <p>The Amazon Resource Name (ARN) of the App Runner service that you want to update.</p>
/// - [`source_configuration(SourceConfiguration)`](crate::client::fluent_builders::UpdateService::source_configuration) / [`set_source_configuration(Option<SourceConfiguration>)`](crate::client::fluent_builders::UpdateService::set_source_configuration): <p>The source configuration to apply to the App Runner service.</p> <p>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 <code>SourceConfiguration</code> that you originally included when you created the service. Specifically, you can include either <code>CodeRepository</code> or <code>ImageRepository</code>. To update the source configuration, set the values to members of the structure that you include.</p>
/// - [`instance_configuration(InstanceConfiguration)`](crate::client::fluent_builders::UpdateService::instance_configuration) / [`set_instance_configuration(Option<InstanceConfiguration>)`](crate::client::fluent_builders::UpdateService::set_instance_configuration): <p>The runtime configuration to apply to instances (scaling units) of your service.</p>
/// - [`auto_scaling_configuration_arn(impl Into<String>)`](crate::client::fluent_builders::UpdateService::auto_scaling_configuration_arn) / [`set_auto_scaling_configuration_arn(Option<String>)`](crate::client::fluent_builders::UpdateService::set_auto_scaling_configuration_arn): <p>The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.</p>
/// - [`health_check_configuration(HealthCheckConfiguration)`](crate::client::fluent_builders::UpdateService::health_check_configuration) / [`set_health_check_configuration(Option<HealthCheckConfiguration>)`](crate::client::fluent_builders::UpdateService::set_health_check_configuration): <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
/// - [`network_configuration(NetworkConfiguration)`](crate::client::fluent_builders::UpdateService::network_configuration) / [`set_network_configuration(Option<NetworkConfiguration>)`](crate::client::fluent_builders::UpdateService::set_network_configuration): <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
/// - [`observability_configuration(ServiceObservabilityConfiguration)`](crate::client::fluent_builders::UpdateService::observability_configuration) / [`set_observability_configuration(Option<ServiceObservabilityConfiguration>)`](crate::client::fluent_builders::UpdateService::set_observability_configuration): <p>The observability configuration of your service.</p>
/// - On success, responds with [`UpdateServiceOutput`](crate::output::UpdateServiceOutput) with field(s):
/// - [`service(Option<Service>)`](crate::output::UpdateServiceOutput::service): <p>A description of the App Runner service updated by this request. All configuration values in the returned <code>Service</code> structure reflect configuration changes that are being applied by this request.</p>
/// - [`operation_id(Option<String>)`](crate::output::UpdateServiceOutput::operation_id): <p>The unique ID of the asynchronous operation that this request started. You can use it combined with the <code>ListOperations</code> call to track the operation's progress.</p>
/// - On failure, responds with [`SdkError<UpdateServiceError>`](crate::error::UpdateServiceError)
pub fn update_service(&self) -> fluent_builders::UpdateService {
fluent_builders::UpdateService::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateVpcIngressConnection`](crate::client::fluent_builders::UpdateVpcIngressConnection) operation.
///
/// - The fluent builder is configurable:
/// - [`vpc_ingress_connection_arn(impl Into<String>)`](crate::client::fluent_builders::UpdateVpcIngressConnection::vpc_ingress_connection_arn) / [`set_vpc_ingress_connection_arn(Option<String>)`](crate::client::fluent_builders::UpdateVpcIngressConnection::set_vpc_ingress_connection_arn): <p>The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.</p>
/// - [`ingress_vpc_configuration(IngressVpcConfiguration)`](crate::client::fluent_builders::UpdateVpcIngressConnection::ingress_vpc_configuration) / [`set_ingress_vpc_configuration(Option<IngressVpcConfiguration>)`](crate::client::fluent_builders::UpdateVpcIngressConnection::set_ingress_vpc_configuration): <p>Specifications 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.</p>
/// - On success, responds with [`UpdateVpcIngressConnectionOutput`](crate::output::UpdateVpcIngressConnectionOutput) with field(s):
/// - [`vpc_ingress_connection(Option<VpcIngressConnection>)`](crate::output::UpdateVpcIngressConnectionOutput::vpc_ingress_connection): <p>A description of the App Runner VPC Ingress Connection resource that's updated by this request.</p>
/// - On failure, responds with [`SdkError<UpdateVpcIngressConnectionError>`](crate::error::UpdateVpcIngressConnectionError)
pub fn update_vpc_ingress_connection(&self) -> fluent_builders::UpdateVpcIngressConnection {
fluent_builders::UpdateVpcIngressConnection::new(self.handle.clone())
}
}
pub mod fluent_builders {
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
/// Fluent builder constructing a request to `AssociateCustomDomain`.
///
/// <p>Associate your own domain name with the App Runner subdomain URL of your App Runner service.</p>
/// <p>After you call <code>AssociateCustomDomain</code> and receive a successful response, use the information in the <code>CustomDomain</code> record that's returned to add CNAME records to your Domain Name System (DNS). For each mapped domain name, add a mapping to the target App Runner subdomain and one or more certificate validation records. App Runner then performs DNS validation to verify that you own or control the domain name that you associated. App Runner tracks domain validity in a certificate stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager (ACM)</a>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AssociateCustomDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::associate_custom_domain_input::Builder,
}
impl AssociateCustomDomain {
/// Creates a new `AssociateCustomDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateCustomDomain,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateCustomDomainError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AssociateCustomDomainOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateCustomDomainError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to associate a custom domain name with.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>A custom domain endpoint to associate. Specify a root domain (for example, <code>example.com</code>), a subdomain (for example, <code>login.example.com</code> or <code>admin.login.example.com</code>), or a wildcard (for example, <code>*.example.com</code>).</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>A custom domain endpoint to associate. Specify a root domain (for example, <code>example.com</code>), a subdomain (for example, <code>login.example.com</code> or <code>admin.login.example.com</code>), or a wildcard (for example, <code>*.example.com</code>).</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
/// <p>Set to <code>true</code> to associate the subdomain <code>www.<i>DomainName</i> </code> with the App Runner service in addition to the base domain.</p>
/// <p>Default: <code>true</code> </p>
pub fn enable_www_subdomain(mut self, input: bool) -> Self {
self.inner = self.inner.enable_www_subdomain(input);
self
}
/// <p>Set to <code>true</code> to associate the subdomain <code>www.<i>DomainName</i> </code> with the App Runner service in addition to the base domain.</p>
/// <p>Default: <code>true</code> </p>
pub fn set_enable_www_subdomain(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_enable_www_subdomain(input);
self
}
}
/// Fluent builder constructing a request to `CreateAutoScalingConfiguration`.
///
/// <p>Create an App Runner automatic scaling configuration resource. App Runner requires this resource when you create or update App Runner services and you require non-default auto scaling settings. You can share an auto scaling configuration across multiple services.</p>
/// <p>Create multiple revisions of a configuration by calling this action multiple times using the same <code>AutoScalingConfigurationName</code>. The call returns incremental <code>AutoScalingConfigurationRevision</code> values. When you create a service and configure an auto scaling configuration resource, the service uses the latest active revision of the auto scaling configuration by default. You can optionally configure the service to use a specific revision.</p>
/// <p>Configure a higher <code>MinSize</code> to increase the spread of your App Runner service over more Availability Zones in the Amazon Web Services Region. The tradeoff is a higher minimal cost.</p>
/// <p>Configure a lower <code>MaxSize</code> to control your cost. The tradeoff is lower responsiveness during peak demand.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateAutoScalingConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_auto_scaling_configuration_input::Builder,
}
impl CreateAutoScalingConfiguration {
/// Creates a new `CreateAutoScalingConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateAutoScalingConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateAutoScalingConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateAutoScalingConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::CreateAutoScalingConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>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 <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note>
/// <p>The name <code>DefaultConfiguration</code> is reserved (it's the configuration that App Runner uses if you don't provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a revision of it.</p>
/// <p>When you want to use your own auto scaling configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p>
/// </note>
pub fn auto_scaling_configuration_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_name(input.into());
self
}
/// <p>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 <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note>
/// <p>The name <code>DefaultConfiguration</code> is reserved (it's the configuration that App Runner uses if you don't provide a custome one). You can't use it to create a new auto scaling configuration, and you can't create a revision of it.</p>
/// <p>When you want to use your own auto scaling configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p>
/// </note>
pub fn set_auto_scaling_configuration_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_name(input);
self
}
/// <p>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.</p>
/// <p>Default: <code>100</code> </p>
pub fn max_concurrency(mut self, input: i32) -> Self {
self.inner = self.inner.max_concurrency(input);
self
}
/// <p>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.</p>
/// <p>Default: <code>100</code> </p>
pub fn set_max_concurrency(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_concurrency(input);
self
}
/// <p>The minimum number of instances that App Runner provisions for your service. The service always has at least <code>MinSize</code> 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.</p>
/// <p>App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.</p>
/// <p>Default: <code>1</code> </p>
pub fn min_size(mut self, input: i32) -> Self {
self.inner = self.inner.min_size(input);
self
}
/// <p>The minimum number of instances that App Runner provisions for your service. The service always has at least <code>MinSize</code> 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.</p>
/// <p>App Runner temporarily doubles the number of provisioned instances during deployments, to maintain the same capacity for both old and new code.</p>
/// <p>Default: <code>1</code> </p>
pub fn set_min_size(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_min_size(input);
self
}
/// <p>The maximum number of instances that your service scales up to. At most <code>MaxSize</code> instances actively serve traffic for your service.</p>
/// <p>Default: <code>25</code> </p>
pub fn max_size(mut self, input: i32) -> Self {
self.inner = self.inner.max_size(input);
self
}
/// <p>The maximum number of instances that your service scales up to. At most <code>MaxSize</code> instances actively serve traffic for your service.</p>
/// <p>Default: <code>25</code> </p>
pub fn set_max_size(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_size(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of metadata items that you can associate with your auto scaling configuration resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreateConnection`.
///
/// <p>Create an App Runner connection resource. App Runner requires a connection resource when you create App Runner services that access private repositories from certain third-party providers. You can share a connection across multiple services.</p>
/// <p>A connection resource is needed to access GitHub repositories. GitHub requires a user interface approval process through the App Runner console before you can use the connection.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_connection_input::Builder,
}
impl CreateConnection {
/// Creates a new `CreateConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>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.</p>
pub fn connection_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.connection_name(input.into());
self
}
/// <p>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.</p>
pub fn set_connection_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_connection_name(input);
self
}
/// <p>The source repository provider.</p>
pub fn provider_type(mut self, input: crate::model::ProviderType) -> Self {
self.inner = self.inner.provider_type(input);
self
}
/// <p>The source repository provider.</p>
pub fn set_provider_type(
mut self,
input: std::option::Option<crate::model::ProviderType>,
) -> Self {
self.inner = self.inner.set_provider_type(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of metadata items that you can associate with your connection resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreateObservabilityConfiguration`.
///
/// <p>Create an App Runner observability configuration resource. App Runner requires this resource when you create or update App Runner services and you want to enable non-default observability features. You can share an observability configuration across multiple services.</p>
/// <p>Create multiple revisions of a configuration by calling this action multiple times using the same <code>ObservabilityConfigurationName</code>. The call returns incremental <code>ObservabilityConfigurationRevision</code> values. When you create a service and configure an observability configuration resource, the service uses the latest active revision of the observability configuration by default. You can optionally configure the service to use a specific revision.</p>
/// <p>The observability configuration resource is designed to configure multiple features (currently one feature, tracing). This action takes optional parameters that describe the configuration of these features (currently one parameter, <code>TraceConfiguration</code>). If you don't specify a feature parameter, App Runner doesn't enable the feature.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateObservabilityConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_observability_configuration_input::Builder,
}
impl CreateObservabilityConfiguration {
/// Creates a new `CreateObservabilityConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateObservabilityConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateObservabilityConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateObservabilityConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::CreateObservabilityConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>A name for the observability configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note>
/// <p>The name <code>DefaultConfiguration</code> is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.</p>
/// <p>When you want to use your own observability configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p>
/// </note>
pub fn observability_configuration_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.observability_configuration_name(input.into());
self
}
/// <p>A name for the observability configuration. When you use it for the first time in an Amazon Web Services Region, App Runner creates revision number <code>1</code> of this name. When you use the same name in subsequent calls, App Runner creates incremental revisions of the configuration.</p> <note>
/// <p>The name <code>DefaultConfiguration</code> is reserved. You can't use it to create a new observability configuration, and you can't create a revision of it.</p>
/// <p>When you want to use your own observability configuration for your App Runner service, <i>create a configuration with a different name</i>, and then provide it when you create or update your service.</p>
/// </note>
pub fn set_observability_configuration_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_observability_configuration_name(input);
self
}
/// <p>The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.</p>
pub fn trace_configuration(mut self, input: crate::model::TraceConfiguration) -> Self {
self.inner = self.inner.trace_configuration(input);
self
}
/// <p>The configuration of the tracing feature within this observability configuration. If you don't specify it, App Runner doesn't enable tracing.</p>
pub fn set_trace_configuration(
mut self,
input: std::option::Option<crate::model::TraceConfiguration>,
) -> Self {
self.inner = self.inner.set_trace_configuration(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of metadata items that you can associate with your observability configuration resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreateService`.
///
/// <p>Create an App Runner service. After the service is created, the action also automatically starts a deployment.</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <a href="https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html">ListOperations</a> call to track the operation's progress.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_service_input::Builder,
}
impl CreateService {
/// Creates a new `CreateService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateServiceOutput,
aws_smithy_http::result::SdkError<crate::error::CreateServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>A 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.</p>
pub fn service_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_name(input.into());
self
}
/// <p>A 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.</p>
pub fn set_service_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_name(input);
self
}
/// <p>The source to deploy to the App Runner service. It can be a code or an image repository.</p>
pub fn source_configuration(mut self, input: crate::model::SourceConfiguration) -> Self {
self.inner = self.inner.source_configuration(input);
self
}
/// <p>The source to deploy to the App Runner service. It can be a code or an image repository.</p>
pub fn set_source_configuration(
mut self,
input: std::option::Option<crate::model::SourceConfiguration>,
) -> Self {
self.inner = self.inner.set_source_configuration(input);
self
}
/// <p>The runtime configuration of instances (scaling units) of your service.</p>
pub fn instance_configuration(
mut self,
input: crate::model::InstanceConfiguration,
) -> Self {
self.inner = self.inner.instance_configuration(input);
self
}
/// <p>The runtime configuration of instances (scaling units) of your service.</p>
pub fn set_instance_configuration(
mut self,
input: std::option::Option<crate::model::InstanceConfiguration>,
) -> Self {
self.inner = self.inner.set_instance_configuration(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>An optional list of metadata items that you can associate with the App Runner service resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>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 key.</p>
pub fn encryption_configuration(
mut self,
input: crate::model::EncryptionConfiguration,
) -> Self {
self.inner = self.inner.encryption_configuration(input);
self
}
/// <p>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 key.</p>
pub fn set_encryption_configuration(
mut self,
input: std::option::Option<crate::model::EncryptionConfiguration>,
) -> Self {
self.inner = self.inner.set_encryption_configuration(input);
self
}
/// <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
pub fn health_check_configuration(
mut self,
input: crate::model::HealthCheckConfiguration,
) -> Self {
self.inner = self.inner.health_check_configuration(input);
self
}
/// <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
pub fn set_health_check_configuration(
mut self,
input: std::option::Option<crate::model::HealthCheckConfiguration>,
) -> Self {
self.inner = self.inner.set_health_check_configuration(input);
self
}
/// <p>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.</p>
/// <p>Specify an ARN with a name and a revision number to associate that revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3</code> </p>
/// <p>Specify just the name to associate the latest revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability</code> </p>
pub fn auto_scaling_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_arn(input.into());
self
}
/// <p>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.</p>
/// <p>Specify an ARN with a name and a revision number to associate that revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability/3</code> </p>
/// <p>Specify just the name to associate the latest revision. For example: <code>arn:aws:apprunner:us-east-1:123456789012:autoscalingconfiguration/high-availability</code> </p>
pub fn set_auto_scaling_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_arn(input);
self
}
/// <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
pub fn network_configuration(mut self, input: crate::model::NetworkConfiguration) -> Self {
self.inner = self.inner.network_configuration(input);
self
}
/// <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
pub fn set_network_configuration(
mut self,
input: std::option::Option<crate::model::NetworkConfiguration>,
) -> Self {
self.inner = self.inner.set_network_configuration(input);
self
}
/// <p>The observability configuration of your service.</p>
pub fn observability_configuration(
mut self,
input: crate::model::ServiceObservabilityConfiguration,
) -> Self {
self.inner = self.inner.observability_configuration(input);
self
}
/// <p>The observability configuration of your service.</p>
pub fn set_observability_configuration(
mut self,
input: std::option::Option<crate::model::ServiceObservabilityConfiguration>,
) -> Self {
self.inner = self.inner.set_observability_configuration(input);
self
}
}
/// Fluent builder constructing a request to `CreateVpcConnector`.
///
/// <p>Create an App Runner VPC connector resource. App Runner requires this resource when you want to associate your App Runner service to a custom Amazon Virtual Private Cloud (Amazon VPC).</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateVpcConnector {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_vpc_connector_input::Builder,
}
impl CreateVpcConnector {
/// Creates a new `CreateVpcConnector`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateVpcConnector,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateVpcConnectorError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateVpcConnectorOutput,
aws_smithy_http::result::SdkError<crate::error::CreateVpcConnectorError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>A name for the VPC connector.</p>
pub fn vpc_connector_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_connector_name(input.into());
self
}
/// <p>A name for the VPC connector.</p>
pub fn set_vpc_connector_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_connector_name(input);
self
}
/// Appends an item to `Subnets`.
///
/// To override the contents of this collection use [`set_subnets`](Self::set_subnets).
///
/// <p>A 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.</p> <note>
/// <p> App Runner currently only provides support for IPv4. </p>
/// </note>
pub fn subnets(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.subnets(input.into());
self
}
/// <p>A 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.</p> <note>
/// <p> App Runner currently only provides support for IPv4. </p>
/// </note>
pub fn set_subnets(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_subnets(input);
self
}
/// Appends an item to `SecurityGroups`.
///
/// To override the contents of this collection use [`set_security_groups`](Self::set_security_groups).
///
/// <p>A 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.</p>
pub fn security_groups(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.security_groups(input.into());
self
}
/// <p>A 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.</p>
pub fn set_security_groups(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_security_groups(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of metadata items that you can associate with your VPC connector resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `CreateVpcIngressConnection`.
///
/// <p>Create an App Runner VPC Ingress Connection resource. App Runner requires this resource when you want to associate your App Runner service with an Amazon VPC endpoint.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CreateVpcIngressConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::create_vpc_ingress_connection_input::Builder,
}
impl CreateVpcIngressConnection {
/// Creates a new `CreateVpcIngressConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateVpcIngressConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateVpcIngressConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateVpcIngressConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateVpcIngressConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) for this App Runner service that is used to create the VPC Ingress Connection resource.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>A 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. </p>
pub fn vpc_ingress_connection_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.vpc_ingress_connection_name(input.into());
self
}
/// <p>A 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. </p>
pub fn set_vpc_ingress_connection_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_ingress_connection_name(input);
self
}
/// <p>Specifications 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.</p>
pub fn ingress_vpc_configuration(
mut self,
input: crate::model::IngressVpcConfiguration,
) -> Self {
self.inner = self.inner.ingress_vpc_configuration(input);
self
}
/// <p>Specifications 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.</p>
pub fn set_ingress_vpc_configuration(
mut self,
input: std::option::Option<crate::model::IngressVpcConfiguration>,
) -> Self {
self.inner = self.inner.set_ingress_vpc_configuration(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>An optional list of metadata items that you can associate with the VPC Ingress Connection resource. A tag is a key-value pair.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `DeleteAutoScalingConfiguration`.
///
/// <p>Delete an App Runner automatic scaling configuration resource. You can delete a specific revision or the latest active revision. You can't delete a configuration that's used by one or more App Runner services.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteAutoScalingConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_auto_scaling_configuration_input::Builder,
}
impl DeleteAutoScalingConfiguration {
/// Creates a new `DeleteAutoScalingConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteAutoScalingConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteAutoScalingConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteAutoScalingConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteAutoScalingConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.</p>
/// <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
pub fn auto_scaling_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want to delete.</p>
/// <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
pub fn set_auto_scaling_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_arn(input);
self
}
}
/// Fluent builder constructing a request to `DeleteConnection`.
///
/// <p>Delete an App Runner connection. You must first ensure that there are no running App Runner services that use this connection. If there are any, the <code>DeleteConnection</code> action fails.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_connection_input::Builder,
}
impl DeleteConnection {
/// Creates a new `DeleteConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.</p>
pub fn connection_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.connection_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner connection that you want to delete.</p>
pub fn set_connection_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_connection_arn(input);
self
}
}
/// Fluent builder constructing a request to `DeleteObservabilityConfiguration`.
///
/// <p>Delete an App Runner observability configuration resource. You can delete a specific revision or the latest active revision. You can't delete a configuration that's used by one or more App Runner services.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteObservabilityConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_observability_configuration_input::Builder,
}
impl DeleteObservabilityConfiguration {
/// Creates a new `DeleteObservabilityConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteObservabilityConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteObservabilityConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteObservabilityConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteObservabilityConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want to delete.</p>
/// <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
pub fn observability_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.observability_configuration_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want to delete.</p>
/// <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is deleted.</p>
pub fn set_observability_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_observability_configuration_arn(input);
self
}
}
/// Fluent builder constructing a request to `DeleteService`.
///
/// <p>Delete an App Runner service.</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <code>ListOperations</code> call to track the operation's progress.</p> <note>
/// <p>Make sure that you don't have any active VPCIngressConnections associated with the service you want to delete. </p>
/// </note>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_service_input::Builder,
}
impl DeleteService {
/// Creates a new `DeleteService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteServiceOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to delete.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to delete.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
}
/// Fluent builder constructing a request to `DeleteVpcConnector`.
///
/// <p>Delete an App Runner VPC connector resource. You can't delete a connector that's used by one or more App Runner services.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteVpcConnector {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_vpc_connector_input::Builder,
}
impl DeleteVpcConnector {
/// Creates a new `DeleteVpcConnector`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteVpcConnector,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteVpcConnectorError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteVpcConnectorOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteVpcConnectorError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to delete.</p>
/// <p>The ARN must be a full VPC connector ARN.</p>
pub fn vpc_connector_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_connector_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want to delete.</p>
/// <p>The ARN must be a full VPC connector ARN.</p>
pub fn set_vpc_connector_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_connector_arn(input);
self
}
}
/// Fluent builder constructing a request to `DeleteVpcIngressConnection`.
///
/// <p>Delete an App Runner VPC Ingress Connection resource that's associated with an App Runner service. The VPC Ingress Connection must be in one of the following states to be deleted: </p>
/// <ul>
/// <li> <p> <code>AVAILABLE</code> </p> </li>
/// <li> <p> <code>FAILED_CREATION</code> </p> </li>
/// <li> <p> <code>FAILED_UPDATE</code> </p> </li>
/// <li> <p> <code>FAILED_DELETION</code> </p> </li>
/// </ul>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteVpcIngressConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_vpc_ingress_connection_input::Builder,
}
impl DeleteVpcIngressConnection {
/// Creates a new `DeleteVpcIngressConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteVpcIngressConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteVpcIngressConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteVpcIngressConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteVpcIngressConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want to delete.</p>
pub fn vpc_ingress_connection_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_ingress_connection_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want to delete.</p>
pub fn set_vpc_ingress_connection_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_ingress_connection_arn(input);
self
}
}
/// Fluent builder constructing a request to `DescribeAutoScalingConfiguration`.
///
/// <p>Return a full description of an App Runner automatic scaling configuration resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeAutoScalingConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_auto_scaling_configuration_input::Builder,
}
impl DescribeAutoScalingConfiguration {
/// Creates a new `DescribeAutoScalingConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeAutoScalingConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeAutoScalingConfigurationError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeAutoScalingConfigurationOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeAutoScalingConfigurationError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want a description for.</p>
/// <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
pub fn auto_scaling_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner auto scaling configuration that you want a description for.</p>
/// <p>The ARN can be a full auto scaling configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
pub fn set_auto_scaling_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_arn(input);
self
}
}
/// Fluent builder constructing a request to `DescribeCustomDomains`.
///
/// <p>Return a description of custom domain names that are associated with an App Runner service.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeCustomDomains {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_custom_domains_input::Builder,
}
impl DescribeCustomDomains {
/// Creates a new `DescribeCustomDomains`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeCustomDomains,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeCustomDomainsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeCustomDomainsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeCustomDomainsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::DescribeCustomDomainsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::DescribeCustomDomainsPaginator {
crate::paginator::DescribeCustomDomainsPaginator::new(self.handle, self.inner)
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want associated custom domain names to be described for.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results that each response (result page) can include. It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results that each response (result page) can include. It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `DescribeObservabilityConfiguration`.
///
/// <p>Return a full description of an App Runner observability configuration resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeObservabilityConfiguration {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_observability_configuration_input::Builder,
}
impl DescribeObservabilityConfiguration {
/// Creates a new `DescribeObservabilityConfiguration`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeObservabilityConfiguration,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DescribeObservabilityConfigurationError,
>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeObservabilityConfigurationOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeObservabilityConfigurationError,
>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.</p>
/// <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
pub fn observability_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.observability_configuration_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner observability configuration that you want a description for.</p>
/// <p>The ARN can be a full observability configuration ARN, or a partial ARN ending with either <code>.../<i>name</i> </code> or <code>.../<i>name</i>/<i>revision</i> </code>. If a revision isn't specified, the latest active revision is described.</p>
pub fn set_observability_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_observability_configuration_arn(input);
self
}
}
/// Fluent builder constructing a request to `DescribeService`.
///
/// <p>Return a full description of an App Runner service.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_service_input::Builder,
}
impl DescribeService {
/// Creates a new `DescribeService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeServiceOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want a description for.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want a description for.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
}
/// Fluent builder constructing a request to `DescribeVpcConnector`.
///
/// <p>Return a description of an App Runner VPC connector resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeVpcConnector {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_vpc_connector_input::Builder,
}
impl DescribeVpcConnector {
/// Creates a new `DescribeVpcConnector`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeVpcConnector,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeVpcConnectorError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeVpcConnectorOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeVpcConnectorError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.</p>
/// <p>The ARN must be a full VPC connector ARN.</p>
pub fn vpc_connector_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_connector_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC connector that you want a description for.</p>
/// <p>The ARN must be a full VPC connector ARN.</p>
pub fn set_vpc_connector_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_connector_arn(input);
self
}
}
/// Fluent builder constructing a request to `DescribeVpcIngressConnection`.
///
/// <p>Return a full description of an App Runner VPC Ingress Connection resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DescribeVpcIngressConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::describe_vpc_ingress_connection_input::Builder,
}
impl DescribeVpcIngressConnection {
/// Creates a new `DescribeVpcIngressConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeVpcIngressConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeVpcIngressConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DescribeVpcIngressConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeVpcIngressConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want a description for.</p>
pub fn vpc_ingress_connection_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_ingress_connection_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner VPC Ingress Connection that you want a description for.</p>
pub fn set_vpc_ingress_connection_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_ingress_connection_arn(input);
self
}
}
/// Fluent builder constructing a request to `DisassociateCustomDomain`.
///
/// <p>Disassociate a custom domain name from an App Runner service.</p>
/// <p>Certificates tracking domain validity are associated with a custom domain and are stored in <a href="https://docs.aws.amazon.com/acm/latest/userguide">AWS Certificate Manager (ACM)</a>. These certificates aren't deleted as part of this action. App Runner delays certificate deletion for 30 days after a domain is disassociated from your service.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisassociateCustomDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disassociate_custom_domain_input::Builder,
}
impl DisassociateCustomDomain {
/// Creates a new `DisassociateCustomDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DisassociateCustomDomain,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DisassociateCustomDomainError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisassociateCustomDomainOutput,
aws_smithy_http::result::SdkError<crate::error::DisassociateCustomDomainError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to disassociate a custom domain name from.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>The domain name that you want to disassociate from the App Runner service.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The domain name that you want to disassociate from the App Runner service.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `ListAutoScalingConfigurations`.
///
/// <p>Returns a list of active App Runner automatic scaling configurations in your Amazon Web Services account. You can query the revisions for a specific configuration name or the revisions for all active configurations in your account. You can optionally query only the latest revision of each requested name.</p>
/// <p>To retrieve a full description of a particular configuration revision, call and provide one of the ARNs returned by <code>ListAutoScalingConfigurations</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListAutoScalingConfigurations {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_auto_scaling_configurations_input::Builder,
}
impl ListAutoScalingConfigurations {
/// Creates a new `ListAutoScalingConfigurations`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListAutoScalingConfigurations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListAutoScalingConfigurationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListAutoScalingConfigurationsOutput,
aws_smithy_http::result::SdkError<crate::error::ListAutoScalingConfigurationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListAutoScalingConfigurationsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListAutoScalingConfigurationsPaginator {
crate::paginator::ListAutoScalingConfigurationsPaginator::new(self.handle, self.inner)
}
/// <p>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 active configurations.</p>
pub fn auto_scaling_configuration_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_name(input.into());
self
}
/// <p>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 active configurations.</p>
pub fn set_auto_scaling_configuration_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_name(input);
self
}
/// <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p>
/// <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p>
/// <p>Default: <code>true</code> </p>
pub fn latest_only(mut self, input: bool) -> Self {
self.inner = self.inner.latest_only(input);
self
}
/// <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p>
/// <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p>
/// <p>Default: <code>true</code> </p>
pub fn set_latest_only(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_latest_only(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListConnections`.
///
/// <p>Returns a list of App Runner connections that are associated with your Amazon Web Services account.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListConnections {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_connections_input::Builder,
}
impl ListConnections {
/// Creates a new `ListConnections`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListConnections,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListConnectionsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListConnectionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListConnectionsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListConnectionsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListConnectionsPaginator {
crate::paginator::ListConnectionsPaginator::new(self.handle, self.inner)
}
/// <p>If specified, only this connection is returned. If not specified, the result isn't filtered by name.</p>
pub fn connection_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.connection_name(input.into());
self
}
/// <p>If specified, only this connection is returned. If not specified, the result isn't filtered by name.</p>
pub fn set_connection_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_connection_name(input);
self
}
/// <p>The maximum number of results to include in each response (result page). Used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). Used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListObservabilityConfigurations`.
///
/// <p>Returns a list of active App Runner observability configurations in your Amazon Web Services account. You can query the revisions for a specific configuration name or the revisions for all active configurations in your account. You can optionally query only the latest revision of each requested name.</p>
/// <p>To retrieve a full description of a particular configuration revision, call and provide one of the ARNs returned by <code>ListObservabilityConfigurations</code>.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListObservabilityConfigurations {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_observability_configurations_input::Builder,
}
impl ListObservabilityConfigurations {
/// Creates a new `ListObservabilityConfigurations`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListObservabilityConfigurations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListObservabilityConfigurationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListObservabilityConfigurationsOutput,
aws_smithy_http::result::SdkError<crate::error::ListObservabilityConfigurationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListObservabilityConfigurationsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListObservabilityConfigurationsPaginator {
crate::paginator::ListObservabilityConfigurationsPaginator::new(self.handle, self.inner)
}
/// <p>The 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.</p>
pub fn observability_configuration_name(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.observability_configuration_name(input.into());
self
}
/// <p>The 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.</p>
pub fn set_observability_configuration_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_observability_configuration_name(input);
self
}
/// <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p>
/// <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p>
/// <p>Default: <code>true</code> </p>
pub fn latest_only(mut self, input: bool) -> Self {
self.inner = self.inner.latest_only(input);
self
}
/// <p>Set to <code>true</code> to list only the latest revision for each requested configuration name.</p>
/// <p>Set to <code>false</code> to list all revisions for each requested configuration name.</p>
/// <p>Default: <code>true</code> </p>
pub fn set_latest_only(mut self, input: std::option::Option<bool>) -> Self {
self.inner = self.inner.set_latest_only(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListOperations`.
///
/// <p>Return a list of operations that occurred on an App Runner service.</p>
/// <p>The resulting list of <code>OperationSummary</code> objects is sorted in reverse chronological order. The first object on the list represents the last started operation.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListOperations {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_operations_input::Builder,
}
impl ListOperations {
/// Creates a new `ListOperations`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListOperations,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListOperationsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListOperationsOutput,
aws_smithy_http::result::SdkError<crate::error::ListOperationsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListOperationsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListOperationsPaginator {
crate::paginator::ListOperationsPaginator::new(self.handle, self.inner)
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want a list of operations for.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListServices`.
///
/// <p>Returns a list of running App Runner services in your Amazon Web Services account.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListServices {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_services_input::Builder,
}
impl ListServices {
/// Creates a new `ListServices`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListServices,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListServicesError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListServicesOutput,
aws_smithy_http::result::SdkError<crate::error::ListServicesError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListServicesPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListServicesPaginator {
crate::paginator::ListServicesPaginator::new(self.handle, self.inner)
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
}
/// Fluent builder constructing a request to `ListTagsForResource`.
///
/// <p>List tags that are associated with for an App Runner resource. The response contains a list of tag key-value pairs.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListTagsForResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_tags_for_resource_input::Builder,
}
impl ListTagsForResource {
/// Creates a new `ListTagsForResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListTagsForResource,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListTagsForResourceOutput,
aws_smithy_http::result::SdkError<crate::error::ListTagsForResourceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the resource that a tag list is requested for.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the resource that a tag list is requested for.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
}
/// Fluent builder constructing a request to `ListVpcConnectors`.
///
/// <p>Returns a list of App Runner VPC connectors in your Amazon Web Services account.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListVpcConnectors {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_vpc_connectors_input::Builder,
}
impl ListVpcConnectors {
/// Creates a new `ListVpcConnectors`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListVpcConnectors,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListVpcConnectorsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListVpcConnectorsOutput,
aws_smithy_http::result::SdkError<crate::error::ListVpcConnectorsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListVpcConnectorsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListVpcConnectorsPaginator {
crate::paginator::ListVpcConnectorsPaginator::new(self.handle, self.inner)
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `ListVpcIngressConnections`.
///
/// <p>Return a list of App Runner VPC Ingress Connections in your Amazon Web Services account.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ListVpcIngressConnections {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::list_vpc_ingress_connections_input::Builder,
}
impl ListVpcIngressConnections {
/// Creates a new `ListVpcIngressConnections`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListVpcIngressConnections,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListVpcIngressConnectionsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListVpcIngressConnectionsOutput,
aws_smithy_http::result::SdkError<crate::error::ListVpcIngressConnectionsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// Create a paginator for this request
///
/// Paginators are used by calling [`send().await`](crate::paginator::ListVpcIngressConnectionsPaginator::send) which returns a [`Stream`](tokio_stream::Stream).
pub fn into_paginator(self) -> crate::paginator::ListVpcIngressConnectionsPaginator {
crate::paginator::ListVpcIngressConnectionsPaginator::new(self.handle, self.inner)
}
/// <p>The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.</p>
pub fn filter(mut self, input: crate::model::ListVpcIngressConnectionsFilter) -> Self {
self.inner = self.inner.filter(input);
self
}
/// <p>The VPC Ingress Connections to be listed based on either the Service Arn or Vpc Endpoint Id, or both.</p>
pub fn set_filter(
mut self,
input: std::option::Option<crate::model::ListVpcIngressConnectionsFilter>,
) -> Self {
self.inner = self.inner.set_filter(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn max_results(mut self, input: i32) -> Self {
self.inner = self.inner.max_results(input);
self
}
/// <p>The maximum number of results to include in each response (result page). It's used for a paginated request.</p>
/// <p>If you don't specify <code>MaxResults</code>, the request retrieves all available results in a single response.</p>
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.inner = self.inner.set_max_results(input);
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.next_token(input.into());
self
}
/// <p>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.</p>
/// <p>If you don't specify <code>NextToken</code>, the request retrieves the first result page.</p>
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_next_token(input);
self
}
}
/// Fluent builder constructing a request to `PauseService`.
///
/// <p>Pause an active App Runner service. App Runner reduces compute capacity for the service to zero and loses state (for example, ephemeral storage is removed).</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <code>ListOperations</code> call to track the operation's progress.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct PauseService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::pause_service_input::Builder,
}
impl PauseService {
/// Creates a new `PauseService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PauseService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PauseServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PauseServiceOutput,
aws_smithy_http::result::SdkError<crate::error::PauseServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to pause.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to pause.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
}
/// Fluent builder constructing a request to `ResumeService`.
///
/// <p>Resume an active App Runner service. App Runner provisions compute capacity for the service.</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <code>ListOperations</code> call to track the operation's progress.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct ResumeService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::resume_service_input::Builder,
}
impl ResumeService {
/// Creates a new `ResumeService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResumeService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResumeServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ResumeServiceOutput,
aws_smithy_http::result::SdkError<crate::error::ResumeServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to resume.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to resume.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
}
/// Fluent builder constructing a request to `StartDeployment`.
///
/// <p>Initiate a manual deployment of the latest commit in a source code repository or the latest image in a source image repository to an App Runner service.</p>
/// <p>For a source code repository, App Runner retrieves the commit and builds a Docker image. For a source image repository, App Runner retrieves the latest Docker image. In both cases, App Runner then deploys the new image to your service and starts a new container instance.</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <code>ListOperations</code> call to track the operation's progress.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct StartDeployment {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::start_deployment_input::Builder,
}
impl StartDeployment {
/// Creates a new `StartDeployment`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartDeployment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartDeploymentError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::StartDeploymentOutput,
aws_smithy_http::result::SdkError<crate::error::StartDeploymentError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to manually deploy to.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to manually deploy to.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
}
/// Fluent builder constructing a request to `TagResource`.
///
/// <p>Add tags to, or update the tag values of, an App Runner resource. A tag is a key-value pair.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct TagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::tag_resource_input::Builder,
}
impl TagResource {
/// Creates a new `TagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::TagResource,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::TagResourceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::TagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::TagResourceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the resource that you want to update tags for.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the resource that you want to update tags for.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>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.</p>
pub fn tags(mut self, input: crate::model::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>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.</p>
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.inner = self.inner.set_tags(input);
self
}
}
/// Fluent builder constructing a request to `UntagResource`.
///
/// <p>Remove tags from an App Runner resource.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UntagResource {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::untag_resource_input::Builder,
}
impl UntagResource {
/// Creates a new `UntagResource`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UntagResource,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UntagResourceOutput,
aws_smithy_http::result::SdkError<crate::error::UntagResourceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn resource_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.resource_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p>
/// <p>It must be the ARN of an App Runner resource.</p>
pub fn set_resource_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_resource_arn(input);
self
}
/// Appends an item to `TagKeys`.
///
/// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
///
/// <p>A list of tag keys that you want to remove.</p>
pub fn tag_keys(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tag_keys(input.into());
self
}
/// <p>A list of tag keys that you want to remove.</p>
pub fn set_tag_keys(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tag_keys(input);
self
}
}
/// Fluent builder constructing a request to `UpdateService`.
///
/// <p>Update an App Runner service. You can update the source configuration and instance configuration of the service. You can also update the ARN of the auto scaling configuration resource that's associated with the service. However, you can't change the name or the encryption configuration of the service. These can be set only when you create the service.</p>
/// <p>To update the tags applied to your service, use the separate actions <code>TagResource</code> and <code>UntagResource</code>.</p>
/// <p>This is an asynchronous operation. On a successful call, you can use the returned <code>OperationId</code> and the <code>ListOperations</code> call to track the operation's progress.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateService {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_service_input::Builder,
}
impl UpdateService {
/// Creates a new `UpdateService`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateService,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateServiceOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to update.</p>
pub fn service_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.service_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the App Runner service that you want to update.</p>
pub fn set_service_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_service_arn(input);
self
}
/// <p>The source configuration to apply to the App Runner service.</p>
/// <p>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 <code>SourceConfiguration</code> that you originally included when you created the service. Specifically, you can include either <code>CodeRepository</code> or <code>ImageRepository</code>. To update the source configuration, set the values to members of the structure that you include.</p>
pub fn source_configuration(mut self, input: crate::model::SourceConfiguration) -> Self {
self.inner = self.inner.source_configuration(input);
self
}
/// <p>The source configuration to apply to the App Runner service.</p>
/// <p>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 <code>SourceConfiguration</code> that you originally included when you created the service. Specifically, you can include either <code>CodeRepository</code> or <code>ImageRepository</code>. To update the source configuration, set the values to members of the structure that you include.</p>
pub fn set_source_configuration(
mut self,
input: std::option::Option<crate::model::SourceConfiguration>,
) -> Self {
self.inner = self.inner.set_source_configuration(input);
self
}
/// <p>The runtime configuration to apply to instances (scaling units) of your service.</p>
pub fn instance_configuration(
mut self,
input: crate::model::InstanceConfiguration,
) -> Self {
self.inner = self.inner.instance_configuration(input);
self
}
/// <p>The runtime configuration to apply to instances (scaling units) of your service.</p>
pub fn set_instance_configuration(
mut self,
input: std::option::Option<crate::model::InstanceConfiguration>,
) -> Self {
self.inner = self.inner.set_instance_configuration(input);
self
}
/// <p>The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.</p>
pub fn auto_scaling_configuration_arn(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.inner = self.inner.auto_scaling_configuration_arn(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with the App Runner service.</p>
pub fn set_auto_scaling_configuration_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_auto_scaling_configuration_arn(input);
self
}
/// <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
pub fn health_check_configuration(
mut self,
input: crate::model::HealthCheckConfiguration,
) -> Self {
self.inner = self.inner.health_check_configuration(input);
self
}
/// <p>The settings for the health check that App Runner performs to monitor the health of the App Runner service.</p>
pub fn set_health_check_configuration(
mut self,
input: std::option::Option<crate::model::HealthCheckConfiguration>,
) -> Self {
self.inner = self.inner.set_health_check_configuration(input);
self
}
/// <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
pub fn network_configuration(mut self, input: crate::model::NetworkConfiguration) -> Self {
self.inner = self.inner.network_configuration(input);
self
}
/// <p>Configuration settings related to network traffic of the web application that the App Runner service runs.</p>
pub fn set_network_configuration(
mut self,
input: std::option::Option<crate::model::NetworkConfiguration>,
) -> Self {
self.inner = self.inner.set_network_configuration(input);
self
}
/// <p>The observability configuration of your service.</p>
pub fn observability_configuration(
mut self,
input: crate::model::ServiceObservabilityConfiguration,
) -> Self {
self.inner = self.inner.observability_configuration(input);
self
}
/// <p>The observability configuration of your service.</p>
pub fn set_observability_configuration(
mut self,
input: std::option::Option<crate::model::ServiceObservabilityConfiguration>,
) -> Self {
self.inner = self.inner.set_observability_configuration(input);
self
}
}
/// Fluent builder constructing a request to `UpdateVpcIngressConnection`.
///
/// <p>Update an existing App Runner VPC Ingress Connection resource. The VPC Ingress Connection must be in one of the following states to be updated:</p>
/// <ul>
/// <li> <p> AVAILABLE </p> </li>
/// <li> <p> FAILED_CREATION </p> </li>
/// <li> <p> FAILED_UPDATE </p> </li>
/// </ul>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct UpdateVpcIngressConnection {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::update_vpc_ingress_connection_input::Builder,
}
impl UpdateVpcIngressConnection {
/// Creates a new `UpdateVpcIngressConnection`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// 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.
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateVpcIngressConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateVpcIngressConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateVpcIngressConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateVpcIngressConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
/// <p>The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.</p>
pub fn vpc_ingress_connection_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.vpc_ingress_connection_arn(input.into());
self
}
/// <p>The Amazon Resource Name (Arn) for the App Runner VPC Ingress Connection resource that you want to update.</p>
pub fn set_vpc_ingress_connection_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_vpc_ingress_connection_arn(input);
self
}
/// <p>Specifications 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.</p>
pub fn ingress_vpc_configuration(
mut self,
input: crate::model::IngressVpcConfiguration,
) -> Self {
self.inner = self.inner.ingress_vpc_configuration(input);
self
}
/// <p>Specifications 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.</p>
pub fn set_ingress_vpc_configuration(
mut self,
input: std::option::Option<crate::model::IngressVpcConfiguration>,
) -> Self {
self.inner = self.inner.set_ingress_vpc_configuration(input);
self
}
}
}
impl Client {
/// Creates a new client from an [SDK Config](aws_types::sdk_config::SdkConfig).
///
/// # Panics
///
/// - This method will panic if the `sdk_config` is missing an async sleep implementation. If you experience this panic, set
/// the `sleep_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 the
/// `http_connector` on the Config passed into this function to fix it.
pub fn new(sdk_config: &aws_types::sdk_config::SdkConfig) -> Self {
Self::from_conf(sdk_config.into())
}
/// Creates a new client from the service [`Config`](crate::Config).
///
/// # Panics
///
/// - This method will panic if the `conf` is missing an async sleep implementation. If you experience this panic, set
/// the `sleep_impl` on the Config passed into this function to fix it.
/// - This method will panic if the `conf` is missing an HTTP connector. If you experience this panic, set the
/// `http_connector` on the Config passed into this function to fix it.
pub fn from_conf(conf: crate::Config) -> Self {
let retry_config = conf
.retry_config()
.cloned()
.unwrap_or_else(aws_smithy_types::retry::RetryConfig::disabled);
let timeout_config = conf
.timeout_config()
.cloned()
.unwrap_or_else(aws_smithy_types::timeout::TimeoutConfig::disabled);
let sleep_impl = conf.sleep_impl();
if (retry_config.has_retry() || timeout_config.has_timeouts()) && sleep_impl.is_none() {
panic!("An async sleep implementation is required for retries or timeouts to work. \
Set the `sleep_impl` on the Config passed into this function to fix this panic.");
}
let connector = conf.http_connector().and_then(|c| {
let timeout_config = conf
.timeout_config()
.cloned()
.unwrap_or_else(aws_smithy_types::timeout::TimeoutConfig::disabled);
let connector_settings =
aws_smithy_client::http_connector::ConnectorSettings::from_timeout_config(
&timeout_config,
);
c.connector(&connector_settings, conf.sleep_impl())
});
let builder = aws_smithy_client::Builder::new();
let builder = match connector {
// Use provided connector
Some(c) => builder.connector(c),
None => {
#[cfg(any(feature = "rustls", feature = "native-tls"))]
{
// Use default connector based on enabled features
builder.dyn_https_connector(
aws_smithy_client::http_connector::ConnectorSettings::from_timeout_config(
&timeout_config,
),
)
}
#[cfg(not(any(feature = "rustls", feature = "native-tls")))]
{
panic!("No HTTP connector was available. Enable the `rustls` or `native-tls` crate feature or set a connector to fix this.");
}
}
};
let mut builder = builder
.middleware(aws_smithy_client::erase::DynMiddleware::new(
crate::middleware::DefaultMiddleware::new(),
))
.retry_config(retry_config.into())
.operation_timeout_config(timeout_config.into());
builder.set_sleep_impl(sleep_impl);
let client = builder.build();
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
}