Class: Aws::Lambda::Types::PublishLayerVersionRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lambda/types.rb

Overview

Note:

When making an API call, you may pass PublishLayerVersionRequest data as a hash:

{
  layer_name: "LayerName", # required
  description: "Description",
  content: { # required
    s3_bucket: "S3Bucket",
    s3_key: "S3Key",
    s3_object_version: "S3ObjectVersion",
    zip_file: "data",
  },
  compatible_runtimes: ["nodejs"], # accepts nodejs, nodejs4.3, nodejs6.10, nodejs8.10, java8, python2.7, python3.6, python3.7, dotnetcore1.0, dotnetcore2.0, dotnetcore2.1, nodejs4.3-edge, go1.x, ruby2.5, provided
  license_info: "LicenseInfo",
}

Instance Attribute Summary collapse

Instance Attribute Details

#compatible_runtimesArray<String>

A list of compatible [function runtimes]. Used for filtering with ListLayers and ListLayerVersions.

[1]: docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

Returns:

  • (Array<String>)


2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/aws-sdk-lambda/types.rb', line 2259

class PublishLayerVersionRequest < Struct.new(
  :layer_name,
  :description,
  :content,
  :compatible_runtimes,
  :license_info)
  include Aws::Structure
end

#contentTypes::LayerVersionContentInput

The function layer archive.



2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/aws-sdk-lambda/types.rb', line 2259

class PublishLayerVersionRequest < Struct.new(
  :layer_name,
  :description,
  :content,
  :compatible_runtimes,
  :license_info)
  include Aws::Structure
end

#descriptionString

The description of the version.

Returns:

  • (String)


2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/aws-sdk-lambda/types.rb', line 2259

class PublishLayerVersionRequest < Struct.new(
  :layer_name,
  :description,
  :content,
  :compatible_runtimes,
  :license_info)
  include Aws::Structure
end

#layer_nameString

The name or Amazon Resource Name (ARN) of the layer.

Returns:

  • (String)


2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/aws-sdk-lambda/types.rb', line 2259

class PublishLayerVersionRequest < Struct.new(
  :layer_name,
  :description,
  :content,
  :compatible_runtimes,
  :license_info)
  include Aws::Structure
end

#license_infoString

The layer’s software license. It can be any of the following:

[1]: spdx.org/licenses/

Returns:

  • (String)


2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/aws-sdk-lambda/types.rb', line 2259

class PublishLayerVersionRequest < Struct.new(
  :layer_name,
  :description,
  :content,
  :compatible_runtimes,
  :license_info)
  include Aws::Structure
end