openapi: 3.2.0
info:
version: 2015-03-31
x-release: v4
title: AWS Lambda Layers API
description: 'Lambda
Overview
Lambda is a compute service that lets you run code without provisioning or managing servers.'
x-logo:
url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png
backgroundColor: '#FFFFFF'
termsOfService: https://aws.amazon.com/service-terms/
contact:
name: Mike Ralphson
email: mike.ralphson@gmail.com
url: https://github.com/mermade/aws2openapi
x-twitter: PermittedSoc
license:
name: Apache 2.0 License
url: http://www.apache.org/licenses/
x-providerName: amazonaws.com
x-serviceName: lambda
x-origin:
- contentType: application/json
url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/lambda-2015-03-31.normal.json
converter:
url: https://github.com/mermade/aws2openapi
version: 1.0.0
x-apisguru-driver: external
x-apiClientRegistration:
url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct
x-apisguru-categories:
- cloud
x-preferred: true
servers:
- url: http://lambda.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The AWS Lambda multi-region endpoint
- url: https://lambda.{region}.amazonaws.com
variables:
region:
description: The AWS region
enum:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- us-gov-west-1
- us-gov-east-1
- ca-central-1
- eu-north-1
- eu-west-1
- eu-west-2
- eu-west-3
- eu-central-1
- eu-south-1
- af-south-1
- ap-northeast-1
- ap-northeast-2
- ap-northeast-3
- ap-southeast-1
- ap-southeast-2
- ap-east-1
- ap-south-1
- sa-east-1
- me-south-1
default: us-east-1
description: The AWS Lambda multi-region endpoint
- url: http://lambda.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The AWS Lambda endpoint for China (Beijing) and China (Ningxia)
- url: https://lambda.{region}.amazonaws.com.cn
variables:
region:
description: The AWS region
enum:
- cn-north-1
- cn-northwest-1
default: cn-north-1
description: The AWS Lambda endpoint for China (Beijing) and China (Ningxia)
security:
- hmac: []
tags:
- name: Layers
paths:
/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: AddLayerVersionPermission
description: 'Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.'
responses:
'201':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/AddLayerVersionPermissionResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: ResourceConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceConflictException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'484':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'485':
description: PolicyLengthExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyLengthExceededException'
'486':
description: PreconditionFailedException
content:
application/json:
schema:
$ref: '#/components/schemas/PreconditionFailedException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: VersionNumber
in: path
required: true
description: The version number.
schema:
type: integer
- name: RevisionId
in: query
required: false
description: Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- StatementId
- Action
- Principal
properties:
StatementId:
description: An identifier that distinguishes the policy from others on the same layer version.
type: string
pattern: ([a-zA-Z0-9-_]+)
minLength: 1
maxLength: 100
Action:
description: The API action that grants access to the layer. For example, lambda:GetLayerVersion.
type: string
pattern: lambda:GetLayerVersion
maxLength: 22
Principal:
description: 'An account ID, or * to grant layer usage permission to all accounts in an organization, or all Amazon Web Services accounts (if organizationId is not specified). For the last case, make sure that you really do want all Amazon Web Services accounts to have usage permission to this layer. '
type: string
pattern: \d{12}|\*|arn:(aws[a-zA-Z-]*):iam::\d{12}:root
OrganizationId:
description: With the principal set to *, grant permission to all accounts in the specified organization.
type: string
pattern: o-[a-z0-9]{10,32}
maxLength: 34
tags:
- Layers
summary: Add layer version permission
x-summary-source: derived
get:
operationId: GetLayerVersionPolicy
description: Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetLayerVersionPolicyResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'483':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: VersionNumber
in: path
required: true
description: The version number.
schema:
type: integer
tags:
- Layers
summary: Get layer version policy
x-summary-source: derived
/2018-10-31/layers/{LayerName}/versions/{VersionNumber}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: DeleteLayerVersion
description: Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
responses:
'204':
description: Success
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: VersionNumber
in: path
required: true
description: The version number.
schema:
type: integer
tags:
- Layers
summary: Delete layer version
x-summary-source: derived
get:
operationId: GetLayerVersion
description: Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetLayerVersionResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'482':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'483':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: VersionNumber
in: path
required: true
description: The version number.
schema:
type: integer
tags:
- Layers
summary: Get layer version
x-summary-source: derived
/2018-10-31/layers#find=LayerVersion&Arn:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
get:
operationId: GetLayerVersionByArn
description: Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetLayerVersionResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'482':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'483':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
parameters:
- name: Arn
in: query
required: true
description: The ARN of the layer version.
schema:
type: string
pattern: arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+
minLength: 1
maxLength: 140
- name: find
in: query
required: true
schema:
type: string
enum:
- LayerVersion
tags:
- Layers
summary: Get layer version by arn
x-summary-source: derived
/2018-10-31/layers/{LayerName}/versions:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
get:
operationId: ListLayerVersions
description: Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListLayerVersionsResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'482':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
parameters:
- name: CompatibleRuntime
in: query
required: false
description: A runtime identifier. For example, go1.x.
schema:
type: string
enum:
- nodejs
- nodejs4.3
- nodejs6.10
- nodejs8.10
- nodejs10.x
- nodejs12.x
- nodejs14.x
- nodejs16.x
- java8
- java8.al2
- java11
- python2.7
- python3.6
- python3.7
- python3.8
- python3.9
- dotnetcore1.0
- dotnetcore2.0
- dotnetcore2.1
- dotnetcore3.1
- dotnet6
- nodejs4.3-edge
- go1.x
- ruby2.5
- ruby2.7
- provided
- provided.al2
- nodejs18.x
- python3.10
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: Marker
in: query
required: false
description: A pagination token returned by a previous call.
schema:
type: string
- name: MaxItems
in: query
required: false
description: The maximum number of versions to return.
schema:
type: integer
minimum: 1
maximum: 50
- name: CompatibleArchitecture
in: query
required: false
description: The compatible instruction set architecture.
schema:
type: string
enum:
- x86_64
- arm64
tags:
- Layers
summary: List layer versions
x-summary-source: derived
post:
operationId: PublishLayerVersion
description: '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.'
responses:
'201':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/PublishLayerVersionResponse'
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'483':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'484':
description: CodeStorageExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/CodeStorageExceededException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- Content
properties:
Description:
description: The description of the version.
type: string
minLength: 0
maxLength: 256
Content:
description: A ZIP archive that contains the contents of an Lambda layer. You can specify either an Amazon S3 location, or upload a layer archive directly.
type: object
properties:
S3Bucket:
allOf:
- $ref: '#/components/schemas/S3Bucket'
- description: The Amazon S3 bucket of the layer archive.
S3Key:
allOf:
- $ref: '#/components/schemas/S3Key'
- description: The Amazon S3 key of the layer archive.
S3ObjectVersion:
allOf:
- $ref: '#/components/schemas/S3ObjectVersion'
- description: For versioned objects, the version of the layer archive object to use.
ZipFile:
allOf:
- $ref: '#/components/schemas/Blob'
- description: The base64-encoded contents of the layer archive. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.
CompatibleRuntimes:
description: A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
type: array
items:
$ref: '#/components/schemas/Runtime'
maxItems: 15
LicenseInfo:
description:
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.
go1.x.
schema:
type: string
enum:
- nodejs
- nodejs4.3
- nodejs6.10
- nodejs8.10
- nodejs10.x
- nodejs12.x
- nodejs14.x
- nodejs16.x
- java8
- java8.al2
- java11
- python2.7
- python3.6
- python3.7
- python3.8
- python3.9
- dotnetcore1.0
- dotnetcore2.0
- dotnetcore2.1
- dotnetcore3.1
- dotnet6
- nodejs4.3-edge
- go1.x
- ruby2.5
- ruby2.7
- provided
- provided.al2
- nodejs18.x
- python3.10
- name: Marker
in: query
required: false
description: A pagination token returned by a previous call.
schema:
type: string
- name: MaxItems
in: query
required: false
description: The maximum number of layers to return.
schema:
type: integer
minimum: 1
maximum: 50
- name: CompatibleArchitecture
in: query
required: false
description: The compatible instruction set architecture.
schema:
type: string
enum:
- x86_64
- arm64
tags:
- Layers
summary: List layers
x-summary-source: derived
/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
delete:
operationId: RemoveLayerVersionPermission
description: Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
responses:
'204':
description: Success
'480':
description: ServiceException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceException'
'481':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'482':
description: InvalidParameterValueException
content:
application/json:
schema:
$ref: '#/components/schemas/InvalidParameterValueException'
'483':
description: TooManyRequestsException
content:
application/json:
schema:
$ref: '#/components/schemas/TooManyRequestsException'
'484':
description: PreconditionFailedException
content:
application/json:
schema:
$ref: '#/components/schemas/PreconditionFailedException'
parameters:
- name: LayerName
in: path
required: true
description: The name or Amazon Resource Name (ARN) of the layer.
schema:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
- name: VersionNumber
in: path
required: true
description: The version number.
schema:
type: integer
- name: StatementId
in: path
required: true
description: The identifier that was specified when the statement was added.
schema:
type: string
pattern: ([a-zA-Z0-9-_]+)
minLength: 1
maxLength: 100
- name: RevisionId
in: query
required: false
description: Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
schema:
type: string
tags:
- Layers
summary: Remove layer version permission
x-summary-source: derived
components:
schemas:
ServiceException: {}
PublishLayerVersionResponse:
type: object
properties:
Content:
allOf:
- $ref: '#/components/schemas/LayerVersionContentOutput'
- description: Details about the layer version.
LayerArn:
allOf:
- $ref: '#/components/schemas/LayerArn'
- description: The ARN of the layer.
LayerVersionArn:
allOf:
- $ref: '#/components/schemas/LayerVersionArn'
- description: The ARN of the layer version.
Description:
allOf:
- $ref: '#/components/schemas/Description'
- description: The description of the version.
CreatedDate:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
Version:
allOf:
- $ref: '#/components/schemas/LayerVersionNumber'
- description: The version number.
CompatibleRuntimes:
allOf:
- $ref: '#/components/schemas/CompatibleRuntimes'
- description: The layer's compatible runtimes.
LicenseInfo:
allOf:
- $ref: '#/components/schemas/LicenseInfo'
- description: The layer's software license.
CompatibleArchitectures:
allOf:
- $ref: '#/components/schemas/CompatibleArchitectures'
- description: A list of compatible instruction set architectures.
AddLayerVersionPermissionResponse:
type: object
properties:
Statement:
allOf:
- $ref: '#/components/schemas/String'
- description: The permission statement.
RevisionId:
allOf:
- $ref: '#/components/schemas/String'
- description: A unique identifier for the current revision of the policy.
Long:
type: integer
LayerVersionsListItem:
type: object
properties:
LayerVersionArn:
allOf:
- $ref: '#/components/schemas/LayerVersionArn'
- description: The ARN of the layer version.
Version:
allOf:
- $ref: '#/components/schemas/LayerVersionNumber'
- description: The version number.
Description:
allOf:
- $ref: '#/components/schemas/Description'
- description: The description of the version.
CreatedDate:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.
CompatibleRuntimes:
allOf:
- $ref: '#/components/schemas/CompatibleRuntimes'
- description: The layer's compatible runtimes.
LicenseInfo:
allOf:
- $ref: '#/components/schemas/LicenseInfo'
- description: The layer's open-source license.
CompatibleArchitectures:
allOf:
- $ref: '#/components/schemas/CompatibleArchitectures'
- description: A list of compatible instruction set architectures.
description: Details about a version of an Lambda layer.
LayerArn:
type: string
pattern: arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
LayerVersionContentOutput:
type: object
properties:
Location:
allOf:
- $ref: '#/components/schemas/String'
- description: A link to the layer archive in Amazon S3 that is valid for 10 minutes.
CodeSha256:
allOf:
- $ref: '#/components/schemas/String'
- description: The SHA-256 hash of the layer archive.
CodeSize:
allOf:
- $ref: '#/components/schemas/Long'
- description: The size of the layer archive in bytes.
SigningProfileVersionArn:
allOf:
- $ref: '#/components/schemas/String'
- description: The Amazon Resource Name (ARN) for a signing profile version.
SigningJobArn:
allOf:
- $ref: '#/components/schemas/String'
- description: The Amazon Resource Name (ARN) of a signing job.
description: Details about a version of an Lambda layer.
GetLayerVersionResponse:
type: object
properties:
Content:
allOf:
- $ref: '#/components/schemas/LayerVersionContentOutput'
- description: Details about the layer version.
LayerArn:
allOf:
- $ref: '#/components/schemas/LayerArn'
- description: The ARN of the layer.
LayerVersionArn:
allOf:
- $ref: '#/components/schemas/LayerVersionArn'
- description: The ARN of the layer version.
Description:
allOf:
- $ref: '#/components/schemas/Description'
- description: The description of the version.
CreatedDate:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
Version:
allOf:
- $ref: '#/components/schemas/LayerVersionNumber'
- description: The version number.
CompatibleRuntimes:
allOf:
- $ref: '#/components/schemas/CompatibleRuntimes'
- description: The layer's compatible runtimes.
LicenseInfo:
allOf:
- $ref: '#/components/schemas/LicenseInfo'
- description: The layer's software license.
CompatibleArchitectures:
allOf:
- $ref: '#/components/schemas/CompatibleArchitectures'
- description: A list of compatible instruction set architectures.
LayerName:
type: string
pattern: (arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+)|[a-zA-Z0-9-_]+
minLength: 1
maxLength: 140
ResourceNotFoundException: {}
Runtime:
type: string
enum:
- nodejs
- nodejs4.3
- nodejs6.10
- nodejs8.10
- nodejs10.x
- nodejs12.x
- nodejs14.x
- nodejs16.x
- java8
- java8.al2
- java11
- python2.7
- python3.6
- python3.7
- python3.8
- python3.9
- dotnetcore1.0
- dotnetcore2.0
- dotnetcore2.1
- dotnetcore3.1
- dotnet6
- nodejs4.3-edge
- go1.x
- ruby2.5
- ruby2.7
- provided
- provided.al2
- nodejs18.x
- python3.10
LayerVersionNumber:
type: integer
ListLayerVersionsResponse:
type: object
properties:
NextMarker:
allOf:
- $ref: '#/components/schemas/String'
- description: A pagination token returned when the response doesn't contain all versions.
LayerVersions:
allOf:
- $ref: '#/components/schemas/LayerVersionsList'
- description: A list of versions.
InvalidParameterValueException: {}
S3ObjectVersion:
type: string
minLength: 1
maxLength: 1024
CompatibleRuntimes:
type: array
items:
$ref: '#/components/schemas/Runtime'
maxItems: 15
Blob:
type: string
format: password
TooManyRequestsException: {}
LicenseInfo:
type: string
maxLength: 512
ResourceConflictException: {}
CodeStorageExceededException: {}
LayersList:
type: array
items:
$ref: '#/components/schemas/LayersListItem'
GetLayerVersionPolicyResponse:
type: object
properties:
Policy:
allOf:
- $ref: '#/components/schemas/String'
- description: The policy document.
RevisionId:
allOf:
- $ref: '#/components/schemas/String'
- description: A unique identifier for the current revision of the policy.
Description:
type: string
minLength: 0
maxLength: 256
LayersListItem:
type: object
properties:
LayerName:
allOf:
- $ref: '#/components/schemas/LayerName'
- description: The name of the layer.
LayerArn:
allOf:
- $ref: '#/components/schemas/LayerArn'
- description: The Amazon Resource Name (ARN) of the function layer.
LatestMatchingVersion:
allOf:
- $ref: '#/components/schemas/LayerVersionsListItem'
- description: The newest version of the layer.
description: Details about an Lambda layer.
PolicyLengthExceededException: {}
Timestamp:
type: string
CompatibleArchitectures:
type: array
items:
$ref: '#/components/schemas/Architecture'
maxItems: 2
Architecture:
type: string
enum:
- x86_64
- arm64
String:
type: string
LayerVersionArn:
type: string
pattern: arn:[a-zA-Z0-9-]+:lambda:[a-zA-Z0-9-]+:\d{12}:layer:[a-zA-Z0-9-_]+:[0-9]+
minLength: 1
maxLength: 140
S3Bucket:
type: string
pattern: ^[0-9A-Za-z\.\-_]*(?