Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Stage for an API.
Synopsis
- data CreateStage = CreateStage' {
- deploymentId :: Maybe Text
- routeSettings :: Maybe (HashMap Text RouteSettings)
- accessLogSettings :: Maybe AccessLogSettings
- clientCertificateId :: Maybe Text
- stageVariables :: Maybe (HashMap Text Text)
- autoDeploy :: Maybe Bool
- defaultRouteSettings :: Maybe RouteSettings
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- apiId :: Text
- stageName :: Text
- newCreateStage :: Text -> Text -> CreateStage
- createStage_deploymentId :: Lens' CreateStage (Maybe Text)
- createStage_routeSettings :: Lens' CreateStage (Maybe (HashMap Text RouteSettings))
- createStage_accessLogSettings :: Lens' CreateStage (Maybe AccessLogSettings)
- createStage_clientCertificateId :: Lens' CreateStage (Maybe Text)
- createStage_stageVariables :: Lens' CreateStage (Maybe (HashMap Text Text))
- createStage_autoDeploy :: Lens' CreateStage (Maybe Bool)
- createStage_defaultRouteSettings :: Lens' CreateStage (Maybe RouteSettings)
- createStage_description :: Lens' CreateStage (Maybe Text)
- createStage_tags :: Lens' CreateStage (Maybe (HashMap Text Text))
- createStage_apiId :: Lens' CreateStage Text
- createStage_stageName :: Lens' CreateStage Text
- data CreateStageResponse = CreateStageResponse' {
- lastDeploymentStatusMessage :: Maybe Text
- deploymentId :: Maybe Text
- routeSettings :: Maybe (HashMap Text RouteSettings)
- accessLogSettings :: Maybe AccessLogSettings
- clientCertificateId :: Maybe Text
- stageVariables :: Maybe (HashMap Text Text)
- autoDeploy :: Maybe Bool
- createdDate :: Maybe POSIX
- defaultRouteSettings :: Maybe RouteSettings
- apiGatewayManaged :: Maybe Bool
- stageName :: Maybe Text
- lastUpdatedDate :: Maybe POSIX
- description :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newCreateStageResponse :: Int -> CreateStageResponse
- createStageResponse_lastDeploymentStatusMessage :: Lens' CreateStageResponse (Maybe Text)
- createStageResponse_deploymentId :: Lens' CreateStageResponse (Maybe Text)
- createStageResponse_routeSettings :: Lens' CreateStageResponse (Maybe (HashMap Text RouteSettings))
- createStageResponse_accessLogSettings :: Lens' CreateStageResponse (Maybe AccessLogSettings)
- createStageResponse_clientCertificateId :: Lens' CreateStageResponse (Maybe Text)
- createStageResponse_stageVariables :: Lens' CreateStageResponse (Maybe (HashMap Text Text))
- createStageResponse_autoDeploy :: Lens' CreateStageResponse (Maybe Bool)
- createStageResponse_createdDate :: Lens' CreateStageResponse (Maybe UTCTime)
- createStageResponse_defaultRouteSettings :: Lens' CreateStageResponse (Maybe RouteSettings)
- createStageResponse_apiGatewayManaged :: Lens' CreateStageResponse (Maybe Bool)
- createStageResponse_stageName :: Lens' CreateStageResponse (Maybe Text)
- createStageResponse_lastUpdatedDate :: Lens' CreateStageResponse (Maybe UTCTime)
- createStageResponse_description :: Lens' CreateStageResponse (Maybe Text)
- createStageResponse_tags :: Lens' CreateStageResponse (Maybe (HashMap Text Text))
- createStageResponse_httpStatus :: Lens' CreateStageResponse Int
Creating a Request
data CreateStage Source #
Creates a new Stage resource to represent a stage.
See: newCreateStage
smart constructor.
CreateStage' | |
|
Instances
Create a value of CreateStage
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:CreateStage'
, createStage_deploymentId
- The deployment identifier of the API stage.
$sel:routeSettings:CreateStage'
, createStage_routeSettings
- Route settings for the stage, by routeKey.
$sel:accessLogSettings:CreateStage'
, createStage_accessLogSettings
- Settings for logging access in this stage.
$sel:clientCertificateId:CreateStage'
, createStage_clientCertificateId
- The identifier of a client certificate for a Stage. Supported only for
WebSocket APIs.
$sel:stageVariables:CreateStage'
, createStage_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:CreateStage'
, createStage_autoDeploy
- Specifies whether updates to an API automatically trigger a new
deployment. The default value is false.
$sel:defaultRouteSettings:CreateStage'
, createStage_defaultRouteSettings
- The default route settings for the stage.
$sel:description:CreateStage'
, createStage_description
- The description for the API stage.
$sel:tags:CreateStage'
, createStage_tags
- The collection of tags. Each tag element is associated with a given
resource.
$sel:apiId:CreateStage'
, createStage_apiId
- The API identifier.
$sel:stageName:CreateStage'
, createStage_stageName
- The name of the stage.
Request Lenses
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.
createStage_apiId :: Lens' CreateStage Text Source #
The API identifier.
createStage_stageName :: Lens' CreateStage Text Source #
The name of the stage.
Destructuring the Response
data CreateStageResponse Source #
See: newCreateStageResponse
smart constructor.
CreateStageResponse' | |
|
Instances
newCreateStageResponse Source #
Create a value of CreateStageResponse
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:CreateStageResponse'
, createStageResponse_lastDeploymentStatusMessage
- Describes the status of the last deployment of a stage. Supported only
for stages with autoDeploy enabled.
$sel:deploymentId:CreateStage'
, createStageResponse_deploymentId
- The identifier of the Deployment that the Stage is associated with.
Can't be updated if autoDeploy is enabled.
$sel:routeSettings:CreateStage'
, createStageResponse_routeSettings
- Route settings for the stage, by routeKey.
$sel:accessLogSettings:CreateStage'
, createStageResponse_accessLogSettings
- Settings for logging access in this stage.
$sel:clientCertificateId:CreateStage'
, createStageResponse_clientCertificateId
- The identifier of a client certificate for a Stage. Supported only for
WebSocket APIs.
$sel:stageVariables:CreateStage'
, createStageResponse_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:CreateStage'
, createStageResponse_autoDeploy
- Specifies whether updates to an API automatically trigger a new
deployment. The default value is false.
$sel:createdDate:CreateStageResponse'
, createStageResponse_createdDate
- The timestamp when the stage was created.
$sel:defaultRouteSettings:CreateStage'
, createStageResponse_defaultRouteSettings
- Default route settings for the stage.
$sel:apiGatewayManaged:CreateStageResponse'
, createStageResponse_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:CreateStage'
, createStageResponse_stageName
- The name of the stage.
$sel:lastUpdatedDate:CreateStageResponse'
, createStageResponse_lastUpdatedDate
- The timestamp when the stage was last updated.
$sel:description:CreateStage'
, createStageResponse_description
- The description of the stage.
$sel:tags:CreateStage'
, createStageResponse_tags
- The collection of tags. Each tag element is associated with a given
resource.
$sel:httpStatus:CreateStageResponse'
, createStageResponse_httpStatus
- The response's http status code.
Response Lenses
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_routeSettings :: Lens' CreateStageResponse (Maybe (HashMap Text RouteSettings)) Source #
Route settings for the stage, by routeKey.
createStageResponse_accessLogSettings :: Lens' CreateStageResponse (Maybe AccessLogSettings) Source #
Settings for logging access in this stage.
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_defaultRouteSettings :: Lens' CreateStageResponse (Maybe RouteSettings) Source #
Default route settings for the stage.
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_stageName :: Lens' CreateStageResponse (Maybe Text) Source #
The name of the stage.
createStageResponse_lastUpdatedDate :: Lens' CreateStageResponse (Maybe UTCTime) Source #
The timestamp when the stage was last updated.
createStageResponse_description :: Lens' CreateStageResponse (Maybe Text) Source #
The description of the stage.
createStageResponse_tags :: Lens' CreateStageResponse (Maybe (HashMap Text Text)) Source #
The collection of tags. Each tag element is associated with a given resource.
createStageResponse_httpStatus :: Lens' CreateStageResponse Int Source #
The response's http status code.