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.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
Eq UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Read UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Show UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Generic UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type Rep UpdateStage :: Type -> Type #

NFData UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Methods

rnf :: UpdateStage -> () #

Hashable UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

ToJSON UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

AWSRequest UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type AWSResponse 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

type Rep UpdateStage Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type AWSResponse 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:

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

$sel:routeSettings:UpdateStage', updateStage_routeSettings - Route settings for the stage.

$sel:accessLogSettings:UpdateStage', updateStage_accessLogSettings - Settings for logging access in this stage.

$sel:clientCertificateId:UpdateStage', updateStage_clientCertificateId - The identifier of a client certificate for a Stage.

$sel:stageVariables: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-._~:/?#&=,]+.

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

$sel:defaultRouteSettings:UpdateStage', updateStage_defaultRouteSettings - The default route settings for the stage.

$sel:description:UpdateStage', updateStage_description - The description for the API stage.

$sel:stageName:UpdateStage', updateStage_stageName - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.

$sel:apiId:UpdateStage', updateStage_apiId - The API identifier.

Request Lenses

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.

Destructuring the Response

data UpdateStageResponse Source #

See: newUpdateStageResponse smart constructor.

Constructors

UpdateStageResponse' 

Fields

Instances

Instances details
Eq UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Read UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Show UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Generic UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Associated Types

type Rep UpdateStageResponse :: Type -> Type #

NFData UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

Methods

rnf :: UpdateStageResponse -> () #

type Rep UpdateStageResponse Source # 
Instance details

Defined in Amazonka.ApiGatewayV2.UpdateStage

type Rep UpdateStageResponse = D1 ('MetaData "UpdateStageResponse" "Amazonka.ApiGatewayV2.UpdateStage" "libZSservicesZSamazonka-apigatewayv2ZSamazonka-apigatewayv2" 'False) (C1 ('MetaCons "UpdateStageResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "lastDeploymentStatusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "routeSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text RouteSettings))))) :*: ((S1 ('MetaSel ('Just "accessLogSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessLogSettings)) :*: S1 ('MetaSel ('Just "clientCertificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "stageVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "autoDeploy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) :*: (((S1 ('MetaSel ('Just "createdDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "defaultRouteSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RouteSettings))) :*: (S1 ('MetaSel ('Just "apiGatewayManaged") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "stageName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "lastUpdatedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe 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:

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

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

$sel:routeSettings:UpdateStage', updateStageResponse_routeSettings - Route settings for the stage, by routeKey.

$sel:accessLogSettings:UpdateStage', updateStageResponse_accessLogSettings - Settings for logging access in this stage.

$sel:clientCertificateId:UpdateStage', updateStageResponse_clientCertificateId - The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.

$sel:stageVariables: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-._~:/?#&=,]+.

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

$sel:createdDate:UpdateStageResponse', updateStageResponse_createdDate - The timestamp when the stage was created.

$sel:defaultRouteSettings:UpdateStage', updateStageResponse_defaultRouteSettings - Default route settings for the stage.

$sel:apiGatewayManaged: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.

$sel:stageName:UpdateStage', updateStageResponse_stageName - The name of the stage.

$sel:lastUpdatedDate:UpdateStageResponse', updateStageResponse_lastUpdatedDate - The timestamp when the stage was last updated.

$sel:description:UpdateStage', updateStageResponse_description - The description of the stage.

$sel:tags: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_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.