ApiGatewayV2Client#
Index > ApiGatewayV2 > ApiGatewayV2Client
Auto-generated documentation for ApiGatewayV2 type annotations stubs module mypy-boto3-apigatewayv2.
ApiGatewayV2Client#
Type annotations and code completion for boto3.client("apigatewayv2")
.
boto3 documentation
# ApiGatewayV2Client usage example
from boto3.session import Session
from mypy_boto3_apigatewayv2.client import ApiGatewayV2Client
def get_apigatewayv2_client() -> ApiGatewayV2Client:
return Session().client("apigatewayv2")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("apigatewayv2").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("apigatewayv2")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.NotFoundException,
client.exceptions.TooManyRequestsException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_apigatewayv2.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("apigatewayv2").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("apigatewayv2").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
create_api#
Creates an Api resource.
Type annotations and code completion for boto3.client("apigatewayv2").create_api
method.
boto3 documentation
# create_api method definition
def create_api(
self,
*,
Name: str,
ProtocolType: ProtocolTypeType, # (1)
ApiKeySelectionExpression: str = ...,
CorsConfiguration: CorsTypeDef = ..., # (2)
CredentialsArn: str = ...,
Description: str = ...,
DisableSchemaValidation: bool = ...,
DisableExecuteApiEndpoint: bool = ...,
RouteKey: str = ...,
RouteSelectionExpression: str = ...,
Tags: Mapping[str, str] = ...,
Target: str = ...,
Version: str = ...,
) -> CreateApiResponseTypeDef: # (3)
...
- See ProtocolTypeType
- See CorsTypeDef
- See CreateApiResponseTypeDef
# create_api method usage example with argument unpacking
kwargs: CreateApiRequestRequestTypeDef = { # (1)
"Name": ...,
"ProtocolType": ...,
}
parent.create_api(**kwargs)
create_api_mapping#
Creates an API mapping.
Type annotations and code completion for boto3.client("apigatewayv2").create_api_mapping
method.
boto3 documentation
# create_api_mapping method definition
def create_api_mapping(
self,
*,
ApiId: str,
DomainName: str,
Stage: str,
ApiMappingKey: str = ...,
) -> CreateApiMappingResponseTypeDef: # (1)
...
# create_api_mapping method usage example with argument unpacking
kwargs: CreateApiMappingRequestRequestTypeDef = { # (1)
"ApiId": ...,
"DomainName": ...,
"Stage": ...,
}
parent.create_api_mapping(**kwargs)
create_authorizer#
Creates an Authorizer for an API.
Type annotations and code completion for boto3.client("apigatewayv2").create_authorizer
method.
boto3 documentation
# create_authorizer method definition
def create_authorizer(
self,
*,
ApiId: str,
AuthorizerType: AuthorizerTypeType, # (1)
IdentitySource: Sequence[str],
Name: str,
AuthorizerCredentialsArn: str = ...,
AuthorizerPayloadFormatVersion: str = ...,
AuthorizerResultTtlInSeconds: int = ...,
AuthorizerUri: str = ...,
EnableSimpleResponses: bool = ...,
IdentityValidationExpression: str = ...,
JwtConfiguration: JWTConfigurationTypeDef = ..., # (2)
) -> CreateAuthorizerResponseTypeDef: # (3)
...
# create_authorizer method usage example with argument unpacking
kwargs: CreateAuthorizerRequestRequestTypeDef = { # (1)
"ApiId": ...,
"AuthorizerType": ...,
"IdentitySource": ...,
"Name": ...,
}
parent.create_authorizer(**kwargs)
create_deployment#
Creates a Deployment for an API.
Type annotations and code completion for boto3.client("apigatewayv2").create_deployment
method.
boto3 documentation
# create_deployment method definition
def create_deployment(
self,
*,
ApiId: str,
Description: str = ...,
StageName: str = ...,
) -> CreateDeploymentResponseTypeDef: # (1)
...
# create_deployment method usage example with argument unpacking
kwargs: CreateDeploymentRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.create_deployment(**kwargs)
create_domain_name#
Creates a domain name.
Type annotations and code completion for boto3.client("apigatewayv2").create_domain_name
method.
boto3 documentation
# create_domain_name method definition
def create_domain_name(
self,
*,
DomainName: str,
DomainNameConfigurations: Sequence[DomainNameConfigurationUnionTypeDef] = ..., # (1)
MutualTlsAuthentication: MutualTlsAuthenticationInputTypeDef = ..., # (2)
Tags: Mapping[str, str] = ...,
) -> CreateDomainNameResponseTypeDef: # (3)
...
- See DomainNameConfigurationTypeDef DomainNameConfigurationOutputTypeDef
- See MutualTlsAuthenticationInputTypeDef
- See CreateDomainNameResponseTypeDef
# create_domain_name method usage example with argument unpacking
kwargs: CreateDomainNameRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.create_domain_name(**kwargs)
create_integration#
Creates an Integration.
Type annotations and code completion for boto3.client("apigatewayv2").create_integration
method.
boto3 documentation
# create_integration method definition
def create_integration(
self,
*,
ApiId: str,
IntegrationType: IntegrationTypeType, # (1)
ConnectionId: str = ...,
ConnectionType: ConnectionTypeType = ..., # (2)
ContentHandlingStrategy: ContentHandlingStrategyType = ..., # (3)
CredentialsArn: str = ...,
Description: str = ...,
IntegrationMethod: str = ...,
IntegrationSubtype: str = ...,
IntegrationUri: str = ...,
PassthroughBehavior: PassthroughBehaviorType = ..., # (4)
PayloadFormatVersion: str = ...,
RequestParameters: Mapping[str, str] = ...,
RequestTemplates: Mapping[str, str] = ...,
ResponseParameters: Mapping[str, Mapping[str, str]] = ...,
TemplateSelectionExpression: str = ...,
TimeoutInMillis: int = ...,
TlsConfig: TlsConfigInputTypeDef = ..., # (5)
) -> CreateIntegrationResultTypeDef: # (6)
...
- See IntegrationTypeType
- See ConnectionTypeType
- See ContentHandlingStrategyType
- See PassthroughBehaviorType
- See TlsConfigInputTypeDef
- See CreateIntegrationResultTypeDef
# create_integration method usage example with argument unpacking
kwargs: CreateIntegrationRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationType": ...,
}
parent.create_integration(**kwargs)
create_integration_response#
Creates an IntegrationResponses.
Type annotations and code completion for boto3.client("apigatewayv2").create_integration_response
method.
boto3 documentation
# create_integration_response method definition
def create_integration_response(
self,
*,
ApiId: str,
IntegrationId: str,
IntegrationResponseKey: str,
ContentHandlingStrategy: ContentHandlingStrategyType = ..., # (1)
ResponseParameters: Mapping[str, str] = ...,
ResponseTemplates: Mapping[str, str] = ...,
TemplateSelectionExpression: str = ...,
) -> CreateIntegrationResponseResponseTypeDef: # (2)
...
# create_integration_response method usage example with argument unpacking
kwargs: CreateIntegrationResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
"IntegrationResponseKey": ...,
}
parent.create_integration_response(**kwargs)
create_model#
Creates a Model for an API.
Type annotations and code completion for boto3.client("apigatewayv2").create_model
method.
boto3 documentation
# create_model method definition
def create_model(
self,
*,
ApiId: str,
Name: str,
Schema: str,
ContentType: str = ...,
Description: str = ...,
) -> CreateModelResponseTypeDef: # (1)
...
# create_model method usage example with argument unpacking
kwargs: CreateModelRequestRequestTypeDef = { # (1)
"ApiId": ...,
"Name": ...,
"Schema": ...,
}
parent.create_model(**kwargs)
create_route#
Creates a Route for an API.
Type annotations and code completion for boto3.client("apigatewayv2").create_route
method.
boto3 documentation
# create_route method definition
def create_route(
self,
*,
ApiId: str,
RouteKey: str,
ApiKeyRequired: bool = ...,
AuthorizationScopes: Sequence[str] = ...,
AuthorizationType: AuthorizationTypeType = ..., # (1)
AuthorizerId: str = ...,
ModelSelectionExpression: str = ...,
OperationName: str = ...,
RequestModels: Mapping[str, str] = ...,
RequestParameters: Mapping[str, ParameterConstraintsTypeDef] = ..., # (2)
RouteResponseSelectionExpression: str = ...,
Target: str = ...,
) -> CreateRouteResultTypeDef: # (3)
...
# create_route method usage example with argument unpacking
kwargs: CreateRouteRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteKey": ...,
}
parent.create_route(**kwargs)
create_route_response#
Creates a RouteResponse for a Route.
Type annotations and code completion for boto3.client("apigatewayv2").create_route_response
method.
boto3 documentation
# create_route_response method definition
def create_route_response(
self,
*,
ApiId: str,
RouteId: str,
RouteResponseKey: str,
ModelSelectionExpression: str = ...,
ResponseModels: Mapping[str, str] = ...,
ResponseParameters: Mapping[str, ParameterConstraintsTypeDef] = ..., # (1)
) -> CreateRouteResponseResponseTypeDef: # (2)
...
# create_route_response method usage example with argument unpacking
kwargs: CreateRouteResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
"RouteResponseKey": ...,
}
parent.create_route_response(**kwargs)
create_stage#
Creates a Stage for an API.
Type annotations and code completion for boto3.client("apigatewayv2").create_stage
method.
boto3 documentation
# create_stage method definition
def create_stage(
self,
*,
ApiId: str,
StageName: str,
AccessLogSettings: AccessLogSettingsTypeDef = ..., # (1)
AutoDeploy: bool = ...,
ClientCertificateId: str = ...,
DefaultRouteSettings: RouteSettingsTypeDef = ..., # (2)
DeploymentId: str = ...,
Description: str = ...,
RouteSettings: Mapping[str, RouteSettingsTypeDef] = ..., # (3)
StageVariables: Mapping[str, str] = ...,
Tags: Mapping[str, str] = ...,
) -> CreateStageResponseTypeDef: # (4)
...
- See AccessLogSettingsTypeDef
- See RouteSettingsTypeDef
- See RouteSettingsTypeDef
- See CreateStageResponseTypeDef
# create_stage method usage example with argument unpacking
kwargs: CreateStageRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.create_stage(**kwargs)
create_vpc_link#
Creates a VPC link.
Type annotations and code completion for boto3.client("apigatewayv2").create_vpc_link
method.
boto3 documentation
# create_vpc_link method definition
def create_vpc_link(
self,
*,
Name: str,
SubnetIds: Sequence[str],
SecurityGroupIds: Sequence[str] = ...,
Tags: Mapping[str, str] = ...,
) -> CreateVpcLinkResponseTypeDef: # (1)
...
# create_vpc_link method usage example with argument unpacking
kwargs: CreateVpcLinkRequestRequestTypeDef = { # (1)
"Name": ...,
"SubnetIds": ...,
}
parent.create_vpc_link(**kwargs)
delete_access_log_settings#
Deletes the AccessLogSettings for a Stage.
Type annotations and code completion for boto3.client("apigatewayv2").delete_access_log_settings
method.
boto3 documentation
# delete_access_log_settings method definition
def delete_access_log_settings(
self,
*,
ApiId: str,
StageName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_access_log_settings method usage example with argument unpacking
kwargs: DeleteAccessLogSettingsRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.delete_access_log_settings(**kwargs)
delete_api#
Deletes an Api resource.
Type annotations and code completion for boto3.client("apigatewayv2").delete_api
method.
boto3 documentation
# delete_api method definition
def delete_api(
self,
*,
ApiId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_api method usage example with argument unpacking
kwargs: DeleteApiRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.delete_api(**kwargs)
delete_api_mapping#
Deletes an API mapping.
Type annotations and code completion for boto3.client("apigatewayv2").delete_api_mapping
method.
boto3 documentation
# delete_api_mapping method definition
def delete_api_mapping(
self,
*,
ApiMappingId: str,
DomainName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_api_mapping method usage example with argument unpacking
kwargs: DeleteApiMappingRequestRequestTypeDef = { # (1)
"ApiMappingId": ...,
"DomainName": ...,
}
parent.delete_api_mapping(**kwargs)
delete_authorizer#
Deletes an Authorizer.
Type annotations and code completion for boto3.client("apigatewayv2").delete_authorizer
method.
boto3 documentation
# delete_authorizer method definition
def delete_authorizer(
self,
*,
ApiId: str,
AuthorizerId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_authorizer method usage example with argument unpacking
kwargs: DeleteAuthorizerRequestRequestTypeDef = { # (1)
"ApiId": ...,
"AuthorizerId": ...,
}
parent.delete_authorizer(**kwargs)
delete_cors_configuration#
Deletes a CORS configuration.
Type annotations and code completion for boto3.client("apigatewayv2").delete_cors_configuration
method.
boto3 documentation
# delete_cors_configuration method definition
def delete_cors_configuration(
self,
*,
ApiId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_cors_configuration method usage example with argument unpacking
kwargs: DeleteCorsConfigurationRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.delete_cors_configuration(**kwargs)
delete_deployment#
Deletes a Deployment.
Type annotations and code completion for boto3.client("apigatewayv2").delete_deployment
method.
boto3 documentation
# delete_deployment method definition
def delete_deployment(
self,
*,
ApiId: str,
DeploymentId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_deployment method usage example with argument unpacking
kwargs: DeleteDeploymentRequestRequestTypeDef = { # (1)
"ApiId": ...,
"DeploymentId": ...,
}
parent.delete_deployment(**kwargs)
delete_domain_name#
Deletes a domain name.
Type annotations and code completion for boto3.client("apigatewayv2").delete_domain_name
method.
boto3 documentation
# delete_domain_name method definition
def delete_domain_name(
self,
*,
DomainName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_domain_name method usage example with argument unpacking
kwargs: DeleteDomainNameRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.delete_domain_name(**kwargs)
delete_integration#
Deletes an Integration.
Type annotations and code completion for boto3.client("apigatewayv2").delete_integration
method.
boto3 documentation
# delete_integration method definition
def delete_integration(
self,
*,
ApiId: str,
IntegrationId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_integration method usage example with argument unpacking
kwargs: DeleteIntegrationRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
}
parent.delete_integration(**kwargs)
delete_integration_response#
Deletes an IntegrationResponses.
Type annotations and code completion for boto3.client("apigatewayv2").delete_integration_response
method.
boto3 documentation
# delete_integration_response method definition
def delete_integration_response(
self,
*,
ApiId: str,
IntegrationId: str,
IntegrationResponseId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_integration_response method usage example with argument unpacking
kwargs: DeleteIntegrationResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
"IntegrationResponseId": ...,
}
parent.delete_integration_response(**kwargs)
delete_model#
Deletes a Model.
Type annotations and code completion for boto3.client("apigatewayv2").delete_model
method.
boto3 documentation
# delete_model method definition
def delete_model(
self,
*,
ApiId: str,
ModelId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_model method usage example with argument unpacking
kwargs: DeleteModelRequestRequestTypeDef = { # (1)
"ApiId": ...,
"ModelId": ...,
}
parent.delete_model(**kwargs)
delete_route#
Deletes a Route.
Type annotations and code completion for boto3.client("apigatewayv2").delete_route
method.
boto3 documentation
# delete_route method definition
def delete_route(
self,
*,
ApiId: str,
RouteId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route method usage example with argument unpacking
kwargs: DeleteRouteRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
}
parent.delete_route(**kwargs)
delete_route_request_parameter#
Deletes a route request parameter.
Type annotations and code completion for boto3.client("apigatewayv2").delete_route_request_parameter
method.
boto3 documentation
# delete_route_request_parameter method definition
def delete_route_request_parameter(
self,
*,
ApiId: str,
RequestParameterKey: str,
RouteId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route_request_parameter method usage example with argument unpacking
kwargs: DeleteRouteRequestParameterRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RequestParameterKey": ...,
"RouteId": ...,
}
parent.delete_route_request_parameter(**kwargs)
delete_route_response#
Deletes a RouteResponse.
Type annotations and code completion for boto3.client("apigatewayv2").delete_route_response
method.
boto3 documentation
# delete_route_response method definition
def delete_route_response(
self,
*,
ApiId: str,
RouteId: str,
RouteResponseId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route_response method usage example with argument unpacking
kwargs: DeleteRouteResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
"RouteResponseId": ...,
}
parent.delete_route_response(**kwargs)
delete_route_settings#
Deletes the RouteSettings for a stage.
Type annotations and code completion for boto3.client("apigatewayv2").delete_route_settings
method.
boto3 documentation
# delete_route_settings method definition
def delete_route_settings(
self,
*,
ApiId: str,
RouteKey: str,
StageName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route_settings method usage example with argument unpacking
kwargs: DeleteRouteSettingsRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteKey": ...,
"StageName": ...,
}
parent.delete_route_settings(**kwargs)
delete_stage#
Deletes a Stage.
Type annotations and code completion for boto3.client("apigatewayv2").delete_stage
method.
boto3 documentation
# delete_stage method definition
def delete_stage(
self,
*,
ApiId: str,
StageName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_stage method usage example with argument unpacking
kwargs: DeleteStageRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.delete_stage(**kwargs)
delete_vpc_link#
Deletes a VPC link.
Type annotations and code completion for boto3.client("apigatewayv2").delete_vpc_link
method.
boto3 documentation
# delete_vpc_link method definition
def delete_vpc_link(
self,
*,
VpcLinkId: str,
) -> dict[str, Any]:
...
# delete_vpc_link method usage example with argument unpacking
kwargs: DeleteVpcLinkRequestRequestTypeDef = { # (1)
"VpcLinkId": ...,
}
parent.delete_vpc_link(**kwargs)
export_api#
Type annotations and code completion for boto3.client("apigatewayv2").export_api
method.
boto3 documentation
# export_api method definition
def export_api(
self,
*,
ApiId: str,
OutputType: JSONYAMLType, # (1)
Specification: OAS30Type, # (2)
ExportVersion: str = ...,
IncludeExtensions: bool = ...,
StageName: str = ...,
) -> ExportApiResponseTypeDef: # (3)
...
- See JSONYAMLType
- See OAS30Type
- See ExportApiResponseTypeDef
# export_api method usage example with argument unpacking
kwargs: ExportApiRequestRequestTypeDef = { # (1)
"ApiId": ...,
"OutputType": ...,
"Specification": ...,
}
parent.export_api(**kwargs)
reset_authorizers_cache#
Resets all authorizer cache entries on a stage.
Type annotations and code completion for boto3.client("apigatewayv2").reset_authorizers_cache
method.
boto3 documentation
# reset_authorizers_cache method definition
def reset_authorizers_cache(
self,
*,
ApiId: str,
StageName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# reset_authorizers_cache method usage example with argument unpacking
kwargs: ResetAuthorizersCacheRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.reset_authorizers_cache(**kwargs)
get_api#
Gets an Api resource.
Type annotations and code completion for boto3.client("apigatewayv2").get_api
method.
boto3 documentation
# get_api method definition
def get_api(
self,
*,
ApiId: str,
) -> GetApiResponseTypeDef: # (1)
...
# get_api method usage example with argument unpacking
kwargs: GetApiRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_api(**kwargs)
get_api_mapping#
Gets an API mapping.
Type annotations and code completion for boto3.client("apigatewayv2").get_api_mapping
method.
boto3 documentation
# get_api_mapping method definition
def get_api_mapping(
self,
*,
ApiMappingId: str,
DomainName: str,
) -> GetApiMappingResponseTypeDef: # (1)
...
# get_api_mapping method usage example with argument unpacking
kwargs: GetApiMappingRequestRequestTypeDef = { # (1)
"ApiMappingId": ...,
"DomainName": ...,
}
parent.get_api_mapping(**kwargs)
get_api_mappings#
Gets API mappings.
Type annotations and code completion for boto3.client("apigatewayv2").get_api_mappings
method.
boto3 documentation
# get_api_mappings method definition
def get_api_mappings(
self,
*,
DomainName: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetApiMappingsResponseTypeDef: # (1)
...
# get_api_mappings method usage example with argument unpacking
kwargs: GetApiMappingsRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.get_api_mappings(**kwargs)
get_apis#
Gets a collection of Api resources.
Type annotations and code completion for boto3.client("apigatewayv2").get_apis
method.
boto3 documentation
# get_apis method definition
def get_apis(
self,
*,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetApisResponseTypeDef: # (1)
...
# get_apis method usage example with argument unpacking
kwargs: GetApisRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.get_apis(**kwargs)
get_authorizer#
Gets an Authorizer.
Type annotations and code completion for boto3.client("apigatewayv2").get_authorizer
method.
boto3 documentation
# get_authorizer method definition
def get_authorizer(
self,
*,
ApiId: str,
AuthorizerId: str,
) -> GetAuthorizerResponseTypeDef: # (1)
...
# get_authorizer method usage example with argument unpacking
kwargs: GetAuthorizerRequestRequestTypeDef = { # (1)
"ApiId": ...,
"AuthorizerId": ...,
}
parent.get_authorizer(**kwargs)
get_authorizers#
Gets the Authorizers for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_authorizers
method.
boto3 documentation
# get_authorizers method definition
def get_authorizers(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetAuthorizersResponseTypeDef: # (1)
...
# get_authorizers method usage example with argument unpacking
kwargs: GetAuthorizersRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_authorizers(**kwargs)
get_deployment#
Gets a Deployment.
Type annotations and code completion for boto3.client("apigatewayv2").get_deployment
method.
boto3 documentation
# get_deployment method definition
def get_deployment(
self,
*,
ApiId: str,
DeploymentId: str,
) -> GetDeploymentResponseTypeDef: # (1)
...
# get_deployment method usage example with argument unpacking
kwargs: GetDeploymentRequestRequestTypeDef = { # (1)
"ApiId": ...,
"DeploymentId": ...,
}
parent.get_deployment(**kwargs)
get_deployments#
Gets the Deployments for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_deployments
method.
boto3 documentation
# get_deployments method definition
def get_deployments(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetDeploymentsResponseTypeDef: # (1)
...
# get_deployments method usage example with argument unpacking
kwargs: GetDeploymentsRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_deployments(**kwargs)
get_domain_name#
Gets a domain name.
Type annotations and code completion for boto3.client("apigatewayv2").get_domain_name
method.
boto3 documentation
# get_domain_name method definition
def get_domain_name(
self,
*,
DomainName: str,
) -> GetDomainNameResponseTypeDef: # (1)
...
# get_domain_name method usage example with argument unpacking
kwargs: GetDomainNameRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.get_domain_name(**kwargs)
get_domain_names#
Gets the domain names for an AWS account.
Type annotations and code completion for boto3.client("apigatewayv2").get_domain_names
method.
boto3 documentation
# get_domain_names method definition
def get_domain_names(
self,
*,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetDomainNamesResponseTypeDef: # (1)
...
# get_domain_names method usage example with argument unpacking
kwargs: GetDomainNamesRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.get_domain_names(**kwargs)
get_integration#
Gets an Integration.
Type annotations and code completion for boto3.client("apigatewayv2").get_integration
method.
boto3 documentation
# get_integration method definition
def get_integration(
self,
*,
ApiId: str,
IntegrationId: str,
) -> GetIntegrationResultTypeDef: # (1)
...
# get_integration method usage example with argument unpacking
kwargs: GetIntegrationRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
}
parent.get_integration(**kwargs)
get_integration_response#
Gets an IntegrationResponses.
Type annotations and code completion for boto3.client("apigatewayv2").get_integration_response
method.
boto3 documentation
# get_integration_response method definition
def get_integration_response(
self,
*,
ApiId: str,
IntegrationId: str,
IntegrationResponseId: str,
) -> GetIntegrationResponseResponseTypeDef: # (1)
...
# get_integration_response method usage example with argument unpacking
kwargs: GetIntegrationResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
"IntegrationResponseId": ...,
}
parent.get_integration_response(**kwargs)
get_integration_responses#
Gets the IntegrationResponses for an Integration.
Type annotations and code completion for boto3.client("apigatewayv2").get_integration_responses
method.
boto3 documentation
# get_integration_responses method definition
def get_integration_responses(
self,
*,
ApiId: str,
IntegrationId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetIntegrationResponsesResponseTypeDef: # (1)
...
# get_integration_responses method usage example with argument unpacking
kwargs: GetIntegrationResponsesRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
}
parent.get_integration_responses(**kwargs)
get_integrations#
Gets the Integrations for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_integrations
method.
boto3 documentation
# get_integrations method definition
def get_integrations(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetIntegrationsResponseTypeDef: # (1)
...
# get_integrations method usage example with argument unpacking
kwargs: GetIntegrationsRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_integrations(**kwargs)
get_model#
Gets a Model.
Type annotations and code completion for boto3.client("apigatewayv2").get_model
method.
boto3 documentation
# get_model method definition
def get_model(
self,
*,
ApiId: str,
ModelId: str,
) -> GetModelResponseTypeDef: # (1)
...
# get_model method usage example with argument unpacking
kwargs: GetModelRequestRequestTypeDef = { # (1)
"ApiId": ...,
"ModelId": ...,
}
parent.get_model(**kwargs)
get_model_template#
Gets a model template.
Type annotations and code completion for boto3.client("apigatewayv2").get_model_template
method.
boto3 documentation
# get_model_template method definition
def get_model_template(
self,
*,
ApiId: str,
ModelId: str,
) -> GetModelTemplateResponseTypeDef: # (1)
...
# get_model_template method usage example with argument unpacking
kwargs: GetModelTemplateRequestRequestTypeDef = { # (1)
"ApiId": ...,
"ModelId": ...,
}
parent.get_model_template(**kwargs)
get_models#
Gets the Models for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_models
method.
boto3 documentation
# get_models method definition
def get_models(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetModelsResponseTypeDef: # (1)
...
# get_models method usage example with argument unpacking
kwargs: GetModelsRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_models(**kwargs)
get_route#
Gets a Route.
Type annotations and code completion for boto3.client("apigatewayv2").get_route
method.
boto3 documentation
# get_route method definition
def get_route(
self,
*,
ApiId: str,
RouteId: str,
) -> GetRouteResultTypeDef: # (1)
...
# get_route method usage example with argument unpacking
kwargs: GetRouteRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
}
parent.get_route(**kwargs)
get_route_response#
Gets a RouteResponse.
Type annotations and code completion for boto3.client("apigatewayv2").get_route_response
method.
boto3 documentation
# get_route_response method definition
def get_route_response(
self,
*,
ApiId: str,
RouteId: str,
RouteResponseId: str,
) -> GetRouteResponseResponseTypeDef: # (1)
...
# get_route_response method usage example with argument unpacking
kwargs: GetRouteResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
"RouteResponseId": ...,
}
parent.get_route_response(**kwargs)
get_route_responses#
Gets the RouteResponses for a Route.
Type annotations and code completion for boto3.client("apigatewayv2").get_route_responses
method.
boto3 documentation
# get_route_responses method definition
def get_route_responses(
self,
*,
ApiId: str,
RouteId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetRouteResponsesResponseTypeDef: # (1)
...
# get_route_responses method usage example with argument unpacking
kwargs: GetRouteResponsesRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
}
parent.get_route_responses(**kwargs)
get_routes#
Gets the Routes for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_routes
method.
boto3 documentation
# get_routes method definition
def get_routes(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetRoutesResponseTypeDef: # (1)
...
# get_routes method usage example with argument unpacking
kwargs: GetRoutesRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_routes(**kwargs)
get_stage#
Gets a Stage.
Type annotations and code completion for boto3.client("apigatewayv2").get_stage
method.
boto3 documentation
# get_stage method definition
def get_stage(
self,
*,
ApiId: str,
StageName: str,
) -> GetStageResponseTypeDef: # (1)
...
# get_stage method usage example with argument unpacking
kwargs: GetStageRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.get_stage(**kwargs)
get_stages#
Gets the Stages for an API.
Type annotations and code completion for boto3.client("apigatewayv2").get_stages
method.
boto3 documentation
# get_stages method definition
def get_stages(
self,
*,
ApiId: str,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetStagesResponseTypeDef: # (1)
...
# get_stages method usage example with argument unpacking
kwargs: GetStagesRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.get_stages(**kwargs)
get_tags#
Gets a collection of Tag resources.
Type annotations and code completion for boto3.client("apigatewayv2").get_tags
method.
boto3 documentation
# get_tags method definition
def get_tags(
self,
*,
ResourceArn: str,
) -> GetTagsResponseTypeDef: # (1)
...
# get_tags method usage example with argument unpacking
kwargs: GetTagsRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.get_tags(**kwargs)
get_vpc_link#
Gets a VPC link.
Type annotations and code completion for boto3.client("apigatewayv2").get_vpc_link
method.
boto3 documentation
# get_vpc_link method definition
def get_vpc_link(
self,
*,
VpcLinkId: str,
) -> GetVpcLinkResponseTypeDef: # (1)
...
# get_vpc_link method usage example with argument unpacking
kwargs: GetVpcLinkRequestRequestTypeDef = { # (1)
"VpcLinkId": ...,
}
parent.get_vpc_link(**kwargs)
get_vpc_links#
Gets a collection of VPC links.
Type annotations and code completion for boto3.client("apigatewayv2").get_vpc_links
method.
boto3 documentation
# get_vpc_links method definition
def get_vpc_links(
self,
*,
MaxResults: str = ...,
NextToken: str = ...,
) -> GetVpcLinksResponseTypeDef: # (1)
...
# get_vpc_links method usage example with argument unpacking
kwargs: GetVpcLinksRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.get_vpc_links(**kwargs)
import_api#
Imports an API.
Type annotations and code completion for boto3.client("apigatewayv2").import_api
method.
boto3 documentation
# import_api method definition
def import_api(
self,
*,
Body: str,
Basepath: str = ...,
FailOnWarnings: bool = ...,
) -> ImportApiResponseTypeDef: # (1)
...
# import_api method usage example with argument unpacking
kwargs: ImportApiRequestRequestTypeDef = { # (1)
"Body": ...,
}
parent.import_api(**kwargs)
reimport_api#
Puts an Api resource.
Type annotations and code completion for boto3.client("apigatewayv2").reimport_api
method.
boto3 documentation
# reimport_api method definition
def reimport_api(
self,
*,
ApiId: str,
Body: str,
Basepath: str = ...,
FailOnWarnings: bool = ...,
) -> ReimportApiResponseTypeDef: # (1)
...
# reimport_api method usage example with argument unpacking
kwargs: ReimportApiRequestRequestTypeDef = { # (1)
"ApiId": ...,
"Body": ...,
}
parent.reimport_api(**kwargs)
tag_resource#
Creates a new Tag resource to represent a tag.
Type annotations and code completion for boto3.client("apigatewayv2").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Mapping[str, str] = ...,
) -> dict[str, Any]:
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Deletes a Tag.
Type annotations and code completion for boto3.client("apigatewayv2").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (1)
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_api#
Updates an Api resource.
Type annotations and code completion for boto3.client("apigatewayv2").update_api
method.
boto3 documentation
# update_api method definition
def update_api(
self,
*,
ApiId: str,
ApiKeySelectionExpression: str = ...,
CorsConfiguration: CorsTypeDef = ..., # (1)
CredentialsArn: str = ...,
Description: str = ...,
DisableSchemaValidation: bool = ...,
DisableExecuteApiEndpoint: bool = ...,
Name: str = ...,
RouteKey: str = ...,
RouteSelectionExpression: str = ...,
Target: str = ...,
Version: str = ...,
) -> UpdateApiResponseTypeDef: # (2)
...
- See CorsTypeDef
- See UpdateApiResponseTypeDef
# update_api method usage example with argument unpacking
kwargs: UpdateApiRequestRequestTypeDef = { # (1)
"ApiId": ...,
}
parent.update_api(**kwargs)
update_api_mapping#
The API mapping.
Type annotations and code completion for boto3.client("apigatewayv2").update_api_mapping
method.
boto3 documentation
# update_api_mapping method definition
def update_api_mapping(
self,
*,
ApiId: str,
ApiMappingId: str,
DomainName: str,
ApiMappingKey: str = ...,
Stage: str = ...,
) -> UpdateApiMappingResponseTypeDef: # (1)
...
# update_api_mapping method usage example with argument unpacking
kwargs: UpdateApiMappingRequestRequestTypeDef = { # (1)
"ApiId": ...,
"ApiMappingId": ...,
"DomainName": ...,
}
parent.update_api_mapping(**kwargs)
update_authorizer#
Updates an Authorizer.
Type annotations and code completion for boto3.client("apigatewayv2").update_authorizer
method.
boto3 documentation
# update_authorizer method definition
def update_authorizer(
self,
*,
ApiId: str,
AuthorizerId: str,
AuthorizerCredentialsArn: str = ...,
AuthorizerPayloadFormatVersion: str = ...,
AuthorizerResultTtlInSeconds: int = ...,
AuthorizerType: AuthorizerTypeType = ..., # (1)
AuthorizerUri: str = ...,
EnableSimpleResponses: bool = ...,
IdentitySource: Sequence[str] = ...,
IdentityValidationExpression: str = ...,
JwtConfiguration: JWTConfigurationTypeDef = ..., # (2)
Name: str = ...,
) -> UpdateAuthorizerResponseTypeDef: # (3)
...
# update_authorizer method usage example with argument unpacking
kwargs: UpdateAuthorizerRequestRequestTypeDef = { # (1)
"ApiId": ...,
"AuthorizerId": ...,
}
parent.update_authorizer(**kwargs)
update_deployment#
Updates a Deployment.
Type annotations and code completion for boto3.client("apigatewayv2").update_deployment
method.
boto3 documentation
# update_deployment method definition
def update_deployment(
self,
*,
ApiId: str,
DeploymentId: str,
Description: str = ...,
) -> UpdateDeploymentResponseTypeDef: # (1)
...
# update_deployment method usage example with argument unpacking
kwargs: UpdateDeploymentRequestRequestTypeDef = { # (1)
"ApiId": ...,
"DeploymentId": ...,
}
parent.update_deployment(**kwargs)
update_domain_name#
Updates a domain name.
Type annotations and code completion for boto3.client("apigatewayv2").update_domain_name
method.
boto3 documentation
# update_domain_name method definition
def update_domain_name(
self,
*,
DomainName: str,
DomainNameConfigurations: Sequence[DomainNameConfigurationTypeDef] = ..., # (1)
MutualTlsAuthentication: MutualTlsAuthenticationInputTypeDef = ..., # (2)
) -> UpdateDomainNameResponseTypeDef: # (3)
...
- See DomainNameConfigurationTypeDef
- See MutualTlsAuthenticationInputTypeDef
- See UpdateDomainNameResponseTypeDef
# update_domain_name method usage example with argument unpacking
kwargs: UpdateDomainNameRequestRequestTypeDef = { # (1)
"DomainName": ...,
}
parent.update_domain_name(**kwargs)
update_integration#
Updates an Integration.
Type annotations and code completion for boto3.client("apigatewayv2").update_integration
method.
boto3 documentation
# update_integration method definition
def update_integration(
self,
*,
ApiId: str,
IntegrationId: str,
ConnectionId: str = ...,
ConnectionType: ConnectionTypeType = ..., # (1)
ContentHandlingStrategy: ContentHandlingStrategyType = ..., # (2)
CredentialsArn: str = ...,
Description: str = ...,
IntegrationMethod: str = ...,
IntegrationSubtype: str = ...,
IntegrationType: IntegrationTypeType = ..., # (3)
IntegrationUri: str = ...,
PassthroughBehavior: PassthroughBehaviorType = ..., # (4)
PayloadFormatVersion: str = ...,
RequestParameters: Mapping[str, str] = ...,
RequestTemplates: Mapping[str, str] = ...,
ResponseParameters: Mapping[str, Mapping[str, str]] = ...,
TemplateSelectionExpression: str = ...,
TimeoutInMillis: int = ...,
TlsConfig: TlsConfigInputTypeDef = ..., # (5)
) -> UpdateIntegrationResultTypeDef: # (6)
...
- See ConnectionTypeType
- See ContentHandlingStrategyType
- See IntegrationTypeType
- See PassthroughBehaviorType
- See TlsConfigInputTypeDef
- See UpdateIntegrationResultTypeDef
# update_integration method usage example with argument unpacking
kwargs: UpdateIntegrationRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
}
parent.update_integration(**kwargs)
update_integration_response#
Updates an IntegrationResponses.
Type annotations and code completion for boto3.client("apigatewayv2").update_integration_response
method.
boto3 documentation
# update_integration_response method definition
def update_integration_response(
self,
*,
ApiId: str,
IntegrationId: str,
IntegrationResponseId: str,
ContentHandlingStrategy: ContentHandlingStrategyType = ..., # (1)
IntegrationResponseKey: str = ...,
ResponseParameters: Mapping[str, str] = ...,
ResponseTemplates: Mapping[str, str] = ...,
TemplateSelectionExpression: str = ...,
) -> UpdateIntegrationResponseResponseTypeDef: # (2)
...
# update_integration_response method usage example with argument unpacking
kwargs: UpdateIntegrationResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"IntegrationId": ...,
"IntegrationResponseId": ...,
}
parent.update_integration_response(**kwargs)
update_model#
Updates a Model.
Type annotations and code completion for boto3.client("apigatewayv2").update_model
method.
boto3 documentation
# update_model method definition
def update_model(
self,
*,
ApiId: str,
ModelId: str,
ContentType: str = ...,
Description: str = ...,
Name: str = ...,
Schema: str = ...,
) -> UpdateModelResponseTypeDef: # (1)
...
# update_model method usage example with argument unpacking
kwargs: UpdateModelRequestRequestTypeDef = { # (1)
"ApiId": ...,
"ModelId": ...,
}
parent.update_model(**kwargs)
update_route#
Updates a Route.
Type annotations and code completion for boto3.client("apigatewayv2").update_route
method.
boto3 documentation
# update_route method definition
def update_route(
self,
*,
ApiId: str,
RouteId: str,
ApiKeyRequired: bool = ...,
AuthorizationScopes: Sequence[str] = ...,
AuthorizationType: AuthorizationTypeType = ..., # (1)
AuthorizerId: str = ...,
ModelSelectionExpression: str = ...,
OperationName: str = ...,
RequestModels: Mapping[str, str] = ...,
RequestParameters: Mapping[str, ParameterConstraintsTypeDef] = ..., # (2)
RouteKey: str = ...,
RouteResponseSelectionExpression: str = ...,
Target: str = ...,
) -> UpdateRouteResultTypeDef: # (3)
...
# update_route method usage example with argument unpacking
kwargs: UpdateRouteRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
}
parent.update_route(**kwargs)
update_route_response#
Updates a RouteResponse.
Type annotations and code completion for boto3.client("apigatewayv2").update_route_response
method.
boto3 documentation
# update_route_response method definition
def update_route_response(
self,
*,
ApiId: str,
RouteId: str,
RouteResponseId: str,
ModelSelectionExpression: str = ...,
ResponseModels: Mapping[str, str] = ...,
ResponseParameters: Mapping[str, ParameterConstraintsTypeDef] = ..., # (1)
RouteResponseKey: str = ...,
) -> UpdateRouteResponseResponseTypeDef: # (2)
...
# update_route_response method usage example with argument unpacking
kwargs: UpdateRouteResponseRequestRequestTypeDef = { # (1)
"ApiId": ...,
"RouteId": ...,
"RouteResponseId": ...,
}
parent.update_route_response(**kwargs)
update_stage#
Updates a Stage.
Type annotations and code completion for boto3.client("apigatewayv2").update_stage
method.
boto3 documentation
# update_stage method definition
def update_stage(
self,
*,
ApiId: str,
StageName: str,
AccessLogSettings: AccessLogSettingsTypeDef = ..., # (1)
AutoDeploy: bool = ...,
ClientCertificateId: str = ...,
DefaultRouteSettings: RouteSettingsTypeDef = ..., # (2)
DeploymentId: str = ...,
Description: str = ...,
RouteSettings: Mapping[str, RouteSettingsTypeDef] = ..., # (3)
StageVariables: Mapping[str, str] = ...,
) -> UpdateStageResponseTypeDef: # (4)
...
- See AccessLogSettingsTypeDef
- See RouteSettingsTypeDef
- See RouteSettingsTypeDef
- See UpdateStageResponseTypeDef
# update_stage method usage example with argument unpacking
kwargs: UpdateStageRequestRequestTypeDef = { # (1)
"ApiId": ...,
"StageName": ...,
}
parent.update_stage(**kwargs)
update_vpc_link#
Updates a VPC link.
Type annotations and code completion for boto3.client("apigatewayv2").update_vpc_link
method.
boto3 documentation
# update_vpc_link method definition
def update_vpc_link(
self,
*,
VpcLinkId: str,
Name: str = ...,
) -> UpdateVpcLinkResponseTypeDef: # (1)
...
# update_vpc_link method usage example with argument unpacking
kwargs: UpdateVpcLinkRequestRequestTypeDef = { # (1)
"VpcLinkId": ...,
}
parent.update_vpc_link(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("apigatewayv2").get_paginator
method with overloads.
client.get_paginator("get_apis")
-> GetApisPaginatorclient.get_paginator("get_authorizers")
-> GetAuthorizersPaginatorclient.get_paginator("get_deployments")
-> GetDeploymentsPaginatorclient.get_paginator("get_domain_names")
-> GetDomainNamesPaginatorclient.get_paginator("get_integration_responses")
-> GetIntegrationResponsesPaginatorclient.get_paginator("get_integrations")
-> GetIntegrationsPaginatorclient.get_paginator("get_models")
-> GetModelsPaginatorclient.get_paginator("get_route_responses")
-> GetRouteResponsesPaginatorclient.get_paginator("get_routes")
-> GetRoutesPaginatorclient.get_paginator("get_stages")
-> GetStagesPaginator