amazonka-apigatewayv2-2.0: Amazon ApiGatewayV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ApiGatewayV2.UpdateApi

Description

Updates an Api resource.

Synopsis

Creating a Request

data UpdateApi Source #

Updates an Api.

See: newUpdateApi smart constructor.

Constructors

UpdateApi' 

Fields

  • apiKeySelectionExpression :: Maybe Text

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

  • corsConfiguration :: Maybe Cors

    A CORS configuration. Supported only for HTTP APIs.

  • credentialsArn :: Maybe Text

    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.

  • description :: Maybe Text

    The description of the API.

  • disableExecuteApiEndpoint :: Maybe Bool

    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.

  • disableSchemaValidation :: Maybe Bool

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

  • name :: Maybe Text

    The name of the API.

  • routeKey :: Maybe Text

    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.

  • routeSelectionExpression :: Maybe Text

    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.

  • target :: Maybe Text

    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.

  • version :: Maybe Text

    A version identifier for the API.

  • apiId :: Text

    The API identifier.

Instances

Instances details
ToJSON UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

ToHeaders UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Methods

toHeaders :: UpdateApi -> [Header] #

ToPath UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

ToQuery UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

AWSRequest UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Associated Types

type AWSResponse UpdateApi #

Generic UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Associated Types

type Rep UpdateApi :: Type -> Type #

Read UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Show UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

NFData UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Methods

rnf :: UpdateApi -> () #

Eq UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Hashable UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

type AWSResponse UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

type Rep UpdateApi Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

type Rep UpdateApi = D1 ('MetaData "UpdateApi" "Amazonka.ApiGatewayV2.UpdateApi" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateApi'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "apiKeySelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "corsConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cors)) :*: S1 ('MetaSel ('Just "credentialsArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "disableExecuteApiEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "disableSchemaValidation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "routeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "routeSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newUpdateApi Source #

Arguments

:: Text

UpdateApi

-> UpdateApi 

Create a value of UpdateApi with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateApi, updateApi_apiKeySelectionExpression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

UpdateApi, updateApi_corsConfiguration - A CORS configuration. Supported only for HTTP APIs.

UpdateApi, updateApi_credentialsArn - 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, updateApi_description - The description of the API.

UpdateApi, updateApi_disableExecuteApiEndpoint - 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, updateApi_disableSchemaValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

UpdateApi, updateApi_name - The name of the API.

UpdateApi, updateApi_routeKey - 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, updateApi_routeSelectionExpression - 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, updateApi_target - 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, updateApi_version - A version identifier for the API.

UpdateApi, updateApi_apiId - The API identifier.

Request Lenses

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_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_description :: Lens' UpdateApi (Maybe Text) Source #

The description of the API.

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_disableSchemaValidation :: Lens' UpdateApi (Maybe Bool) Source #

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

updateApi_name :: Lens' UpdateApi (Maybe Text) Source #

The name 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_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_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_version :: Lens' UpdateApi (Maybe Text) Source #

A version identifier for the API.

updateApi_apiId :: Lens' UpdateApi Text Source #

The API identifier.

Destructuring the Response

data UpdateApiResponse Source #

See: newUpdateApiResponse smart constructor.

Constructors

UpdateApiResponse' 

Fields

  • apiEndpoint :: Maybe Text

    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.

  • apiGatewayManaged :: Maybe Bool

    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.

  • apiId :: Maybe Text

    The API ID.

  • apiKeySelectionExpression :: Maybe Text

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

  • corsConfiguration :: Maybe Cors

    A CORS configuration. Supported only for HTTP APIs.

  • createdDate :: Maybe ISO8601

    The timestamp when the API was created.

  • description :: Maybe Text

    The description of the API.

  • disableExecuteApiEndpoint :: Maybe Bool

    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.

  • disableSchemaValidation :: Maybe Bool

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

  • importInfo :: Maybe [Text]

    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.

  • name :: Maybe Text

    The name of the API.

  • protocolType :: Maybe ProtocolType

    The API protocol.

  • routeSelectionExpression :: Maybe Text

    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.

  • tags :: Maybe (HashMap Text Text)

    A collection of tags associated with the API.

  • version :: Maybe Text

    A version identifier for the API.

  • warnings :: Maybe [Text]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Associated Types

type Rep UpdateApiResponse :: Type -> Type #

Read UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Show UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

NFData UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

Methods

rnf :: UpdateApiResponse -> () #

Eq UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

type Rep UpdateApiResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateApi

type Rep UpdateApiResponse = D1 ('MetaData "UpdateApiResponse" "Amazonka.ApiGatewayV2.UpdateApi" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateApiResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "apiEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiGatewayManaged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "apiKeySelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "corsConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cors)) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "disableExecuteApiEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: (((S1 ('MetaSel ('Just "disableSchemaValidation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "importInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "protocolType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ProtocolType)))) :*: ((S1 ('MetaSel ('Just "routeSelectionExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "warnings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))))

newUpdateApiResponse Source #

Create a value of UpdateApiResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

UpdateApiResponse, updateApiResponse_apiEndpoint - 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, updateApiResponse_apiGatewayManaged - 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.

UpdateApi, updateApiResponse_apiId - The API ID.

UpdateApi, updateApiResponse_apiKeySelectionExpression - An API key selection expression. Supported only for WebSocket APIs. See API Key Selection Expressions.

UpdateApi, updateApiResponse_corsConfiguration - A CORS configuration. Supported only for HTTP APIs.

UpdateApiResponse, updateApiResponse_createdDate - The timestamp when the API was created.

UpdateApi, updateApiResponse_description - The description of the API.

UpdateApi, updateApiResponse_disableExecuteApiEndpoint - 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, updateApiResponse_disableSchemaValidation - Avoid validating models when creating a deployment. Supported only for WebSocket APIs.

UpdateApiResponse, updateApiResponse_importInfo - 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.

UpdateApi, updateApiResponse_name - The name of the API.

UpdateApiResponse, updateApiResponse_protocolType - The API protocol.

UpdateApi, updateApiResponse_routeSelectionExpression - 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, updateApiResponse_tags - A collection of tags associated with the API.

UpdateApi, updateApiResponse_version - A version identifier for the API.

UpdateApiResponse, updateApiResponse_warnings - The warning messages reported when failonwarnings is turned on during API import.

$sel:httpStatus:UpdateApiResponse', updateApiResponse_httpStatus - The response's http status code.

Response Lenses

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_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_createdDate :: Lens' UpdateApiResponse (Maybe UTCTime) Source #

The timestamp when the API was created.

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_disableSchemaValidation :: Lens' UpdateApiResponse (Maybe Bool) Source #

Avoid validating models when creating a deployment. Supported only 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_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_tags :: Lens' UpdateApiResponse (Maybe (HashMap Text Text)) Source #

A collection of tags associated with the API.

updateApiResponse_version :: Lens' UpdateApiResponse (Maybe Text) Source #

A version identifier for the API.

updateApiResponse_warnings :: Lens' UpdateApiResponse (Maybe [Text]) Source #

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

updateApiResponse_httpStatus :: Lens' UpdateApiResponse Int Source #

The response's http status code.