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 new BasePathMapping resource.
Synopsis
- data CreateBasePathMapping = CreateBasePathMapping' {}
- newCreateBasePathMapping :: Text -> Text -> CreateBasePathMapping
- createBasePathMapping_stage :: Lens' CreateBasePathMapping (Maybe Text)
- createBasePathMapping_basePath :: Lens' CreateBasePathMapping (Maybe Text)
- createBasePathMapping_domainName :: Lens' CreateBasePathMapping Text
- createBasePathMapping_restApiId :: Lens' CreateBasePathMapping Text
- data BasePathMapping = BasePathMapping' {}
- newBasePathMapping :: BasePathMapping
- basePathMapping_stage :: Lens' BasePathMapping (Maybe Text)
- basePathMapping_basePath :: Lens' BasePathMapping (Maybe Text)
- basePathMapping_restApiId :: Lens' BasePathMapping (Maybe Text)
Creating a Request
data CreateBasePathMapping Source #
Requests API Gateway to create a new BasePathMapping resource.
See: newCreateBasePathMapping
smart constructor.
CreateBasePathMapping' | |
|
Instances
newCreateBasePathMapping Source #
:: Text | |
-> Text | |
-> CreateBasePathMapping |
Create a value of CreateBasePathMapping
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:stage:CreateBasePathMapping'
, createBasePathMapping_stage
- The name of the API's stage that you want to use for this mapping.
Specify '(none)' if you want callers to explicitly specify the stage
name after any base path name.
$sel:basePath:CreateBasePathMapping'
, createBasePathMapping_basePath
- The base path name that callers of the API must provide as part of the
URL after the domain name. This value must be unique for all of the
mappings across a single API. Specify '(none)' if you do not want
callers to specify a base path name after the domain name.
$sel:domainName:CreateBasePathMapping'
, createBasePathMapping_domainName
- [Required] The domain name of the BasePathMapping resource to create.
$sel:restApiId:CreateBasePathMapping'
, createBasePathMapping_restApiId
- [Required] The string identifier of the associated RestApi.
Request Lenses
createBasePathMapping_stage :: Lens' CreateBasePathMapping (Maybe Text) Source #
The name of the API's stage that you want to use for this mapping. Specify '(none)' if you want callers to explicitly specify the stage name after any base path name.
createBasePathMapping_basePath :: Lens' CreateBasePathMapping (Maybe Text) Source #
The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify a base path name after the domain name.
createBasePathMapping_domainName :: Lens' CreateBasePathMapping Text Source #
- Required
- The domain name of the BasePathMapping resource to create.
createBasePathMapping_restApiId :: Lens' CreateBasePathMapping Text Source #
- Required
- The string identifier of the associated RestApi.
Destructuring the Response
data BasePathMapping Source #
Represents the base path that callers of the API must provide as part of the URL after the domain name.
A custom domain name plus a BasePathMapping
specification identifies a
deployed RestApi in a given stage of the owner Account.
See: newBasePathMapping
smart constructor.
Instances
newBasePathMapping :: BasePathMapping Source #
Create a value of BasePathMapping
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:stage:BasePathMapping'
, basePathMapping_stage
- The name of the associated stage.
$sel:basePath:BasePathMapping'
, basePathMapping_basePath
- The base path name that callers of the API must provide as part of the
URL after the domain name.
$sel:restApiId:BasePathMapping'
, basePathMapping_restApiId
- The string identifier of the associated RestApi.
Response Lenses
basePathMapping_stage :: Lens' BasePathMapping (Maybe Text) Source #
The name of the associated stage.
basePathMapping_basePath :: Lens' BasePathMapping (Maybe Text) Source #
The base path name that callers of the API must provide as part of the URL after the domain name.
basePathMapping_restApiId :: Lens' BasePathMapping (Maybe Text) Source #
The string identifier of the associated RestApi.