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.UpdateStage

Description

Updates a Stage.

Synopsis

Creating a Request

data UpdateStage Source #

Updates a Stage.

See: newUpdateStage smart constructor.

Constructors

UpdateStage' 

Fields

Instances

Instances details
ToJSON UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

ToHeaders UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Methods

toHeaders :: UpdateStage -> [Header] #

ToPath UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

ToQuery UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

AWSRequest UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type AWSResponse UpdateStage #

Generic UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type Rep UpdateStage :: Type -> Type #

Read UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Show UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

NFData UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Methods

rnf :: UpdateStage -> () #

Eq UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Hashable UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type AWSResponse UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type Rep UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

newUpdateStage Source #

Create a value of UpdateStage 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:

UpdateStage, updateStage_accessLogSettings - Settings for logging access in this stage.

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

UpdateStage, updateStage_clientCertificateId - The identifier of a client certificate for a Stage.

UpdateStage, updateStage_defaultRouteSettings - The default route settings for the stage.

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

UpdateStage, updateStage_description - The description for the API stage.

UpdateStage, updateStage_routeSettings - Route settings for the stage.

UpdateStage, updateStage_stageVariables - 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, updateStage_stageName - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.

UpdateStage, updateStage_apiId - The API identifier.

Request Lenses

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

Settings for logging access in this stage.

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

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

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

The identifier of a client certificate for a Stage.

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

The default route settings for the stage.

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

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

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

The description for the API 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_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.

Destructuring the Response

data UpdateStageResponse Source #

See: newUpdateStageResponse smart constructor.

Constructors

UpdateStageResponse' 

Fields

Instances

Instances details
Generic UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type Rep UpdateStageResponse :: Type -> Type #

Read UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Show UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

NFData UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Methods

rnf :: UpdateStageResponse -> () #

Eq UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type Rep UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type Rep UpdateStageResponse = D1 ('MetaData "UpdateStageResponse" "Amazonka.ApiGatewayV2.UpdateStage" "amazonka-apigatewayv2-2.0-4MZ8oueToeLOWomgegceF" 'False) (C1 ('MetaCons "UpdateStageResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "accessLogSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessLogSettings)) :*: (S1 ('MetaSel ('Just "apiGatewayManaged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "autoDeploy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "clientCertificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))) :*: (S1 ('MetaSel ('Just "defaultRouteSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RouteSettings)) :*: S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lastDeploymentStatusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "lastUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "routeSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text RouteSettings))))) :*: ((S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "stageVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newUpdateStageResponse Source #

Create a value of UpdateStageResponse 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:

UpdateStage, updateStageResponse_accessLogSettings - Settings for logging access in this stage.

UpdateStageResponse, updateStageResponse_apiGatewayManaged - 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.

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

UpdateStage, updateStageResponse_clientCertificateId - The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

UpdateStageResponse, updateStageResponse_createdDate - The timestamp when the stage was created.

UpdateStage, updateStageResponse_defaultRouteSettings - Default route settings for the stage.

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

UpdateStage, updateStageResponse_description - The description of the stage.

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

UpdateStageResponse, updateStageResponse_lastUpdatedDate - The timestamp when the stage was last updated.

UpdateStage, updateStageResponse_routeSettings - Route settings for the stage, by routeKey.

UpdateStage, updateStageResponse_stageName - The name of the stage.

UpdateStage, updateStageResponse_stageVariables - 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, updateStageResponse_tags - The collection of tags. Each tag element is associated with a given resource.

$sel:httpStatus:UpdateStageResponse', updateStageResponse_httpStatus - The response's http status code.

Response Lenses

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

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

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

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

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

The timestamp when the stage was created.

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_lastDeploymentStatusMessage :: Lens' UpdateStageResponse (Maybe Text) Source #

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

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

The timestamp when the stage was last updated.

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_tags :: Lens' UpdateStageResponse (Maybe (HashMap Text Text)) Source #

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