API Gateway¶
Client¶
AsyncAPIGatewayClient
¶
AsyncAPIGatewayClient(config: AsyncAPIGatewayConfig | None = None, plugins: list[Plugin] | None = None)
Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
AsyncAPIGatewayConfig | None
|
Optional configuration for the client. Here you can set things like the endpoint for HTTP services or auth credentials. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables applied once to the client's base configuration. Their changes are inherited by every operation invocation. |
None
|
Operations¶
create_api_keycreate_authorizercreate_base_path_mappingcreate_deploymentcreate_documentation_partcreate_documentation_versioncreate_domain_namecreate_domain_name_access_associationcreate_modelcreate_request_validatorcreate_resourcecreate_rest_apicreate_stagecreate_usage_plancreate_usage_plan_keycreate_vpc_linkdelete_api_keydelete_authorizerdelete_base_path_mappingdelete_client_certificatedelete_deploymentdelete_documentation_partdelete_documentation_versiondelete_domain_namedelete_domain_name_access_associationdelete_gateway_responsedelete_integrationdelete_integration_responsedelete_methoddelete_method_responsedelete_modeldelete_request_validatordelete_resourcedelete_rest_apidelete_stagedelete_usage_plandelete_usage_plan_keydelete_vpc_linkflush_stage_authorizers_cacheflush_stage_cachegenerate_client_certificateget_accountget_api_keyget_api_keysget_authorizerget_authorizersget_base_path_mappingget_base_path_mappingsget_client_certificateget_client_certificatesget_deploymentget_deploymentsget_documentation_partget_documentation_partsget_documentation_versionget_documentation_versionsget_domain_nameget_domain_name_access_associationsget_domain_namesget_exportget_gateway_responseget_gateway_responsesget_integrationget_integration_responseget_methodget_method_responseget_modelget_model_templateget_modelsget_request_validatorget_request_validatorsget_resourceget_resourcesget_rest_apiget_rest_apisget_sdkget_sdk_typeget_sdk_typesget_stageget_stagesget_tagsget_usageget_usage_planget_usage_plan_keyget_usage_plan_keysget_usage_plansget_vpc_linkget_vpc_linksimport_api_keysimport_documentation_partsimport_rest_apiput_gateway_responseput_integrationput_integration_responseput_methodput_method_responseput_rest_apireject_domain_name_access_associationtag_resourcetest_invoke_authorizertest_invoke_methoduntag_resourceupdate_accountupdate_api_keyupdate_authorizerupdate_base_path_mappingupdate_client_certificateupdate_deploymentupdate_documentation_partupdate_documentation_versionupdate_domain_nameupdate_gateway_responseupdate_integrationupdate_integration_responseupdate_methodupdate_method_responseupdate_modelupdate_request_validatorupdate_resourceupdate_rest_apiupdate_stageupdate_usageupdate_usage_planupdate_vpc_link
Configuration¶
AsyncAPIGatewayConfig
dataclass
¶
Bases: AsyncAwsConfig
API Gateway configuration (async-resolved).
Attributes¶
auth_scheme_resolver
class-attribute
instance-attribute
¶
An auth scheme resolver that determines the auth scheme for each operation.
auth_schemes
class-attribute
instance-attribute
¶
A map of auth scheme ids to auth schemes.
aws_access_key_id
class-attribute
instance-attribute
¶
aws_access_key_id: str | None = None
The identifier for a secret access key.
aws_credentials_identity_resolver
class-attribute
instance-attribute
¶
aws_credentials_identity_resolver: IdentityResolver[AWSCredentialsIdentity, AWSIdentityProperties] | None = None
Resolves AWS Credentials. Required for operations that use Sigv4 Auth.
aws_secret_access_key
class-attribute
instance-attribute
¶
aws_secret_access_key: str | None = None
A secret access key that can be used to sign requests.
aws_session_token
class-attribute
instance-attribute
¶
aws_session_token: str | None = None
The session token used with temporary AWS credentials.
endpoint_resolver
class-attribute
instance-attribute
¶
The endpoint resolver used to resolve the final endpoint per-operation based on the configuration.
interceptors
class-attribute
instance-attribute
¶
The list of interceptors, which are hooks that are called during the execution of a request.
protocol
class-attribute
instance-attribute
¶
The protocol to serialize and deserialize requests with.
region
class-attribute
instance-attribute
¶
region: str | None = None
The AWS region to connect to. The configured region is used to determine the service endpoint.
sdk_ua_app_id
class-attribute
instance-attribute
¶
sdk_ua_app_id: str | None = None
A unique and opaque application ID that is appended to the User-Agent header.
user_agent_extra
class-attribute
instance-attribute
¶
user_agent_extra: str | None = None
Additional suffix to be added to the User-Agent header.
Methods:¶
resolve
async
classmethod
¶
resolve(*, profile: str | None = None, fs: FileSystem | None = None, config_file_path: str | None = None, credentials_file_path: str | None = None, **overrides: Unpack[_AsyncAPIGatewayConfigOverrides]) -> Self
Resolve config from environment, config files, defaults, and explicit overrides.
Plugin
module-attribute
¶
Plugin: TypeAlias = Callable[[AsyncAPIGatewayConfig], None]
A callable that customizes a client configuration. Service-level plugins are applied once to the base configuration inherited by every operation. Operation-level plugins apply only to a single operation invocation.
Structures¶
AccessLogSettingsApiKeyApiStageAuthorizerBasePathMappingCanarySettingsClientCertificateDeploymentDeploymentCanarySettingsDocumentationPartDocumentationPartLocationDocumentationVersionDomainNameDomainNameAccessAssociationEndpointConfigurationGatewayResponseIntegrationIntegrationResponseMethodMethodResponseMethodSettingMethodSnapshotModelMutualTlsAuthenticationMutualTlsAuthenticationInputPatchOperationQuotaSettingsRequestValidatorResourceRestApiSdkConfigurationPropertySdkTypeStageStageKeyThrottleSettingsTlsConfigUsagePlanUsagePlanKeyVpcLink
Errors¶
BadRequestExceptionConflictExceptionLimitExceededExceptionNotFoundExceptionServiceErrorServiceUnavailableExceptionTooManyRequestsExceptionUnauthorizedException
Enums¶
AccessAssociationSourceTypeApiKeySourceTypeApiKeysFormatApiStatusAuthorizerTypeCacheClusterSizeCacheClusterStatusConnectionTypeContentHandlingStrategyDocumentationPartTypeDomainNameStatusEndpointAccessModeEndpointTypeGatewayResponseTypeIntegrationTypeIpAddressTypeLocationStatusTypeOpPutModeQuotaPeriodTypeResourceOwnerResponseTransferModeRoutingModeSecurityPolicyUnauthorizedCacheControlHeaderStrategyVpcLinkStatus