libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ApiGatewayV2.Lens

Description

 
Synopsis

Operations

CreateApi

createApi_credentialsArn :: Lens' CreateApi (Maybe Text) Source #

This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null. Currently, this property is not used for HTTP integrations. Supported only for HTTP APIs.

createApi_disableExecuteApiEndpoint :: Lens' CreateApi (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

createApi_version :: Lens' CreateApi (Maybe Text) Source #

A version identifier for the API.

createApi_apiKeySelectionExpression :: Lens' CreateApi (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

createApi_corsConfiguration :: Lens' CreateApi (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs. See Configuring CORS for more information.

createApi_routeSelectionExpression :: Lens' CreateApi (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

createApi_disableSchemaValidation :: Lens' CreateApi (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

createApi_description :: Lens' CreateApi (Maybe Text) Source #

The description of the API.

createApi_routeKey :: Lens' CreateApi (Maybe Text) Source #

This property is part of quick create. If you don't specify a routeKey, a default route of $default is created. The $default route acts as a catch-all for any request made to your API, for a particular stage. The $default route key can't be modified. You can add routes after creating the API, and you can update the route keys of additional routes. Supported only for HTTP APIs.

createApi_tags :: Lens' CreateApi (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

createApi_target :: Lens' CreateApi (Maybe Text) Source #

This property is part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. Supported only for HTTP APIs.

createApi_name :: Lens' CreateApi Text Source #

The name of the API.

createApiResponse_disableExecuteApiEndpoint :: Lens' CreateApiResponse (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

createApiResponse_apiEndpoint :: Lens' CreateApiResponse (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

createApiResponse_warnings :: Lens' CreateApiResponse (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

createApiResponse_createdDate :: Lens' CreateApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

createApiResponse_version :: Lens' CreateApiResponse (Maybe Text) Source #

A version identifier for the API.

createApiResponse_apiGatewayManaged :: Lens' CreateApiResponse (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

createApiResponse_apiKeySelectionExpression :: Lens' CreateApiResponse (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

createApiResponse_corsConfiguration :: Lens' CreateApiResponse (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

createApiResponse_routeSelectionExpression :: Lens' CreateApiResponse (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

createApiResponse_importInfo :: Lens' CreateApiResponse (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

createApiResponse_disableSchemaValidation :: Lens' CreateApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

createApiResponse_tags :: Lens' CreateApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

createApiResponse_httpStatus :: Lens' CreateApiResponse Int Source #

The response's http status code.

GetDeployments

getDeployments_nextToken :: Lens' GetDeployments (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getDeployments_maxResults :: Lens' GetDeployments (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getDeploymentsResponse_nextToken :: Lens' GetDeploymentsResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

DeleteAccessLogSettings

deleteAccessLogSettings_stageName :: Lens' DeleteAccessLogSettings Text Source #

The stage name. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

GetRouteResponses

getRouteResponses_nextToken :: Lens' GetRouteResponses (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getRouteResponses_maxResults :: Lens' GetRouteResponses (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getRouteResponsesResponse_nextToken :: Lens' GetRouteResponsesResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

GetDeployment

getDeploymentResponse_autoDeployed :: Lens' GetDeploymentResponse (Maybe Bool) Source #

Specifies whether a deployment was automatically released.

getDeploymentResponse_deploymentStatusMessage :: Lens' GetDeploymentResponse (Maybe Text) Source #

May contain additional feedback on the status of an API deployment.

getDeploymentResponse_createdDate :: Lens' GetDeploymentResponse (Maybe UTCTime) Source #

The date and time when the Deployment resource was created.

getDeploymentResponse_deploymentStatus :: Lens' GetDeploymentResponse (Maybe DeploymentStatus) Source #

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

GetTags

getTags_resourceArn :: Lens' GetTags Text Source #

The resource ARN for the tag.

getTagsResponse_httpStatus :: Lens' GetTagsResponse Int Source #

The response's http status code.

GetDomainNames

getDomainNames_nextToken :: Lens' GetDomainNames (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getDomainNames_maxResults :: Lens' GetDomainNames (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getDomainNamesResponse_nextToken :: Lens' GetDomainNamesResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

ReimportApi

reimportApi_basepath :: Lens' ReimportApi (Maybe Text) Source #

Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.

reimportApi_failOnWarnings :: Lens' ReimportApi (Maybe Bool) Source #

Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.

reimportApi_body :: Lens' ReimportApi Text Source #

The OpenAPI definition. Supported only for HTTP APIs.

reimportApiResponse_disableExecuteApiEndpoint :: Lens' ReimportApiResponse (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

reimportApiResponse_apiEndpoint :: Lens' ReimportApiResponse (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

reimportApiResponse_warnings :: Lens' ReimportApiResponse (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

reimportApiResponse_createdDate :: Lens' ReimportApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

reimportApiResponse_apiGatewayManaged :: Lens' ReimportApiResponse (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

reimportApiResponse_apiKeySelectionExpression :: Lens' ReimportApiResponse (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

reimportApiResponse_corsConfiguration :: Lens' ReimportApiResponse (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

reimportApiResponse_routeSelectionExpression :: Lens' ReimportApiResponse (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

reimportApiResponse_importInfo :: Lens' ReimportApiResponse (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

reimportApiResponse_disableSchemaValidation :: Lens' ReimportApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

reimportApiResponse_tags :: Lens' ReimportApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

GetModels

getModels_nextToken :: Lens' GetModels (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getModels_maxResults :: Lens' GetModels (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getModels_apiId :: Lens' GetModels Text Source #

The API identifier.

getModelsResponse_items :: Lens' GetModelsResponse (Maybe [Model]) Source #

The elements from this collection.

getModelsResponse_nextToken :: Lens' GetModelsResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getModelsResponse_httpStatus :: Lens' GetModelsResponse Int Source #

The response's http status code.

CreateIntegration

createIntegration_requestTemplates :: Lens' CreateIntegration (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

createIntegration_integrationSubtype :: Lens' CreateIntegration (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

createIntegration_credentialsArn :: Lens' CreateIntegration (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

createIntegration_integrationUri :: Lens' CreateIntegration (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

createIntegration_requestParameters :: Lens' CreateIntegration (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API integrations without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to the backend. The key should follow the pattern <action>:<header|querystring|path>.<location> where action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

createIntegration_connectionId :: Lens' CreateIntegration (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

createIntegration_passthroughBehavior :: Lens' CreateIntegration (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

createIntegration_integrationMethod :: Lens' CreateIntegration (Maybe Text) Source #

Specifies the integration's HTTP method type.

createIntegration_tlsConfig :: Lens' CreateIntegration (Maybe TlsConfigInput) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

createIntegration_payloadFormatVersion :: Lens' CreateIntegration (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

createIntegration_templateSelectionExpression :: Lens' CreateIntegration (Maybe Text) Source #

The template selection expression for the integration.

createIntegration_timeoutInMillis :: Lens' CreateIntegration (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

createIntegration_contentHandlingStrategy :: Lens' CreateIntegration (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

createIntegration_description :: Lens' CreateIntegration (Maybe Text) Source #

The description of the integration.

createIntegration_connectionType :: Lens' CreateIntegration (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

createIntegration_responseParameters :: Lens' CreateIntegration (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

createIntegration_integrationType :: Lens' CreateIntegration IntegrationType Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration. For HTTP API private integrations, use an HTTP_PROXY integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

createIntegrationResponse'_integrationResponseSelectionExpression :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

The integration response selection expression for the integration. Supported only for WebSocket APIs. See Integration Response Selection Expressions.

createIntegrationResponse'_requestTemplates :: Lens' CreateIntegrationResponse' (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

createIntegrationResponse'_integrationSubtype :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

createIntegrationResponse'_credentialsArn :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

createIntegrationResponse'_integrationUri :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

createIntegrationResponse'_requestParameters :: Lens' CreateIntegrationResponse' (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

createIntegrationResponse'_connectionId :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

createIntegrationResponse'_passthroughBehavior :: Lens' CreateIntegrationResponse' (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

createIntegrationResponse'_tlsConfig :: Lens' CreateIntegrationResponse' (Maybe TlsConfig) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

createIntegrationResponse'_payloadFormatVersion :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

createIntegrationResponse'_templateSelectionExpression :: Lens' CreateIntegrationResponse' (Maybe Text) Source #

The template selection expression for the integration. Supported only for WebSocket APIs.

createIntegrationResponse'_timeoutInMillis :: Lens' CreateIntegrationResponse' (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

createIntegrationResponse'_apiGatewayManaged :: Lens' CreateIntegrationResponse' (Maybe Bool) Source #

Specifies whether an integration is managed by API Gateway. If you created an API using using quick create, the resulting integration is managed by API Gateway. You can update a managed integration, but you can't delete it.

createIntegrationResponse'_contentHandlingStrategy :: Lens' CreateIntegrationResponse' (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

createIntegrationResponse'_integrationType :: Lens' CreateIntegrationResponse' (Maybe IntegrationType) Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

createIntegrationResponse'_connectionType :: Lens' CreateIntegrationResponse' (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

createIntegrationResponse'_responseParameters :: Lens' CreateIntegrationResponse' (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

DeleteStage

deleteStage_stageName :: Lens' DeleteStage Text Source #

The stage name. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

UpdateStage

updateStage_deploymentId :: Lens' UpdateStage (Maybe Text) Source #

The deployment identifier for the API stage. Can't be updated if autoDeploy is enabled.

updateStage_accessLogSettings :: Lens' UpdateStage (Maybe AccessLogSettings) Source #

Settings for logging access in this stage.

updateStage_clientCertificateId :: Lens' UpdateStage (Maybe Text) Source #

The identifier of a client certificate for a Stage.

updateStage_stageVariables :: Lens' UpdateStage (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

updateStage_autoDeploy :: Lens' UpdateStage (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

updateStage_defaultRouteSettings :: Lens' UpdateStage (Maybe RouteSettings) Source #

The default route settings for the stage.

updateStage_description :: Lens' UpdateStage (Maybe Text) Source #

The description for the API stage.

updateStage_stageName :: Lens' UpdateStage Text Source #

The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.

updateStageResponse_lastDeploymentStatusMessage :: Lens' UpdateStageResponse (Maybe Text) Source #

Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.

updateStageResponse_deploymentId :: Lens' UpdateStageResponse (Maybe Text) Source #

The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.

updateStageResponse_clientCertificateId :: Lens' UpdateStageResponse (Maybe Text) Source #

The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

updateStageResponse_stageVariables :: Lens' UpdateStageResponse (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

updateStageResponse_autoDeploy :: Lens' UpdateStageResponse (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

updateStageResponse_createdDate :: Lens' UpdateStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was created.

updateStageResponse_apiGatewayManaged :: Lens' UpdateStageResponse (Maybe Bool) Source #

Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.

updateStageResponse_lastUpdatedDate :: Lens' UpdateStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was last updated.

updateStageResponse_tags :: Lens' UpdateStageResponse (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

DeleteRouteSettings

deleteRouteSettings_stageName :: Lens' DeleteRouteSettings Text Source #

The stage name. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

CreateDeployment

createDeployment_stageName :: Lens' CreateDeployment (Maybe Text) Source #

The name of the Stage resource for the Deployment resource to create.

createDeployment_description :: Lens' CreateDeployment (Maybe Text) Source #

The description for the deployment resource.

createDeploymentResponse_autoDeployed :: Lens' CreateDeploymentResponse (Maybe Bool) Source #

Specifies whether a deployment was automatically released.

createDeploymentResponse_deploymentStatusMessage :: Lens' CreateDeploymentResponse (Maybe Text) Source #

May contain additional feedback on the status of an API deployment.

createDeploymentResponse_createdDate :: Lens' CreateDeploymentResponse (Maybe UTCTime) Source #

The date and time when the Deployment resource was created.

createDeploymentResponse_deploymentStatus :: Lens' CreateDeploymentResponse (Maybe DeploymentStatus) Source #

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

DeleteRoute

UpdateRoute

updateRoute_authorizationScopes :: Lens' UpdateRoute (Maybe [Text]) Source #

The authorization scopes supported by this route.

updateRoute_modelSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

updateRoute_requestModels :: Lens' UpdateRoute (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

updateRoute_routeResponseSelectionExpression :: Lens' UpdateRoute (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

updateRoute_requestParameters :: Lens' UpdateRoute (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

updateRoute_authorizerId :: Lens' UpdateRoute (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

updateRoute_operationName :: Lens' UpdateRoute (Maybe Text) Source #

The operation name for the route.

updateRoute_authorizationType :: Lens' UpdateRoute (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

updateRoute_apiKeyRequired :: Lens' UpdateRoute (Maybe Bool) Source #

Specifies whether an API key is required for the route. Supported only for WebSocket APIs.

updateRoute_routeKey :: Lens' UpdateRoute (Maybe Text) Source #

The route key for the route.

updateRoute_target :: Lens' UpdateRoute (Maybe Text) Source #

The target for the route.

updateRouteResponse'_authorizationScopes :: Lens' UpdateRouteResponse' (Maybe [Text]) Source #

A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

updateRouteResponse'_modelSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

updateRouteResponse'_requestModels :: Lens' UpdateRouteResponse' (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

updateRouteResponse'_routeResponseSelectionExpression :: Lens' UpdateRouteResponse' (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

updateRouteResponse'_requestParameters :: Lens' UpdateRouteResponse' (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

updateRouteResponse'_authorizerId :: Lens' UpdateRouteResponse' (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

updateRouteResponse'_apiGatewayManaged :: Lens' UpdateRouteResponse' (Maybe Bool) Source #

Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.

updateRouteResponse'_authorizationType :: Lens' UpdateRouteResponse' (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

updateRouteResponse'_apiKeyRequired :: Lens' UpdateRouteResponse' (Maybe Bool) Source #

Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

GetVpcLinks

getVpcLinks_nextToken :: Lens' GetVpcLinks (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getVpcLinks_maxResults :: Lens' GetVpcLinks (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getVpcLinksResponse_nextToken :: Lens' GetVpcLinksResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

GetIntegrationResponses

getIntegrationResponses_nextToken :: Lens' GetIntegrationResponses (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getIntegrationResponses_maxResults :: Lens' GetIntegrationResponses (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getIntegrationResponsesResponse_nextToken :: Lens' GetIntegrationResponsesResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

GetIntegration

getIntegrationResponse'_integrationResponseSelectionExpression :: Lens' GetIntegrationResponse' (Maybe Text) Source #

The integration response selection expression for the integration. Supported only for WebSocket APIs. See Integration Response Selection Expressions.

getIntegrationResponse'_requestTemplates :: Lens' GetIntegrationResponse' (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

getIntegrationResponse'_integrationSubtype :: Lens' GetIntegrationResponse' (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

getIntegrationResponse'_credentialsArn :: Lens' GetIntegrationResponse' (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

getIntegrationResponse'_integrationUri :: Lens' GetIntegrationResponse' (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

getIntegrationResponse'_integrationId :: Lens' GetIntegrationResponse' (Maybe Text) Source #

Represents the identifier of an integration.

getIntegrationResponse'_requestParameters :: Lens' GetIntegrationResponse' (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

getIntegrationResponse'_connectionId :: Lens' GetIntegrationResponse' (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

getIntegrationResponse'_passthroughBehavior :: Lens' GetIntegrationResponse' (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

getIntegrationResponse'_tlsConfig :: Lens' GetIntegrationResponse' (Maybe TlsConfig) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

getIntegrationResponse'_payloadFormatVersion :: Lens' GetIntegrationResponse' (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

getIntegrationResponse'_templateSelectionExpression :: Lens' GetIntegrationResponse' (Maybe Text) Source #

The template selection expression for the integration. Supported only for WebSocket APIs.

getIntegrationResponse'_timeoutInMillis :: Lens' GetIntegrationResponse' (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

getIntegrationResponse'_apiGatewayManaged :: Lens' GetIntegrationResponse' (Maybe Bool) Source #

Specifies whether an integration is managed by API Gateway. If you created an API using using quick create, the resulting integration is managed by API Gateway. You can update a managed integration, but you can't delete it.

getIntegrationResponse'_contentHandlingStrategy :: Lens' GetIntegrationResponse' (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

getIntegrationResponse'_integrationType :: Lens' GetIntegrationResponse' (Maybe IntegrationType) Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

getIntegrationResponse'_description :: Lens' GetIntegrationResponse' (Maybe Text) Source #

Represents the description of an integration.

getIntegrationResponse'_connectionType :: Lens' GetIntegrationResponse' (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

getIntegrationResponse'_responseParameters :: Lens' GetIntegrationResponse' (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

DeleteDeployment

UpdateDeployment

updateDeployment_description :: Lens' UpdateDeployment (Maybe Text) Source #

The description for the deployment resource.

updateDeploymentResponse_autoDeployed :: Lens' UpdateDeploymentResponse (Maybe Bool) Source #

Specifies whether a deployment was automatically released.

updateDeploymentResponse_deploymentStatusMessage :: Lens' UpdateDeploymentResponse (Maybe Text) Source #

May contain additional feedback on the status of an API deployment.

updateDeploymentResponse_createdDate :: Lens' UpdateDeploymentResponse (Maybe UTCTime) Source #

The date and time when the Deployment resource was created.

updateDeploymentResponse_deploymentStatus :: Lens' UpdateDeploymentResponse (Maybe DeploymentStatus) Source #

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

DeleteRouteResponse

UpdateRouteResponse

updateRouteResponse_modelSelectionExpression :: Lens' UpdateRouteResponse (Maybe Text) Source #

The model selection expression for the route response. Supported only for WebSocket APIs.

updateRouteResponse_responseModels :: Lens' UpdateRouteResponse (Maybe (HashMap Text Text)) Source #

The response models for the route response.

updateRouteResponseResponse_modelSelectionExpression :: Lens' UpdateRouteResponseResponse (Maybe Text) Source #

Represents the model selection expression of a route response. Supported only for WebSocket APIs.

updateRouteResponseResponse_routeResponseKey :: Lens' UpdateRouteResponseResponse (Maybe Text) Source #

Represents the route response key of a route response.

GetVpcLink

getVpcLink_vpcLinkId :: Lens' GetVpcLink Text Source #

The ID of the VPC link.

getVpcLinkResponse_securityGroupIds :: Lens' GetVpcLinkResponse (Maybe [Text]) Source #

A list of security group IDs for the VPC link.

getVpcLinkResponse_subnetIds :: Lens' GetVpcLinkResponse (Maybe [Text]) Source #

A list of subnet IDs to include in the VPC link.

getVpcLinkResponse_createdDate :: Lens' GetVpcLinkResponse (Maybe UTCTime) Source #

The timestamp when the VPC link was created.

getVpcLinkResponse_vpcLinkStatusMessage :: Lens' GetVpcLinkResponse (Maybe Text) Source #

A message summarizing the cause of the status of the VPC link.

ResetAuthorizersCache

resetAuthorizersCache_stageName :: Lens' ResetAuthorizersCache Text Source #

The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.

CreateModel

createModel_description :: Lens' CreateModel (Maybe Text) Source #

The description of the model.

createModel_contentType :: Lens' CreateModel (Maybe Text) Source #

The content-type for the model, for example, "application/json".

createModel_schema :: Lens' CreateModel Text Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

createModel_name :: Lens' CreateModel Text Source #

The name of the model. Must be alphanumeric.

createModelResponse_schema :: Lens' CreateModelResponse (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

createModelResponse_name :: Lens' CreateModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

createModelResponse_contentType :: Lens' CreateModelResponse (Maybe Text) Source #

The content-type for the model, for example, "application/json".

GetIntegrationResponse

getIntegrationResponseResponse_templateSelectionExpression :: Lens' GetIntegrationResponseResponse (Maybe Text) Source #

The template selection expressions for the integration response.

getIntegrationResponseResponse_contentHandlingStrategy :: Lens' GetIntegrationResponseResponse (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

getIntegrationResponseResponse_responseTemplates :: Lens' GetIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

getIntegrationResponseResponse_responseParameters :: Lens' GetIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

CreateDomainName

createDomainName_mutualTlsAuthentication :: Lens' CreateDomainName (Maybe MutualTlsAuthenticationInput) Source #

The mutual TLS authentication configuration for a custom domain name.

createDomainName_tags :: Lens' CreateDomainName (Maybe (HashMap Text Text)) Source #

The collection of tags associated with a domain name.

createDomainNameResponse_mutualTlsAuthentication :: Lens' CreateDomainNameResponse (Maybe MutualTlsAuthentication) Source #

The mutual TLS authentication configuration for a custom domain name.

createDomainNameResponse_tags :: Lens' CreateDomainNameResponse (Maybe (HashMap Text Text)) Source #

The collection of tags associated with a domain name.

DeleteModel

UpdateModel

updateModel_schema :: Lens' UpdateModel (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

updateModel_name :: Lens' UpdateModel (Maybe Text) Source #

The name of the model.

updateModel_description :: Lens' UpdateModel (Maybe Text) Source #

The description of the model.

updateModel_contentType :: Lens' UpdateModel (Maybe Text) Source #

The content-type for the model, for example, "application/json".

updateModelResponse_schema :: Lens' UpdateModelResponse (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

updateModelResponse_name :: Lens' UpdateModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

updateModelResponse_contentType :: Lens' UpdateModelResponse (Maybe Text) Source #

The content-type for the model, for example, "application/json".

CreateRouteResponse

createRouteResponse_modelSelectionExpression :: Lens' CreateRouteResponse (Maybe Text) Source #

The model selection expression for the route response. Supported only for WebSocket APIs.

createRouteResponse_responseModels :: Lens' CreateRouteResponse (Maybe (HashMap Text Text)) Source #

The response models for the route response.

createRouteResponseResponse_modelSelectionExpression :: Lens' CreateRouteResponseResponse (Maybe Text) Source #

Represents the model selection expression of a route response. Supported only for WebSocket APIs.

createRouteResponseResponse_routeResponseKey :: Lens' CreateRouteResponseResponse (Maybe Text) Source #

Represents the route response key of a route response.

GetStages

getStages_nextToken :: Lens' GetStages (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getStages_maxResults :: Lens' GetStages (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getStages_apiId :: Lens' GetStages Text Source #

The API identifier.

getStagesResponse_items :: Lens' GetStagesResponse (Maybe [Stage]) Source #

The elements from this collection.

getStagesResponse_nextToken :: Lens' GetStagesResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getStagesResponse_httpStatus :: Lens' GetStagesResponse Int Source #

The response's http status code.

GetModel

getModel_apiId :: Lens' GetModel Text Source #

The API identifier.

getModelResponse_schema :: Lens' GetModelResponse (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

getModelResponse_name :: Lens' GetModelResponse (Maybe Text) Source #

The name of the model. Must be alphanumeric.

getModelResponse_contentType :: Lens' GetModelResponse (Maybe Text) Source #

The content-type for the model, for example, "application/json".

getModelResponse_httpStatus :: Lens' GetModelResponse Int Source #

The response's http status code.

GetApiMappings

getApiMappings_nextToken :: Lens' GetApiMappings (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getApiMappings_maxResults :: Lens' GetApiMappings (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getApiMappingsResponse_nextToken :: Lens' GetApiMappingsResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

CreateIntegrationResponse

createIntegrationResponse_templateSelectionExpression :: Lens' CreateIntegrationResponse (Maybe Text) Source #

The template selection expression for the integration response. Supported only for WebSocket APIs.

createIntegrationResponse_contentHandlingStrategy :: Lens' CreateIntegrationResponse (Maybe ContentHandlingStrategy) Source #

Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

createIntegrationResponse_responseTemplates :: Lens' CreateIntegrationResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

createIntegrationResponse_responseParameters :: Lens' CreateIntegrationResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where {name} is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where {name} is a valid and unique response header name and {JSON-expression} is a valid JSON expression without the $ prefix.

createIntegrationResponseResponse_contentHandlingStrategy :: Lens' CreateIntegrationResponseResponse (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

createIntegrationResponseResponse_responseTemplates :: Lens' CreateIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

createIntegrationResponseResponse_responseParameters :: Lens' CreateIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

GetDomainName

getDomainNameResponse_mutualTlsAuthentication :: Lens' GetDomainNameResponse (Maybe MutualTlsAuthentication) Source #

The mutual TLS authentication configuration for a custom domain name.

getDomainNameResponse_tags :: Lens' GetDomainNameResponse (Maybe (HashMap Text Text)) Source #

The collection of tags associated with a domain name.

CreateVpcLink

createVpcLink_securityGroupIds :: Lens' CreateVpcLink (Maybe [Text]) Source #

A list of security group IDs for the VPC link.

createVpcLink_subnetIds :: Lens' CreateVpcLink [Text] Source #

A list of subnet IDs to include in the VPC link.

createVpcLink_name :: Lens' CreateVpcLink Text Source #

The name of the VPC link.

createVpcLinkResponse_securityGroupIds :: Lens' CreateVpcLinkResponse (Maybe [Text]) Source #

A list of security group IDs for the VPC link.

createVpcLinkResponse_subnetIds :: Lens' CreateVpcLinkResponse (Maybe [Text]) Source #

A list of subnet IDs to include in the VPC link.

createVpcLinkResponse_createdDate :: Lens' CreateVpcLinkResponse (Maybe UTCTime) Source #

The timestamp when the VPC link was created.

createVpcLinkResponse_vpcLinkStatusMessage :: Lens' CreateVpcLinkResponse (Maybe Text) Source #

A message summarizing the cause of the status of the VPC link.

GetAuthorizers

getAuthorizers_nextToken :: Lens' GetAuthorizers (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getAuthorizers_maxResults :: Lens' GetAuthorizers (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getAuthorizersResponse_nextToken :: Lens' GetAuthorizersResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

GetRouteResponse

getRouteResponseResponse_modelSelectionExpression :: Lens' GetRouteResponseResponse (Maybe Text) Source #

Represents the model selection expression of a route response. Supported only for WebSocket APIs.

getRouteResponseResponse_responseModels :: Lens' GetRouteResponseResponse (Maybe (HashMap Text Text)) Source #

Represents the response models of a route response.

getRouteResponseResponse_routeResponseId :: Lens' GetRouteResponseResponse (Maybe Text) Source #

Represents the identifier of a route response.

getRouteResponseResponse_routeResponseKey :: Lens' GetRouteResponseResponse (Maybe Text) Source #

Represents the route response key of a route response.

ExportApi

exportApi_exportVersion :: Lens' ExportApi (Maybe Text) Source #

The version of the API Gateway export algorithm. API Gateway uses the latest version by default. Currently, the only supported version is 1.0.

exportApi_stageName :: Lens' ExportApi (Maybe Text) Source #

The name of the API stage to export. If you don't specify this property, a representation of the latest API configuration is exported.

exportApi_includeExtensions :: Lens' ExportApi (Maybe Bool) Source #

Specifies whether to include API Gateway extensions in the exported API definition. API Gateway extensions are included by default.

exportApi_specification :: Lens' ExportApi Text Source #

The version of the API specification to use. OAS30, for OpenAPI 3.0, is the only supported value.

exportApi_outputType :: Lens' ExportApi Text Source #

The output type of the exported definition file. Valid values are JSON and YAML.

exportApi_apiId :: Lens' ExportApi Text Source #

The API identifier.

exportApiResponse_httpStatus :: Lens' ExportApiResponse Int Source #

The response's http status code.

GetRoutes

getRoutes_nextToken :: Lens' GetRoutes (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getRoutes_maxResults :: Lens' GetRoutes (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getRoutes_apiId :: Lens' GetRoutes Text Source #

The API identifier.

getRoutesResponse_items :: Lens' GetRoutesResponse (Maybe [Route]) Source #

The elements from this collection.

getRoutesResponse_nextToken :: Lens' GetRoutesResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getRoutesResponse_httpStatus :: Lens' GetRoutesResponse Int Source #

The response's http status code.

DeleteCorsConfiguration

DeleteVpcLink

UpdateVpcLink

updateVpcLink_name :: Lens' UpdateVpcLink (Maybe Text) Source #

The name of the VPC link.

updateVpcLinkResponse_securityGroupIds :: Lens' UpdateVpcLinkResponse (Maybe [Text]) Source #

A list of security group IDs for the VPC link.

updateVpcLinkResponse_subnetIds :: Lens' UpdateVpcLinkResponse (Maybe [Text]) Source #

A list of subnet IDs to include in the VPC link.

updateVpcLinkResponse_createdDate :: Lens' UpdateVpcLinkResponse (Maybe UTCTime) Source #

The timestamp when the VPC link was created.

updateVpcLinkResponse_vpcLinkStatusMessage :: Lens' UpdateVpcLinkResponse (Maybe Text) Source #

A message summarizing the cause of the status of the VPC link.

DeleteIntegrationResponse

UpdateIntegrationResponse

updateIntegrationResponse_templateSelectionExpression :: Lens' UpdateIntegrationResponse (Maybe Text) Source #

The template selection expression for the integration response. Supported only for WebSocket APIs.

updateIntegrationResponse_contentHandlingStrategy :: Lens' UpdateIntegrationResponse (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

updateIntegrationResponse_responseTemplates :: Lens' UpdateIntegrationResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

updateIntegrationResponse_responseParameters :: Lens' UpdateIntegrationResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name} , where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression} , where {name} is a valid and unique response header name and {JSON-expression} is a valid JSON expression without the $ prefix.

updateIntegrationResponseResponse_contentHandlingStrategy :: Lens' UpdateIntegrationResponseResponse (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

updateIntegrationResponseResponse_responseTemplates :: Lens' UpdateIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

updateIntegrationResponseResponse_responseParameters :: Lens' UpdateIntegrationResponseResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

DeleteIntegration

UpdateIntegration

updateIntegration_requestTemplates :: Lens' UpdateIntegration (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

updateIntegration_integrationSubtype :: Lens' UpdateIntegration (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

updateIntegration_credentialsArn :: Lens' UpdateIntegration (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

updateIntegration_integrationUri :: Lens' UpdateIntegration (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

updateIntegration_requestParameters :: Lens' UpdateIntegration (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API integrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to the backend. The key should follow the pattern <action>:<header|querystring|path>.<location> where action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

updateIntegration_connectionId :: Lens' UpdateIntegration (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

updateIntegration_passthroughBehavior :: Lens' UpdateIntegration (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

updateIntegration_integrationMethod :: Lens' UpdateIntegration (Maybe Text) Source #

Specifies the integration's HTTP method type.

updateIntegration_tlsConfig :: Lens' UpdateIntegration (Maybe TlsConfigInput) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

updateIntegration_payloadFormatVersion :: Lens' UpdateIntegration (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

updateIntegration_templateSelectionExpression :: Lens' UpdateIntegration (Maybe Text) Source #

The template selection expression for the integration.

updateIntegration_timeoutInMillis :: Lens' UpdateIntegration (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

updateIntegration_contentHandlingStrategy :: Lens' UpdateIntegration (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

updateIntegration_integrationType :: Lens' UpdateIntegration (Maybe IntegrationType) Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration. For HTTP API private integrations, use an HTTP_PROXY integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

updateIntegration_description :: Lens' UpdateIntegration (Maybe Text) Source #

The description of the integration

updateIntegration_connectionType :: Lens' UpdateIntegration (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

updateIntegration_responseParameters :: Lens' UpdateIntegration (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

updateIntegrationResponse'_integrationResponseSelectionExpression :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

The integration response selection expression for the integration. Supported only for WebSocket APIs. See Integration Response Selection Expressions.

updateIntegrationResponse'_requestTemplates :: Lens' UpdateIntegrationResponse' (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

updateIntegrationResponse'_integrationSubtype :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

updateIntegrationResponse'_credentialsArn :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

updateIntegrationResponse'_integrationUri :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

updateIntegrationResponse'_requestParameters :: Lens' UpdateIntegrationResponse' (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

updateIntegrationResponse'_connectionId :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

updateIntegrationResponse'_passthroughBehavior :: Lens' UpdateIntegrationResponse' (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

updateIntegrationResponse'_tlsConfig :: Lens' UpdateIntegrationResponse' (Maybe TlsConfig) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

updateIntegrationResponse'_payloadFormatVersion :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

updateIntegrationResponse'_templateSelectionExpression :: Lens' UpdateIntegrationResponse' (Maybe Text) Source #

The template selection expression for the integration. Supported only for WebSocket APIs.

updateIntegrationResponse'_timeoutInMillis :: Lens' UpdateIntegrationResponse' (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

updateIntegrationResponse'_apiGatewayManaged :: Lens' UpdateIntegrationResponse' (Maybe Bool) Source #

Specifies whether an integration is managed by API Gateway. If you created an API using using quick create, the resulting integration is managed by API Gateway. You can update a managed integration, but you can't delete it.

updateIntegrationResponse'_contentHandlingStrategy :: Lens' UpdateIntegrationResponse' (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

updateIntegrationResponse'_integrationType :: Lens' UpdateIntegrationResponse' (Maybe IntegrationType) Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

updateIntegrationResponse'_connectionType :: Lens' UpdateIntegrationResponse' (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

updateIntegrationResponse'_responseParameters :: Lens' UpdateIntegrationResponse' (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

GetRoute

getRoute_apiId :: Lens' GetRoute Text Source #

The API identifier.

getRouteResponse'_authorizationScopes :: Lens' GetRouteResponse' (Maybe [Text]) Source #

A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

getRouteResponse'_modelSelectionExpression :: Lens' GetRouteResponse' (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

getRouteResponse'_requestModels :: Lens' GetRouteResponse' (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

getRouteResponse'_routeResponseSelectionExpression :: Lens' GetRouteResponse' (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

getRouteResponse'_requestParameters :: Lens' GetRouteResponse' (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

getRouteResponse'_authorizerId :: Lens' GetRouteResponse' (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

getRouteResponse'_apiGatewayManaged :: Lens' GetRouteResponse' (Maybe Bool) Source #

Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.

getRouteResponse'_authorizationType :: Lens' GetRouteResponse' (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

getRouteResponse'_apiKeyRequired :: Lens' GetRouteResponse' (Maybe Bool) Source #

Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

getRouteResponse'_httpStatus :: Lens' GetRouteResponse' Int Source #

The response's http status code.

GetAuthorizer

getAuthorizerResponse_authorizerCredentialsArn :: Lens' GetAuthorizerResponse (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter. Supported only for REQUEST authorizers.

getAuthorizerResponse_identityValidationExpression :: Lens' GetAuthorizerResponse (Maybe Text) Source #

The validation expression does not apply to the REQUEST authorizer.

getAuthorizerResponse_enableSimpleResponses :: Lens' GetAuthorizerResponse (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

getAuthorizerResponse_authorizerUri :: Lens' GetAuthorizerResponse (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

getAuthorizerResponse_authorizerPayloadFormatVersion :: Lens' GetAuthorizerResponse (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

getAuthorizerResponse_jwtConfiguration :: Lens' GetAuthorizerResponse (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

getAuthorizerResponse_authorizerResultTtlInSeconds :: Lens' GetAuthorizerResponse (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

getAuthorizerResponse_identitySource :: Lens' GetAuthorizerResponse (Maybe [Text]) Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

getAuthorizerResponse_authorizerType :: Lens' GetAuthorizerResponse (Maybe AuthorizerType) Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

GetStage

getStage_stageName :: Lens' GetStage Text Source #

The stage name. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

getStage_apiId :: Lens' GetStage Text Source #

The API identifier.

getStageResponse_lastDeploymentStatusMessage :: Lens' GetStageResponse (Maybe Text) Source #

Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.

getStageResponse_deploymentId :: Lens' GetStageResponse (Maybe Text) Source #

The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.

getStageResponse_clientCertificateId :: Lens' GetStageResponse (Maybe Text) Source #

The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

getStageResponse_stageVariables :: Lens' GetStageResponse (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

getStageResponse_autoDeploy :: Lens' GetStageResponse (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

getStageResponse_createdDate :: Lens' GetStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was created.

getStageResponse_apiGatewayManaged :: Lens' GetStageResponse (Maybe Bool) Source #

Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.

getStageResponse_lastUpdatedDate :: Lens' GetStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was last updated.

getStageResponse_tags :: Lens' GetStageResponse (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

getStageResponse_httpStatus :: Lens' GetStageResponse Int Source #

The response's http status code.

GetApiMapping

ImportApi

importApi_basepath :: Lens' ImportApi (Maybe Text) Source #

Specifies how to interpret the base path of the API during import. Valid values are ignore, prepend, and split. The default value is ignore. To learn more, see Set the OpenAPI basePath Property. Supported only for HTTP APIs.

importApi_failOnWarnings :: Lens' ImportApi (Maybe Bool) Source #

Specifies whether to rollback the API creation when a warning is encountered. By default, API creation continues if a warning is encountered.

importApi_body :: Lens' ImportApi Text Source #

The OpenAPI definition. Supported only for HTTP APIs.

importApiResponse_disableExecuteApiEndpoint :: Lens' ImportApiResponse (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

importApiResponse_apiEndpoint :: Lens' ImportApiResponse (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

importApiResponse_warnings :: Lens' ImportApiResponse (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

importApiResponse_createdDate :: Lens' ImportApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

importApiResponse_version :: Lens' ImportApiResponse (Maybe Text) Source #

A version identifier for the API.

importApiResponse_apiGatewayManaged :: Lens' ImportApiResponse (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

importApiResponse_apiKeySelectionExpression :: Lens' ImportApiResponse (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

importApiResponse_corsConfiguration :: Lens' ImportApiResponse (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

importApiResponse_routeSelectionExpression :: Lens' ImportApiResponse (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

importApiResponse_importInfo :: Lens' ImportApiResponse (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

importApiResponse_disableSchemaValidation :: Lens' ImportApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

importApiResponse_tags :: Lens' ImportApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

importApiResponse_httpStatus :: Lens' ImportApiResponse Int Source #

The response's http status code.

GetApis

getApis_nextToken :: Lens' GetApis (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getApis_maxResults :: Lens' GetApis (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getApisResponse_items :: Lens' GetApisResponse (Maybe [Api]) Source #

The elements from this collection.

getApisResponse_nextToken :: Lens' GetApisResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getApisResponse_httpStatus :: Lens' GetApisResponse Int Source #

The response's http status code.

UpdateApiMapping

DeleteApiMapping

CreateRoute

createRoute_authorizationScopes :: Lens' CreateRoute (Maybe [Text]) Source #

The authorization scopes supported by this route.

createRoute_modelSelectionExpression :: Lens' CreateRoute (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

createRoute_requestModels :: Lens' CreateRoute (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

createRoute_routeResponseSelectionExpression :: Lens' CreateRoute (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

createRoute_requestParameters :: Lens' CreateRoute (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

createRoute_authorizerId :: Lens' CreateRoute (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

createRoute_operationName :: Lens' CreateRoute (Maybe Text) Source #

The operation name for the route.

createRoute_authorizationType :: Lens' CreateRoute (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

createRoute_apiKeyRequired :: Lens' CreateRoute (Maybe Bool) Source #

Specifies whether an API key is required for the route. Supported only for WebSocket APIs.

createRoute_target :: Lens' CreateRoute (Maybe Text) Source #

The target for the route.

createRoute_routeKey :: Lens' CreateRoute Text Source #

The route key for the route.

createRouteResponse'_authorizationScopes :: Lens' CreateRouteResponse' (Maybe [Text]) Source #

A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

createRouteResponse'_modelSelectionExpression :: Lens' CreateRouteResponse' (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

createRouteResponse'_requestModels :: Lens' CreateRouteResponse' (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

createRouteResponse'_routeResponseSelectionExpression :: Lens' CreateRouteResponse' (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

createRouteResponse'_requestParameters :: Lens' CreateRouteResponse' (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

createRouteResponse'_authorizerId :: Lens' CreateRouteResponse' (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

createRouteResponse'_apiGatewayManaged :: Lens' CreateRouteResponse' (Maybe Bool) Source #

Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.

createRouteResponse'_authorizationType :: Lens' CreateRouteResponse' (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

createRouteResponse'_apiKeyRequired :: Lens' CreateRouteResponse' (Maybe Bool) Source #

Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

CreateAuthorizer

createAuthorizer_authorizerCredentialsArn :: Lens' CreateAuthorizer (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter. Supported only for REQUEST authorizers.

createAuthorizer_enableSimpleResponses :: Lens' CreateAuthorizer (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. By default, a Lambda authorizer must return an IAM policy. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

createAuthorizer_authorizerUri :: Lens' CreateAuthorizer (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

createAuthorizer_authorizerPayloadFormatVersion :: Lens' CreateAuthorizer (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

createAuthorizer_jwtConfiguration :: Lens' CreateAuthorizer (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

createAuthorizer_authorizerResultTtlInSeconds :: Lens' CreateAuthorizer (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

createAuthorizer_authorizerType :: Lens' CreateAuthorizer AuthorizerType Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

createAuthorizer_identitySource :: Lens' CreateAuthorizer [Text] Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

createAuthorizerResponse_authorizerCredentialsArn :: Lens' CreateAuthorizerResponse (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter. Supported only for REQUEST authorizers.

createAuthorizerResponse_identityValidationExpression :: Lens' CreateAuthorizerResponse (Maybe Text) Source #

The validation expression does not apply to the REQUEST authorizer.

createAuthorizerResponse_enableSimpleResponses :: Lens' CreateAuthorizerResponse (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

createAuthorizerResponse_authorizerUri :: Lens' CreateAuthorizerResponse (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

createAuthorizerResponse_authorizerPayloadFormatVersion :: Lens' CreateAuthorizerResponse (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

createAuthorizerResponse_jwtConfiguration :: Lens' CreateAuthorizerResponse (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

createAuthorizerResponse_authorizerResultTtlInSeconds :: Lens' CreateAuthorizerResponse (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

createAuthorizerResponse_identitySource :: Lens' CreateAuthorizerResponse (Maybe [Text]) Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

createAuthorizerResponse_authorizerType :: Lens' CreateAuthorizerResponse (Maybe AuthorizerType) Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

UpdateAuthorizer

updateAuthorizer_authorizerCredentialsArn :: Lens' UpdateAuthorizer (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter.

updateAuthorizer_enableSimpleResponses :: Lens' UpdateAuthorizer (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. By default, a Lambda authorizer must return an IAM policy. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

updateAuthorizer_authorizerUri :: Lens' UpdateAuthorizer (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

updateAuthorizer_authorizerPayloadFormatVersion :: Lens' UpdateAuthorizer (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

updateAuthorizer_jwtConfiguration :: Lens' UpdateAuthorizer (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

updateAuthorizer_authorizerResultTtlInSeconds :: Lens' UpdateAuthorizer (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

updateAuthorizer_identitySource :: Lens' UpdateAuthorizer (Maybe [Text]) Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

updateAuthorizer_authorizerType :: Lens' UpdateAuthorizer (Maybe AuthorizerType) Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

updateAuthorizerResponse_authorizerCredentialsArn :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter. Supported only for REQUEST authorizers.

updateAuthorizerResponse_identityValidationExpression :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #

The validation expression does not apply to the REQUEST authorizer.

updateAuthorizerResponse_enableSimpleResponses :: Lens' UpdateAuthorizerResponse (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

updateAuthorizerResponse_authorizerUri :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

updateAuthorizerResponse_authorizerPayloadFormatVersion :: Lens' UpdateAuthorizerResponse (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

updateAuthorizerResponse_jwtConfiguration :: Lens' UpdateAuthorizerResponse (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

updateAuthorizerResponse_authorizerResultTtlInSeconds :: Lens' UpdateAuthorizerResponse (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

updateAuthorizerResponse_identitySource :: Lens' UpdateAuthorizerResponse (Maybe [Text]) Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

updateAuthorizerResponse_authorizerType :: Lens' UpdateAuthorizerResponse (Maybe AuthorizerType) Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

DeleteAuthorizer

CreateApiMapping

DeleteRouteRequestParameter

TagResource

tagResource_tags :: Lens' TagResource (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

tagResource_resourceArn :: Lens' TagResource Text Source #

The resource ARN for the tag.

CreateStage

createStage_deploymentId :: Lens' CreateStage (Maybe Text) Source #

The deployment identifier of the API stage.

createStage_routeSettings :: Lens' CreateStage (Maybe (HashMap Text RouteSettings)) Source #

Route settings for the stage, by routeKey.

createStage_accessLogSettings :: Lens' CreateStage (Maybe AccessLogSettings) Source #

Settings for logging access in this stage.

createStage_clientCertificateId :: Lens' CreateStage (Maybe Text) Source #

The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

createStage_stageVariables :: Lens' CreateStage (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

createStage_autoDeploy :: Lens' CreateStage (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

createStage_defaultRouteSettings :: Lens' CreateStage (Maybe RouteSettings) Source #

The default route settings for the stage.

createStage_description :: Lens' CreateStage (Maybe Text) Source #

The description for the API stage.

createStage_tags :: Lens' CreateStage (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

createStageResponse_lastDeploymentStatusMessage :: Lens' CreateStageResponse (Maybe Text) Source #

Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.

createStageResponse_deploymentId :: Lens' CreateStageResponse (Maybe Text) Source #

The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.

createStageResponse_clientCertificateId :: Lens' CreateStageResponse (Maybe Text) Source #

The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

createStageResponse_stageVariables :: Lens' CreateStageResponse (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

createStageResponse_autoDeploy :: Lens' CreateStageResponse (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

createStageResponse_createdDate :: Lens' CreateStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was created.

createStageResponse_apiGatewayManaged :: Lens' CreateStageResponse (Maybe Bool) Source #

Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.

createStageResponse_lastUpdatedDate :: Lens' CreateStageResponse (Maybe UTCTime) Source #

The timestamp when the stage was last updated.

createStageResponse_tags :: Lens' CreateStageResponse (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

GetIntegrations

getIntegrations_nextToken :: Lens' GetIntegrations (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

getIntegrations_maxResults :: Lens' GetIntegrations (Maybe Text) Source #

The maximum number of elements to be returned for this resource.

getIntegrationsResponse_nextToken :: Lens' GetIntegrationsResponse (Maybe Text) Source #

The next page of elements from this collection. Not valid for the last element of the collection.

UntagResource

untagResource_resourceArn :: Lens' UntagResource Text Source #

The resource ARN for the tag.

UpdateDomainName

updateDomainName_mutualTlsAuthentication :: Lens' UpdateDomainName (Maybe MutualTlsAuthenticationInput) Source #

The mutual TLS authentication configuration for a custom domain name.

updateDomainNameResponse_mutualTlsAuthentication :: Lens' UpdateDomainNameResponse (Maybe MutualTlsAuthentication) Source #

The mutual TLS authentication configuration for a custom domain name.

updateDomainNameResponse_tags :: Lens' UpdateDomainNameResponse (Maybe (HashMap Text Text)) Source #

The collection of tags associated with a domain name.

DeleteDomainName

GetApi

getApi_apiId :: Lens' GetApi Text Source #

The API identifier.

getApiResponse_disableExecuteApiEndpoint :: Lens' GetApiResponse (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

getApiResponse_apiEndpoint :: Lens' GetApiResponse (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

getApiResponse_warnings :: Lens' GetApiResponse (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

getApiResponse_createdDate :: Lens' GetApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

getApiResponse_version :: Lens' GetApiResponse (Maybe Text) Source #

A version identifier for the API.

getApiResponse_apiGatewayManaged :: Lens' GetApiResponse (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

getApiResponse_apiKeySelectionExpression :: Lens' GetApiResponse (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

getApiResponse_corsConfiguration :: Lens' GetApiResponse (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

getApiResponse_routeSelectionExpression :: Lens' GetApiResponse (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

getApiResponse_importInfo :: Lens' GetApiResponse (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

getApiResponse_disableSchemaValidation :: Lens' GetApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

getApiResponse_tags :: Lens' GetApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

getApiResponse_httpStatus :: Lens' GetApiResponse Int Source #

The response's http status code.

DeleteApi

deleteApi_apiId :: Lens' DeleteApi Text Source #

The API identifier.

UpdateApi

updateApi_credentialsArn :: Lens' UpdateApi (Maybe Text) Source #

This property is part of quick create. It specifies the credentials required for the integration, if any. For a Lambda integration, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, don't specify this parameter. Currently, this property is not used for HTTP integrations. If provided, this value replaces the credentials associated with the quick create integration. Supported only for HTTP APIs.

updateApi_disableExecuteApiEndpoint :: Lens' UpdateApi (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

updateApi_name :: Lens' UpdateApi (Maybe Text) Source #

The name of the API.

updateApi_version :: Lens' UpdateApi (Maybe Text) Source #

A version identifier for the API.

updateApi_apiKeySelectionExpression :: Lens' UpdateApi (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

updateApi_corsConfiguration :: Lens' UpdateApi (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

updateApi_routeSelectionExpression :: Lens' UpdateApi (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

updateApi_disableSchemaValidation :: Lens' UpdateApi (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

updateApi_description :: Lens' UpdateApi (Maybe Text) Source #

The description of the API.

updateApi_routeKey :: Lens' UpdateApi (Maybe Text) Source #

This property is part of quick create. If not specified, the route created using quick create is kept. Otherwise, this value replaces the route key of the quick create route. Additional routes may still be added after the API is updated. Supported only for HTTP APIs.

updateApi_target :: Lens' UpdateApi (Maybe Text) Source #

This property is part of quick create. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP_PROXY or AWS_PROXY, respectively. The value provided updates the integration URI and integration type. You can update a quick-created target, but you can't remove it from an API. Supported only for HTTP APIs.

updateApi_apiId :: Lens' UpdateApi Text Source #

The API identifier.

updateApiResponse_disableExecuteApiEndpoint :: Lens' UpdateApiResponse (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

updateApiResponse_apiEndpoint :: Lens' UpdateApiResponse (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

updateApiResponse_warnings :: Lens' UpdateApiResponse (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

updateApiResponse_createdDate :: Lens' UpdateApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

updateApiResponse_version :: Lens' UpdateApiResponse (Maybe Text) Source #

A version identifier for the API.

updateApiResponse_apiGatewayManaged :: Lens' UpdateApiResponse (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

updateApiResponse_apiKeySelectionExpression :: Lens' UpdateApiResponse (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

updateApiResponse_corsConfiguration :: Lens' UpdateApiResponse (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

updateApiResponse_routeSelectionExpression :: Lens' UpdateApiResponse (Maybe Text) Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

updateApiResponse_importInfo :: Lens' UpdateApiResponse (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

updateApiResponse_disableSchemaValidation :: Lens' UpdateApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

updateApiResponse_tags :: Lens' UpdateApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

updateApiResponse_httpStatus :: Lens' UpdateApiResponse Int Source #

The response's http status code.

GetModelTemplate

Types

AccessLogSettings

accessLogSettings_format :: Lens' AccessLogSettings (Maybe Text) Source #

A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId.

accessLogSettings_destinationArn :: Lens' AccessLogSettings (Maybe Text) Source #

The ARN of the CloudWatch Logs log group to receive access logs.

Api

api_apiId :: Lens' Api (Maybe Text) Source #

The API ID.

api_disableExecuteApiEndpoint :: Lens' Api (Maybe Bool) Source #

Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.

api_apiEndpoint :: Lens' Api (Maybe Text) Source #

The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.

api_warnings :: Lens' Api (Maybe [Text]) Source #

The warning messages reported when failonwarnings is turned on during API import.

api_createdDate :: Lens' Api (Maybe UTCTime) Source #

The timestamp when the API was created.

api_version :: Lens' Api (Maybe Text) Source #

A version identifier for the API.

api_apiGatewayManaged :: Lens' Api (Maybe Bool) Source #

Specifies whether an API is managed by API Gateway. You can't update or delete a managed API by using API Gateway. A managed API can be deleted only through the tooling or service that created it.

api_apiKeySelectionExpression :: Lens' Api (Maybe Text) Source #

An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

api_corsConfiguration :: Lens' Api (Maybe Cors) Source #

A CORS configuration. Supported only for HTTP APIs.

api_importInfo :: Lens' Api (Maybe [Text]) Source #

The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.

api_disableSchemaValidation :: Lens' Api (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

api_description :: Lens' Api (Maybe Text) Source #

The description of the API.

api_tags :: Lens' Api (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

api_routeSelectionExpression :: Lens' Api Text Source #

The route selection expression for the API. For HTTP APIs, the routeSelectionExpression must be ${request.method} ${request.path}. If not provided, this will be the default for HTTP APIs. This property is required for WebSocket APIs.

api_name :: Lens' Api Text Source #

The name of the API.

ApiMapping

apiMapping_apiMappingId :: Lens' ApiMapping (Maybe Text) Source #

The API mapping identifier.

Authorizer

authorizer_authorizerCredentialsArn :: Lens' Authorizer (Maybe Text) Source #

Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer. To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To use resource-based permissions on the Lambda function, don't specify this parameter. Supported only for REQUEST authorizers.

authorizer_identityValidationExpression :: Lens' Authorizer (Maybe Text) Source #

The validation expression does not apply to the REQUEST authorizer.

authorizer_enableSimpleResponses :: Lens' Authorizer (Maybe Bool) Source #

Specifies whether a Lambda authorizer returns a response in a simple format. If enabled, the Lambda authorizer can return a boolean value instead of an IAM policy. Supported only for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP APIs

authorizer_authorizerUri :: Lens' Authorizer (Maybe Text) Source #

The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI, for example, arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations. In general, the URI has this form: arn:aws:apigateway:{region}:lambda:path/{service_api} , where {region} is the same as the region hosting the Lambda function, path indicates that the remaining substring in the URI should be treated as the path to the resource, including the initial /. For Lambda functions, this is usually of the form /2015-03-31/functions/[FunctionARN]/invocations. Supported only for REQUEST authorizers.

authorizer_authorizerPayloadFormatVersion :: Lens' Authorizer (Maybe Text) Source #

Specifies the format of the payload sent to an HTTP API Lambda authorizer. Required for HTTP API Lambda authorizers. Supported values are 1.0 and 2.0. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

authorizer_jwtConfiguration :: Lens' Authorizer (Maybe JWTConfiguration) Source #

Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.

authorizer_authorizerId :: Lens' Authorizer (Maybe Text) Source #

The authorizer identifier.

authorizer_authorizerResultTtlInSeconds :: Lens' Authorizer (Maybe Natural) Source #

The time to live (TTL) for cached authorizer results, in seconds. If it equals 0, authorization caching is disabled. If it is greater than 0, API Gateway caches authorizer responses. The maximum value is 3600, or 1 hour. Supported only for HTTP API Lambda authorizers.

authorizer_identitySource :: Lens' Authorizer (Maybe [Text]) Source #

The identity source for which authorization is requested.

For a REQUEST authorizer, this is optional. The value is a set of one or more mapping expressions of the specified request parameters. The identity source can be headers, query string parameters, stage variables, and context parameters. For example, if an Auth header and a Name query string parameter are defined as identity sources, this value is route.request.header.Auth, route.request.querystring.Name for WebSocket APIs. For HTTP APIs, use selection expressions prefixed with $, for example, $request.header.Auth, $request.querystring.Name. These parameters are used to perform runtime validation for Lambda-based authorizers by verifying all of the identity-related request parameters are present in the request, not null, and non-empty. Only when this is true does the authorizer invoke the authorizer Lambda function. Otherwise, it returns a 401 Unauthorized response without calling the Lambda function. For HTTP APIs, identity sources are also used as the cache key when caching is enabled. To learn more, see Working with AWS Lambda authorizers for HTTP APIs.

For JWT, a single entry that specifies where to extract the JSON Web Token (JWT) from inbound requests. Currently only header-based and query parameter-based selections are supported, for example $request.header.Authorization.

authorizer_authorizerType :: Lens' Authorizer (Maybe AuthorizerType) Source #

The authorizer type. Specify REQUEST for a Lambda function using incoming request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP APIs).

authorizer_name :: Lens' Authorizer Text Source #

The name of the authorizer.

Cors

cors_maxAge :: Lens' Cors (Maybe Int) Source #

The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.

cors_allowMethods :: Lens' Cors (Maybe [Text]) Source #

Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.

cors_allowHeaders :: Lens' Cors (Maybe [Text]) Source #

Represents a collection of allowed headers. Supported only for HTTP APIs.

cors_exposeHeaders :: Lens' Cors (Maybe [Text]) Source #

Represents a collection of exposed headers. Supported only for HTTP APIs.

cors_allowOrigins :: Lens' Cors (Maybe [Text]) Source #

Represents a collection of allowed origins. Supported only for HTTP APIs.

cors_allowCredentials :: Lens' Cors (Maybe Bool) Source #

Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.

Deployment

deployment_deploymentId :: Lens' Deployment (Maybe Text) Source #

The identifier for the deployment.

deployment_autoDeployed :: Lens' Deployment (Maybe Bool) Source #

Specifies whether a deployment was automatically released.

deployment_deploymentStatusMessage :: Lens' Deployment (Maybe Text) Source #

May contain additional feedback on the status of an API deployment.

deployment_createdDate :: Lens' Deployment (Maybe UTCTime) Source #

The date and time when the Deployment resource was created.

deployment_deploymentStatus :: Lens' Deployment (Maybe DeploymentStatus) Source #

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

deployment_description :: Lens' Deployment (Maybe Text) Source #

The description for the deployment.

DomainName

domainName_mutualTlsAuthentication :: Lens' DomainName (Maybe MutualTlsAuthentication) Source #

The mutual TLS authentication configuration for a custom domain name.

domainName_apiMappingSelectionExpression :: Lens' DomainName (Maybe Text) Source #

The API mapping selection expression.

domainName_tags :: Lens' DomainName (Maybe (HashMap Text Text)) Source #

The collection of tags associated with a domain name.

domainName_domainName :: Lens' DomainName Text Source #

The name of the DomainName resource.

DomainNameConfiguration

domainNameConfiguration_ownershipVerificationCertificateArn :: Lens' DomainNameConfiguration (Maybe Text) Source #

The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn

domainNameConfiguration_certificateName :: Lens' DomainNameConfiguration (Maybe Text) Source #

The user-friendly name of the certificate that will be used by the edge-optimized endpoint for this domain name.

domainNameConfiguration_hostedZoneId :: Lens' DomainNameConfiguration (Maybe Text) Source #

The Amazon Route 53 Hosted Zone ID of the endpoint.

domainNameConfiguration_certificateArn :: Lens' DomainNameConfiguration (Maybe Text) Source #

An AWS-managed certificate that will be used by the edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.

domainNameConfiguration_securityPolicy :: Lens' DomainNameConfiguration (Maybe SecurityPolicy) Source #

The Transport Layer Security (TLS) version of the security policy for this domain name. The valid values are TLS_1_0 and TLS_1_2.

domainNameConfiguration_certificateUploadDate :: Lens' DomainNameConfiguration (Maybe UTCTime) Source #

The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.

domainNameConfiguration_domainNameStatusMessage :: Lens' DomainNameConfiguration (Maybe Text) Source #

An optional text message containing detailed information about status of the domain name migration.

domainNameConfiguration_domainNameStatus :: Lens' DomainNameConfiguration (Maybe DomainNameStatus) Source #

The status of the domain name migration. The valid values are AVAILABLE, UPDATING, PENDING_CERTIFICATE_REIMPORT, and PENDING_OWNERSHIP_VERIFICATION. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.

Integration

integration_integrationResponseSelectionExpression :: Lens' Integration (Maybe Text) Source #

The integration response selection expression for the integration. Supported only for WebSocket APIs. See Integration Response Selection Expressions.

integration_requestTemplates :: Lens' Integration (Maybe (HashMap Text Text)) Source #

Represents a map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client. The content type value is the key in this map, and the template (as a String) is the value. Supported only for WebSocket APIs.

integration_integrationSubtype :: Lens' Integration (Maybe Text) Source #

Supported only for HTTP API AWS_PROXY integrations. Specifies the AWS service action to invoke. To learn more, see Integration subtype reference.

integration_credentialsArn :: Lens' Integration (Maybe Text) Source #

Specifies the credentials required for the integration, if any. For AWS integrations, three options are available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::*:user/*. To use resource-based permissions on supported AWS services, specify null.

integration_integrationUri :: Lens' Integration (Maybe Text) Source #

For a Lambda integration, specify the URI of a Lambda function.

For an HTTP integration, specify a fully-qualified URL.

For an HTTP API private integration, specify the ARN of an Application Load Balancer listener, Network Load Balancer listener, or AWS Cloud Map service. If you specify the ARN of an AWS Cloud Map service, API Gateway uses DiscoverInstances to identify resources. You can use query parameters to target specific resources. To learn more, see DiscoverInstances. For private integrations, all resources must be owned by the same AWS account.

integration_integrationId :: Lens' Integration (Maybe Text) Source #

Represents the identifier of an integration.

integration_requestParameters :: Lens' Integration (Maybe (HashMap Text Text)) Source #

For WebSocket APIs, a key-value map specifying request parameters that are passed from the method request to the backend. The key is an integration request parameter name and the associated value is a method request parameter value or static value that must be enclosed within single quotes and pre-encoded as required by the backend. The method request parameter value must match the pattern of method.request.{location}.{name} , where {location} is querystring, path, or header; and {name} must be a valid and unique method request parameter name.

For HTTP API integrations with a specified integrationSubtype, request parameters are a key-value map specifying parameters that are passed to AWS_PROXY integrations. You can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Working with AWS service integrations for HTTP APIs.

For HTTP API itegrations, without a specified integrationSubtype request parameters are a key-value map specifying how to transform HTTP requests before sending them to backend integrations. The key should follow the pattern <action>:<header|querystring|path>.<location>. The action can be append, overwrite or remove. For values, you can provide static values, or map request data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

integration_connectionId :: Lens' Integration (Maybe Text) Source #

The ID of the VPC link for a private integration. Supported only for HTTP APIs.

integration_passthroughBehavior :: Lens' Integration (Maybe PassthroughBehavior) Source #

Specifies the pass-through behavior for incoming requests based on the Content-Type header in the request, and the available mapping templates specified as the requestTemplates property on the Integration resource. There are three valid values: WHEN_NO_MATCH, WHEN_NO_TEMPLATES, and NEVER. Supported only for WebSocket APIs.

WHEN_NO_MATCH passes the request body for unmapped content types through to the integration backend without transformation.

NEVER rejects unmapped content types with an HTTP 415 Unsupported Media Type response.

WHEN_NO_TEMPLATES allows pass-through when the integration has no content types mapped to templates. However, if there is at least one content type defined, unmapped content types will be rejected with the same HTTP 415 Unsupported Media Type response.

integration_integrationMethod :: Lens' Integration (Maybe Text) Source #

Specifies the integration's HTTP method type.

integration_tlsConfig :: Lens' Integration (Maybe TlsConfig) Source #

The TLS configuration for a private integration. If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

integration_payloadFormatVersion :: Lens' Integration (Maybe Text) Source #

Specifies the format of the payload sent to an integration. Required for HTTP APIs.

integration_templateSelectionExpression :: Lens' Integration (Maybe Text) Source #

The template selection expression for the integration. Supported only for WebSocket APIs.

integration_timeoutInMillis :: Lens' Integration (Maybe Natural) Source #

Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 seconds for WebSocket APIs and 30 seconds for HTTP APIs.

integration_apiGatewayManaged :: Lens' Integration (Maybe Bool) Source #

Specifies whether an integration is managed by API Gateway. If you created an API using using quick create, the resulting integration is managed by API Gateway. You can update a managed integration, but you can't delete it.

integration_contentHandlingStrategy :: Lens' Integration (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

integration_integrationType :: Lens' Integration (Maybe IntegrationType) Source #

The integration type of an integration. One of the following:

AWS: for integrating the route or method request with an AWS service action, including the Lambda function-invoking action. With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration. Supported only for WebSocket APIs.

AWS_PROXY: for integrating the route or method request with a Lambda function or other AWS service action. This integration is also referred to as a Lambda proxy integration.

HTTP: for integrating the route or method request with an HTTP endpoint. This integration is also referred to as the HTTP custom integration. Supported only for WebSocket APIs.

HTTP_PROXY: for integrating the route or method request with an HTTP endpoint, with the client request passed through as-is. This is also referred to as HTTP proxy integration.

MOCK: for integrating the route or method request with API Gateway as a "loopback" endpoint without invoking any backend. Supported only for WebSocket APIs.

integration_description :: Lens' Integration (Maybe Text) Source #

Represents the description of an integration.

integration_connectionType :: Lens' Integration (Maybe ConnectionType) Source #

The type of the network connection to the integration endpoint. Specify INTERNET for connections through the public routable internet or VPC_LINK for private connections between API Gateway and resources in a VPC. The default value is INTERNET.

integration_responseParameters :: Lens' Integration (Maybe (HashMap Text (HashMap Text Text))) Source #

Supported only for HTTP APIs. You use response parameters to transform the HTTP response from a backend integration before returning the response to clients. Specify a key-value map from a selection key to response parameters. The selection key must be a valid HTTP status code within the range of 200-599. Response parameters are a key-value map. The key must match pattern <action>:<header>.<location> or overwrite.statuscode. The action can be append, overwrite or remove. The value can be a static value, or map to response data, stage variables, or context variables that are evaluated at runtime. To learn more, see Transforming API requests and responses.

IntegrationResponse

integrationResponse_templateSelectionExpression :: Lens' IntegrationResponse (Maybe Text) Source #

The template selection expressions for the integration response.

integrationResponse_contentHandlingStrategy :: Lens' IntegrationResponse (Maybe ContentHandlingStrategy) Source #

Supported only for WebSocket APIs. Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:

CONVERT_TO_BINARY: Converts a response payload from a Base64-encoded string to the corresponding binary blob.

CONVERT_TO_TEXT: Converts a response payload from a binary blob to a Base64-encoded string.

If this property is not defined, the response payload will be passed through from the integration response to the route response or method response without modification.

integrationResponse_responseTemplates :: Lens' IntegrationResponse (Maybe (HashMap Text Text)) Source #

The collection of response templates for the integration response as a string-to-string map of key-value pairs. Response templates are represented as a key/value map, with a content-type as the key and a template as the value.

integrationResponse_responseParameters :: Lens' IntegrationResponse (Maybe (HashMap Text Text)) Source #

A key-value map specifying response parameters that are passed to the method response from the backend. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of method.response.header.{name}, where name is a valid and unique header name. The mapped non-static value must match the pattern of integration.response.header.{name} or integration.response.body.{JSON-expression}, where name is a valid and unique response header name and JSON-expression is a valid JSON expression without the $ prefix.

JWTConfiguration

jWTConfiguration_audience :: Lens' JWTConfiguration (Maybe [Text]) Source #

A list of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list. See RFC 7519. Supported only for HTTP APIs.

jWTConfiguration_issuer :: Lens' JWTConfiguration (Maybe Text) Source #

The base domain of the identity provider that issues JSON Web Tokens. For example, an Amazon Cognito user pool has the following format: https://cognito-idp.{region}.amazonaws.com/{userPoolId} . Required for the JWT authorizer type. Supported only for HTTP APIs.

Model

model_modelId :: Lens' Model (Maybe Text) Source #

The model identifier.

model_schema :: Lens' Model (Maybe Text) Source #

The schema for the model. For application/json models, this should be JSON schema draft 4 model.

model_description :: Lens' Model (Maybe Text) Source #

The description of the model.

model_contentType :: Lens' Model (Maybe Text) Source #

The content-type for the model, for example, "application/json".

model_name :: Lens' Model Text Source #

The name of the model. Must be alphanumeric.

MutualTlsAuthentication

mutualTlsAuthentication_truststoreWarnings :: Lens' MutualTlsAuthentication (Maybe [Text]) Source #

A list of warnings that API Gateway returns while processing your truststore. Invalid certificates produce warnings. Mutual TLS is still enabled, but some clients might not be able to access your API. To resolve warnings, upload a new truststore to S3, and then update you domain name to use the new version.

mutualTlsAuthentication_truststoreUri :: Lens' MutualTlsAuthentication (Maybe Text) Source #

An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

mutualTlsAuthentication_truststoreVersion :: Lens' MutualTlsAuthentication (Maybe Text) Source #

The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

MutualTlsAuthenticationInput

mutualTlsAuthenticationInput_truststoreUri :: Lens' MutualTlsAuthenticationInput (Maybe Text) Source #

An Amazon S3 URL that specifies the truststore for mutual TLS authentication, for example, s3://bucket-name/key-name. The truststore can contain certificates from public or private certificate authorities. To update the truststore, upload a new version to S3, and then update your custom domain name to use the new version. To update the truststore, you must have permissions to access the S3 object.

mutualTlsAuthenticationInput_truststoreVersion :: Lens' MutualTlsAuthenticationInput (Maybe Text) Source #

The version of the S3 object that contains your truststore. To specify a version, you must have versioning enabled for the S3 bucket.

ParameterConstraints

parameterConstraints_required :: Lens' ParameterConstraints (Maybe Bool) Source #

Whether or not the parameter is required.

Route

route_authorizationScopes :: Lens' Route (Maybe [Text]) Source #

A list of authorization scopes configured on a route. The scopes are used with a JWT authorizer to authorize the method invocation. The authorization works by matching the route scopes against the scopes parsed from the access token in the incoming request. The method invocation is authorized if any route scope matches a claimed scope in the access token. Otherwise, the invocation is not authorized. When the route scope is configured, the client must provide an access token instead of an identity token for authorization purposes.

route_modelSelectionExpression :: Lens' Route (Maybe Text) Source #

The model selection expression for the route. Supported only for WebSocket APIs.

route_requestModels :: Lens' Route (Maybe (HashMap Text Text)) Source #

The request models for the route. Supported only for WebSocket APIs.

route_routeResponseSelectionExpression :: Lens' Route (Maybe Text) Source #

The route response selection expression for the route. Supported only for WebSocket APIs.

route_requestParameters :: Lens' Route (Maybe (HashMap Text ParameterConstraints)) Source #

The request parameters for the route. Supported only for WebSocket APIs.

route_authorizerId :: Lens' Route (Maybe Text) Source #

The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.

route_operationName :: Lens' Route (Maybe Text) Source #

The operation name for the route.

route_apiGatewayManaged :: Lens' Route (Maybe Bool) Source #

Specifies whether a route is managed by API Gateway. If you created an API using quick create, the $default route is managed by API Gateway. You can't modify the $default route key.

route_authorizationType :: Lens' Route (Maybe AuthorizationType) Source #

The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

route_apiKeyRequired :: Lens' Route (Maybe Bool) Source #

Specifies whether an API key is required for this route. Supported only for WebSocket APIs.

route_target :: Lens' Route (Maybe Text) Source #

The target for the route.

route_routeKey :: Lens' Route Text Source #

The route key for the route.

RouteResponse

routeResponse_modelSelectionExpression :: Lens' RouteResponse (Maybe Text) Source #

Represents the model selection expression of a route response. Supported only for WebSocket APIs.

routeResponse_responseModels :: Lens' RouteResponse (Maybe (HashMap Text Text)) Source #

Represents the response models of a route response.

routeResponse_routeResponseId :: Lens' RouteResponse (Maybe Text) Source #

Represents the identifier of a route response.

routeResponse_responseParameters :: Lens' RouteResponse (Maybe (HashMap Text ParameterConstraints)) Source #

Represents the response parameters of a route response.

routeResponse_routeResponseKey :: Lens' RouteResponse Text Source #

Represents the route response key of a route response.

RouteSettings

routeSettings_dataTraceEnabled :: Lens' RouteSettings (Maybe Bool) Source #

Specifies whether (true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.

routeSettings_throttlingBurstLimit :: Lens' RouteSettings (Maybe Int) Source #

Specifies the throttling burst limit.

routeSettings_loggingLevel :: Lens' RouteSettings (Maybe LoggingLevel) Source #

Specifies the logging level for this route: INFO, ERROR, or OFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs.

routeSettings_throttlingRateLimit :: Lens' RouteSettings (Maybe Double) Source #

Specifies the throttling rate limit.

routeSettings_detailedMetricsEnabled :: Lens' RouteSettings (Maybe Bool) Source #

Specifies whether detailed metrics are enabled.

Stage

stage_lastDeploymentStatusMessage :: Lens' Stage (Maybe Text) Source #

Describes the status of the last deployment of a stage. Supported only for stages with autoDeploy enabled.

stage_deploymentId :: Lens' Stage (Maybe Text) Source #

The identifier of the Deployment that the Stage is associated with. Can't be updated if autoDeploy is enabled.

stage_routeSettings :: Lens' Stage (Maybe (HashMap Text RouteSettings)) Source #

Route settings for the stage, by routeKey.

stage_accessLogSettings :: Lens' Stage (Maybe AccessLogSettings) Source #

Settings for logging access in this stage.

stage_clientCertificateId :: Lens' Stage (Maybe Text) Source #

The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

stage_stageVariables :: Lens' Stage (Maybe (HashMap Text Text)) Source #

A map that defines the stage variables for a stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.

stage_autoDeploy :: Lens' Stage (Maybe Bool) Source #

Specifies whether updates to an API automatically trigger a new deployment. The default value is false.

stage_createdDate :: Lens' Stage (Maybe UTCTime) Source #

The timestamp when the stage was created.

stage_defaultRouteSettings :: Lens' Stage (Maybe RouteSettings) Source #

Default route settings for the stage.

stage_apiGatewayManaged :: Lens' Stage (Maybe Bool) Source #

Specifies whether a stage is managed by API Gateway. If you created an API using quick create, the $default stage is managed by API Gateway. You can't modify the $default stage.

stage_lastUpdatedDate :: Lens' Stage (Maybe UTCTime) Source #

The timestamp when the stage was last updated.

stage_description :: Lens' Stage (Maybe Text) Source #

The description of the stage.

stage_tags :: Lens' Stage (Maybe (HashMap Text Text)) Source #

The collection of tags. Each tag element is associated with a given resource.

stage_stageName :: Lens' Stage Text Source #

The name of the stage.

TlsConfig

tlsConfig_serverNameToVerify :: Lens' TlsConfig (Maybe Text) Source #

If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting.

TlsConfigInput

tlsConfigInput_serverNameToVerify :: Lens' TlsConfigInput (Maybe Text) Source #

If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate. The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting.

VpcLink

vpcLink_createdDate :: Lens' VpcLink (Maybe UTCTime) Source #

The timestamp when the VPC link was created.

vpcLink_vpcLinkStatusMessage :: Lens' VpcLink (Maybe Text) Source #

A message summarizing the cause of the status of the VPC link.

vpcLink_tags :: Lens' VpcLink (Maybe (HashMap Text Text)) Source #

Tags for the VPC link.

vpcLink_vpcLinkId :: Lens' VpcLink Text Source #

The ID of the VPC link.

vpcLink_securityGroupIds :: Lens' VpcLink [Text] Source #

A list of security group IDs for the VPC link.

vpcLink_subnetIds :: Lens' VpcLink [Text] Source #

A list of subnet IDs to include in the VPC link.

vpcLink_name :: Lens' VpcLink Text Source #

The name of the VPC link.