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 an
Lambda layer
from a ZIP archive. Each time you call PublishLayerVersion
with the
same layer name, a new version is created.
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.
Synopsis
- data PublishLayerVersion = PublishLayerVersion' {}
- newPublishLayerVersion :: Text -> LayerVersionContentInput -> PublishLayerVersion
- publishLayerVersion_licenseInfo :: Lens' PublishLayerVersion (Maybe Text)
- publishLayerVersion_compatibleArchitectures :: Lens' PublishLayerVersion (Maybe [Architecture])
- publishLayerVersion_description :: Lens' PublishLayerVersion (Maybe Text)
- publishLayerVersion_compatibleRuntimes :: Lens' PublishLayerVersion (Maybe [Runtime])
- publishLayerVersion_layerName :: Lens' PublishLayerVersion Text
- publishLayerVersion_content :: Lens' PublishLayerVersion LayerVersionContentInput
- data PublishLayerVersionResponse = PublishLayerVersionResponse' {}
- newPublishLayerVersionResponse :: Int -> PublishLayerVersionResponse
- publishLayerVersionResponse_layerVersionArn :: Lens' PublishLayerVersionResponse (Maybe Text)
- publishLayerVersionResponse_content :: Lens' PublishLayerVersionResponse (Maybe LayerVersionContentOutput)
- publishLayerVersionResponse_createdDate :: Lens' PublishLayerVersionResponse (Maybe Text)
- publishLayerVersionResponse_version :: Lens' PublishLayerVersionResponse (Maybe Integer)
- publishLayerVersionResponse_licenseInfo :: Lens' PublishLayerVersionResponse (Maybe Text)
- publishLayerVersionResponse_compatibleArchitectures :: Lens' PublishLayerVersionResponse (Maybe [Architecture])
- publishLayerVersionResponse_layerArn :: Lens' PublishLayerVersionResponse (Maybe Text)
- publishLayerVersionResponse_description :: Lens' PublishLayerVersionResponse (Maybe Text)
- publishLayerVersionResponse_compatibleRuntimes :: Lens' PublishLayerVersionResponse (Maybe [Runtime])
- publishLayerVersionResponse_httpStatus :: Lens' PublishLayerVersionResponse Int
Creating a Request
data PublishLayerVersion Source #
See: newPublishLayerVersion
smart constructor.
PublishLayerVersion' | |
|
Instances
newPublishLayerVersion Source #
Create a value of PublishLayerVersion
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:licenseInfo:PublishLayerVersion'
, publishLayerVersion_licenseInfo
- The layer's software license. It can be any of the following:
- An SPDX license identifier. For
example,
MIT
. - The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT
. - The full text of the license.
$sel:compatibleArchitectures:PublishLayerVersion'
, publishLayerVersion_compatibleArchitectures
- A list of compatible
instruction set architectures.
$sel:description:PublishLayerVersion'
, publishLayerVersion_description
- The description of the version.
$sel:compatibleRuntimes:PublishLayerVersion'
, publishLayerVersion_compatibleRuntimes
- A list of compatible
function runtimes.
Used for filtering with ListLayers and ListLayerVersions.
$sel:layerName:PublishLayerVersion'
, publishLayerVersion_layerName
- The name or Amazon Resource Name (ARN) of the layer.
$sel:content:PublishLayerVersion'
, publishLayerVersion_content
- The function layer archive.
Request Lenses
publishLayerVersion_licenseInfo :: Lens' PublishLayerVersion (Maybe Text) Source #
The layer's software license. It can be any of the following:
- An SPDX license identifier. For
example,
MIT
. - The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT
. - The full text of the license.
publishLayerVersion_compatibleArchitectures :: Lens' PublishLayerVersion (Maybe [Architecture]) Source #
A list of compatible instruction set architectures.
publishLayerVersion_description :: Lens' PublishLayerVersion (Maybe Text) Source #
The description of the version.
publishLayerVersion_compatibleRuntimes :: Lens' PublishLayerVersion (Maybe [Runtime]) Source #
A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
publishLayerVersion_layerName :: Lens' PublishLayerVersion Text Source #
The name or Amazon Resource Name (ARN) of the layer.
publishLayerVersion_content :: Lens' PublishLayerVersion LayerVersionContentInput Source #
The function layer archive.
Destructuring the Response
data PublishLayerVersionResponse Source #
See: newPublishLayerVersionResponse
smart constructor.
PublishLayerVersionResponse' | |
|
Instances
newPublishLayerVersionResponse Source #
Create a value of PublishLayerVersionResponse
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:layerVersionArn:PublishLayerVersionResponse'
, publishLayerVersionResponse_layerVersionArn
- The ARN of the layer version.
$sel:content:PublishLayerVersion'
, publishLayerVersionResponse_content
- Details about the layer version.
$sel:createdDate:PublishLayerVersionResponse'
, publishLayerVersionResponse_createdDate
- The date that the layer version was created, in
ISO-8601 format
(YYYY-MM-DDThh:mm:ss.sTZD).
$sel:version:PublishLayerVersionResponse'
, publishLayerVersionResponse_version
- The version number.
$sel:licenseInfo:PublishLayerVersion'
, publishLayerVersionResponse_licenseInfo
- The layer's software license.
$sel:compatibleArchitectures:PublishLayerVersion'
, publishLayerVersionResponse_compatibleArchitectures
- A list of compatible
instruction set architectures.
$sel:layerArn:PublishLayerVersionResponse'
, publishLayerVersionResponse_layerArn
- The ARN of the layer.
$sel:description:PublishLayerVersion'
, publishLayerVersionResponse_description
- The description of the version.
$sel:compatibleRuntimes:PublishLayerVersion'
, publishLayerVersionResponse_compatibleRuntimes
- The layer's compatible runtimes.
$sel:httpStatus:PublishLayerVersionResponse'
, publishLayerVersionResponse_httpStatus
- The response's http status code.
Response Lenses
publishLayerVersionResponse_layerVersionArn :: Lens' PublishLayerVersionResponse (Maybe Text) Source #
The ARN of the layer version.
publishLayerVersionResponse_content :: Lens' PublishLayerVersionResponse (Maybe LayerVersionContentOutput) Source #
Details about the layer version.
publishLayerVersionResponse_createdDate :: Lens' PublishLayerVersionResponse (Maybe Text) Source #
The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
publishLayerVersionResponse_version :: Lens' PublishLayerVersionResponse (Maybe Integer) Source #
The version number.
publishLayerVersionResponse_licenseInfo :: Lens' PublishLayerVersionResponse (Maybe Text) Source #
The layer's software license.
publishLayerVersionResponse_compatibleArchitectures :: Lens' PublishLayerVersionResponse (Maybe [Architecture]) Source #
A list of compatible instruction set architectures.
publishLayerVersionResponse_layerArn :: Lens' PublishLayerVersionResponse (Maybe Text) Source #
The ARN of the layer.
publishLayerVersionResponse_description :: Lens' PublishLayerVersionResponse (Maybe Text) Source #
The description of the version.
publishLayerVersionResponse_compatibleRuntimes :: Lens' PublishLayerVersionResponse (Maybe [Runtime]) Source #
The layer's compatible runtimes.
publishLayerVersionResponse_httpStatus :: Lens' PublishLayerVersionResponse Int Source #
The response's http status code.