Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new Stage
resource that references a pre-existing Deployment
for the API.
- createStage :: Text -> Text -> Text -> CreateStage
- data CreateStage
- csVariables :: Lens' CreateStage (HashMap Text Text)
- csDocumentationVersion :: Lens' CreateStage (Maybe Text)
- csCacheClusterSize :: Lens' CreateStage (Maybe CacheClusterSize)
- csCacheClusterEnabled :: Lens' CreateStage (Maybe Bool)
- csDescription :: Lens' CreateStage (Maybe Text)
- csRestAPIId :: Lens' CreateStage Text
- csStageName :: Lens' CreateStage Text
- csDeploymentId :: Lens' CreateStage Text
- stage :: Stage
- data Stage
- sDeploymentId :: Lens' Stage (Maybe Text)
- sVariables :: Lens' Stage (HashMap Text Text)
- sDocumentationVersion :: Lens' Stage (Maybe Text)
- sClientCertificateId :: Lens' Stage (Maybe Text)
- sCreatedDate :: Lens' Stage (Maybe UTCTime)
- sCacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus)
- sMethodSettings :: Lens' Stage (HashMap Text MethodSetting)
- sLastUpdatedDate :: Lens' Stage (Maybe UTCTime)
- sCacheClusterSize :: Lens' Stage (Maybe CacheClusterSize)
- sCacheClusterEnabled :: Lens' Stage (Maybe Bool)
- sStageName :: Lens' Stage (Maybe Text)
- sDescription :: Lens' Stage (Maybe Text)
Creating a Request
Creates a value of CreateStage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csVariables
- A map that defines the stage variables for the newStage
resource. Variable names can have alphanumeric and underscore characters, and the values must match[A-Za-z0-9-._~:/?#&=,]+
.csDocumentationVersion
- The version of the associated API documentation.csCacheClusterSize
- The stage's cache cluster size.csCacheClusterEnabled
- Whether cache clustering is enabled for the stage.csDescription
- The description of theStage
resource.csRestAPIId
- The identifier of theRestApi
resource for theStage
resource to create.csStageName
- The name for theStage
resource.csDeploymentId
- The identifier of theDeployment
resource for theStage
resource.
data CreateStage Source #
Requests Amazon API Gateway to create a Stage
resource.
See: createStage
smart constructor.
Request Lenses
csVariables :: Lens' CreateStage (HashMap Text Text) Source #
A map that defines the stage variables for the new Stage
resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+
.
csDocumentationVersion :: Lens' CreateStage (Maybe Text) Source #
The version of the associated API documentation.
csCacheClusterSize :: Lens' CreateStage (Maybe CacheClusterSize) Source #
The stage's cache cluster size.
csCacheClusterEnabled :: Lens' CreateStage (Maybe Bool) Source #
Whether cache clustering is enabled for the stage.
csDescription :: Lens' CreateStage (Maybe Text) Source #
The description of the Stage
resource.
csRestAPIId :: Lens' CreateStage Text Source #
The identifier of the RestApi
resource for the Stage
resource to create.
csStageName :: Lens' CreateStage Text Source #
The name for the Stage
resource.
csDeploymentId :: Lens' CreateStage Text Source #
The identifier of the Deployment
resource for the Stage
resource.
Destructuring the Response
Creates a value of Stage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sDeploymentId
- The identifier of theDeployment
that the stage points to.sVariables
- A map that defines the stage variables for aStage
resource. Variable names can have alphanumeric and underscore characters, and the values must match[A-Za-z0-9-._~:/?#&=,]+
.sDocumentationVersion
- The version of the associated API documentation.sClientCertificateId
- The identifier of a client certificate for an API stage.sCreatedDate
- The date and time that the stage was created, in ISO 8601 format .sCacheClusterStatus
- The status of the cache cluster for the stage, if enabled.sMethodSettings
- A map that defines the method settings for aStage
resource. Keys (designated as/{method_setting_key
below) are method paths defined as{resource_path}/{http_method}
for an individual method override, or**
for overriding all methods in the stage.sLastUpdatedDate
- The date and time that information about the stage was last updated, in ISO 8601 format .sCacheClusterSize
- The size of the cache cluster for the stage, if enabled.sCacheClusterEnabled
- Specifies whether a cache cluster is enabled for the stage.sStageName
- The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.sDescription
- The stage's description.
Represents a unique identifier for a version of a deployed RestApi
that is callable by users.
See: stage
smart constructor.
Response Lenses
sDeploymentId :: Lens' Stage (Maybe Text) Source #
The identifier of the Deployment
that the stage points to.
sVariables :: Lens' Stage (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-._~:/?#&=,]+
.
sDocumentationVersion :: Lens' Stage (Maybe Text) Source #
The version of the associated API documentation.
sClientCertificateId :: Lens' Stage (Maybe Text) Source #
The identifier of a client certificate for an API stage.
sCreatedDate :: Lens' Stage (Maybe UTCTime) Source #
The date and time that the stage was created, in ISO 8601 format .
sCacheClusterStatus :: Lens' Stage (Maybe CacheClusterStatus) Source #
The status of the cache cluster for the stage, if enabled.
sMethodSettings :: Lens' Stage (HashMap Text MethodSetting) Source #
A map that defines the method settings for a Stage
resource. Keys (designated as /{method_setting_key
below) are method paths defined as {resource_path}/{http_method}
for an individual method override, or **
for overriding all methods in the stage.
sLastUpdatedDate :: Lens' Stage (Maybe UTCTime) Source #
The date and time that information about the stage was last updated, in ISO 8601 format .
sCacheClusterSize :: Lens' Stage (Maybe CacheClusterSize) Source #
The size of the cache cluster for the stage, if enabled.
sCacheClusterEnabled :: Lens' Stage (Maybe Bool) Source #
Specifies whether a cache cluster is enabled for the stage.