AppConfigClient#
Auto-generated documentation for AppConfig type annotations stubs module mypy-boto3-appconfig.
AppConfigClient#
Type annotations and code completion for boto3.client("appconfig")
.
boto3 documentation
# AppConfigClient usage example
from boto3.session import Session
from mypy_boto3_appconfig.client import AppConfigClient
def get_appconfig_client() -> AppConfigClient:
return Session().client("appconfig")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("appconfig").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("appconfig")
try:
do_something(client)
except (
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.PayloadTooLargeException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_appconfig.client import Exceptions
def handle_error(exc: Exceptions.BadRequestException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("appconfig").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("appconfig").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_application#
Creates an application.
Type annotations and code completion for boto3.client("appconfig").create_application
method.
boto3 documentation
# create_application method definition
def create_application(
self,
*,
Name: str,
Description: str = ...,
Tags: Mapping[str, str] = ...,
) -> ApplicationResponseTypeDef: # (1)
...
# create_application method usage example with argument unpacking
kwargs: CreateApplicationRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.create_application(**kwargs)
create_configuration_profile#
Creates a configuration profile, which is information that enables AppConfig to access the configuration source.
Type annotations and code completion for boto3.client("appconfig").create_configuration_profile
method.
boto3 documentation
# create_configuration_profile method definition
def create_configuration_profile(
self,
*,
ApplicationId: str,
Name: str,
LocationUri: str,
Description: str = ...,
RetrievalRoleArn: str = ...,
Validators: Sequence[ValidatorTypeDef] = ..., # (1)
Tags: Mapping[str, str] = ...,
Type: str = ...,
KmsKeyIdentifier: str = ...,
) -> ConfigurationProfileTypeDef: # (2)
...
# create_configuration_profile method usage example with argument unpacking
kwargs: CreateConfigurationProfileRequestRequestTypeDef = { # (1)
"ApplicationId": ...,
"Name": ...,
"LocationUri": ...,
}
parent.create_configuration_profile(**kwargs)
create_deployment_strategy#
Creates a deployment strategy that defines important criteria for rolling out your configuration to the designated targets.
Type annotations and code completion for boto3.client("appconfig").create_deployment_strategy
method.
boto3 documentation
# create_deployment_strategy method definition
def create_deployment_strategy(
self,
*,
Name: str,
DeploymentDurationInMinutes: int,
GrowthFactor: float,
Description: str = ...,
FinalBakeTimeInMinutes: int = ...,
GrowthType: GrowthTypeType = ..., # (1)
ReplicateTo: ReplicateToType = ..., # (2)
Tags: Mapping[str, str] = ...,
) -> DeploymentStrategyResponseTypeDef: # (3)
...
# create_deployment_strategy method usage example with argument unpacking
kwargs: CreateDeploymentStrategyRequestRequestTypeDef = { # (1)
"Name": ...,
"DeploymentDurationInMinutes": ...,
"GrowthFactor": ...,
}
parent.create_deployment_strategy(**kwargs)
create_environment#
Creates an environment.
Type annotations and code completion for boto3.client("appconfig").create_environment
method.