Skip to content

AppRunnerClient#

Index > AppRunner > AppRunnerClient

Auto-generated documentation for AppRunner type annotations stubs module mypy-boto3-apprunner.

AppRunnerClient#

Type annotations and code completion for boto3.client("apprunner"). boto3 documentation

# AppRunnerClient usage example

from boto3.session import Session
from mypy_boto3_apprunner.client import AppRunnerClient

def get_apprunner_client() -> AppRunnerClient:
    return Session().client("apprunner")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("apprunner").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("apprunner")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.InternalServiceErrorException,
    client.exceptions.InvalidRequestException,
    client.exceptions.InvalidStateException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceQuotaExceededException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_apprunner.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

associate_custom_domain#

Associate your own domain name with the App Runner subdomain URL of your App Runner service.

Type annotations and code completion for boto3.client("apprunner").associate_custom_domain method. boto3 documentation

# associate_custom_domain method definition

def associate_custom_domain(
    self,
    *,
    ServiceArn: str,
    DomainName: str,
    EnableWWWSubdomain: bool = ...,
) -> AssociateCustomDomainResponseTypeDef:  # (1)
    ...
  1. See AssociateCustomDomainResponseTypeDef
# associate_custom_domain method usage example with argument unpacking

kwargs: AssociateCustomDomainRequestRequestTypeDef = {  # (1)
    "ServiceArn": ...,
    "DomainName": ...,
}

parent.associate_custom_domain(**kwargs)
  1. See AssociateCustomDomainRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("apprunner").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("apprunner").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_auto_scaling_configuration#

Create an App Runner automatic scaling configuration resource.

Type annotations and code completion for boto3.client("apprunner").create_auto_scaling_configuration method. boto3 documentation

# create_auto_scaling_configuration method definition

def create_auto_scaling_configuration(
    self,
    *,
    AutoScalingConfigurationName: str,
    MaxConcurrency: int = ...,
    MinSize: int = ...,
    MaxSize: int = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateAutoScalingConfigurationResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateAutoScalingConfigurationResponseTypeDef
# create_auto_scaling_configuration method usage example with argument unpacking

kwargs: CreateAutoScalingConfigurationRequestRequestTypeDef = {  # (1)
    "AutoScalingConfigurationName": ...,
}

parent.create_auto_scaling_configuration(**kwargs)
  1. See CreateAutoScalingConfigurationRequestRequestTypeDef

create_connection#

Create an App Runner connection resource.

Type annotations and code completion for boto3.client("apprunner").create_connection method. boto3 documentation

# create_connection method definition

def create_connection(
    self,
    *,
    ConnectionName: str,
    ProviderType: ProviderTypeType,  # (1)
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateConnectionResponseTypeDef:  # (3)
    ...
  1. See ProviderTypeType
  2. See TagTypeDef
  3. See CreateConnectionResponseTypeDef
# create_connection method usage example with argument unpacking

kwargs: CreateConnectionRequestRequestTypeDef = {  # (1)
    "ConnectionName": ...,
    "ProviderType": ...,
}

parent.create_connection(**kwargs)
  1. See CreateConnectionRequestRequestTypeDef

create_observability_configuration#

Create an App Runner observability configuration resource.

Type annotations and code completion for boto3.client("apprunner").create_observability_configuration method. boto3 documentation

# create_observability_configuration method definition

def create_observability_configuration(
    self,
    *,
    ObservabilityConfigurationName: str,
    TraceConfiguration: TraceConfigurationTypeDef = ...,  # (1)
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateObservabilityConfigurationResponseTypeDef:  # (3)
    ...
  1. See TraceConfigurationTypeDef
  2. See TagTypeDef
  3. See CreateObservabilityConfigurationResponseTypeDef
# create_observability_configuration method usage example with argument unpacking

kwargs: CreateObservabilityConfigurationRequestRequestTypeDef = {  # (1)
    "ObservabilityConfigurationName": ...,
}

parent.create_observability_configuration(**kwargs)
  1. See CreateObservabilityConfigurationRequestRequestTypeDef

create_service#

Create an App Runner service.

Type annotations and code completion for boto3.client("apprunner").create_service method. boto3 documentation

# create_service method definition

def create_service(
    self,
    *,
    ServiceName: str,
    SourceConfiguration: Union[SourceConfigurationTypeDef, SourceConfigurationOutputTypeDef],  # (1)
    InstanceConfiguration: InstanceConfigurationTypeDef = ...,  # (2)
    Tags: Sequence[TagTypeDef] = ...,  # (3)
    EncryptionConfiguration: EncryptionConfigurationTypeDef = ...,  # (4)
    HealthCheckConfiguration: HealthCheckConfigurationTypeDef = ...,  # (5)
    AutoScalingConfigurationArn: str = ...,
    NetworkConfiguration: NetworkConfigurationTypeDef = ...,  # (6)
    ObservabilityConfiguration: ServiceObservabilityConfigurationTypeDef = ...,  # (7)
) -> CreateServiceResponseTypeDef:  # (8)
    ...
  1. See SourceConfigurationTypeDef SourceConfigurationOutputTypeDef
  2. See InstanceConfigurationTypeDef
  3. See TagTypeDef
  4. See EncryptionConfigurationTypeDef
  5. See HealthCheckConfigurationTypeDef
  6. See NetworkConfigurationTypeDef
  7. See ServiceObservabilityConfigurationTypeDef
  8. See CreateServiceResponseTypeDef
# create_service method usage example with argument unpacking

kwargs: CreateServiceRequestRequestTypeDef = {  # (1)
    "ServiceName": ...,
    "SourceConfiguration": ...,
}

parent.create_service(**kwargs)
  1. See CreateServiceRequestRequestTypeDef

create_vpc_connector#

Create an App Runner VPC connector resource.

Type annotations and code completion for boto3.client("apprunner").create_vpc_connector method. boto3 documentation

# create_vpc_connector method definition

def create_vpc_connector(
    self,
    *,
    VpcConnectorName: str,
    Subnets: Sequence[str],
    SecurityGroups: Sequence[str] = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateVpcConnectorResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateVpcConnectorResponseTypeDef
# create_vpc_connector method usage example with argument unpacking

kwargs: CreateVpcConnectorRequestRequestTypeDef = {  # (1)
    "VpcConnectorName": ...,
    "Subnets": ...,
}

parent.create_vpc_connector(**kwargs)
  1. See CreateVpcConnectorRequestRequestTypeDef

create_vpc_ingress_connection#

Create an App Runner VPC Ingress Connection resource.

Type annotations and code completion for boto3.client("apprunner").create_vpc_ingress_connection method. boto3 documentation

# create_vpc_ingress_connection method definition

def create_vpc_ingress_connection(
    self,
    *,
    ServiceArn: str,
    VpcIngressConnectionName: str,
    IngressVpcConfiguration: IngressVpcConfigurationTypeDef,  # (1)
    Tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateVpcIngressConnectionResponseTypeDef:  # (3)
    ...
  1. See IngressVpcConfigurationTypeDef
  2. See TagTypeDef
  3. See CreateVpcIngressConnectionResponseTypeDef
# create_vpc_ingress_connection method usage example with argument unpacking

kwargs: CreateVpcIngressConnectionRequestRequestTypeDef = {  # (1)
    "ServiceArn": ...,
    "VpcIngressConnectionName": ...,
    "IngressVpcConfiguration": ...,
}

parent.create_vpc_ingress_connection(**kwargs)
  1. See CreateVpcIngressConnectionRequestRequestTypeDef

delete_auto_scaling_configuration#

Delete an App Runner automatic scaling configuration resource.

Type annotations and code completion for boto3.client("apprunner").delete_auto_scaling_configuration method. boto3 documentation

# delete_auto_scaling_configuration method definition

def delete_auto_scaling_configuration(
    self,
    *,
    AutoScalingConfigurationArn: str,
    DeleteAllRevisions: bool = ...,
) -> DeleteAutoScalingConfigurationResponseTypeDef:  # (1)
    ...
  1. See DeleteAutoScalingConfigurationResponseTypeDef
# delete_auto_scaling_configuration method usage example with argument unpacking

kwargs: DeleteAutoScalingConfigurationRequestRequestTypeDef = {  # (1)
    "AutoScalingConfigurationArn": ...,
}

parent.delete_auto_scaling_configuration(**kwargs)
  1. See DeleteAutoScalingConfigurationRequestRequestTypeDef

delete_connection