Sha256: 7b302f621ea7e91a53aa3ed6a6cfeef3cf5d36f54799567383b43b41266ad20a

Contents?: true

Size: 884 Bytes

Versions: 164

Compression:

Stored size: 884 Bytes

Contents

# Type: "AWS::Lambda::LayerVersion"
# Properties:
#   CompatibleRuntimes:
#     - String
#     - ...
#   Content:
#     Content
#   Description: String
#   LayerName: String
#   LicenseInfo: String
module Jets::Resource::Lambda
  class LayerVersion < Jets::Resource::Base
    def definition
      {
        layer_version_logical_id => {
          type: "AWS::Lambda::LayerVersion",
          properties: {
            content: {
              s3_bucket: s3_bucket,
              s3_key: code_s3_key,
            },
            description: description,
            layer_name: layer_name,
            license_info: "MIT",
          }
        }
      }
    end

    def s3_bucket
      "!Ref S3Bucket"
    end

    def layer_version_logical_id
      self.class.name.split('::').last
    end

    def outputs
      {
        logical_id => "!Ref #{logical_id}",
      }
    end
  end
end

Version data entries

164 entries across 164 versions & 4 rubygems

Version Path
jets-2.1.1 lib/jets/resource/lambda/layer_version.rb
jets-2.1.0 lib/jets/resource/lambda/layer_version.rb
jets-2.0.6 lib/jets/resource/lambda/layer_version.rb
jets-2.0.5 lib/jets/resource/lambda/layer_version.rb
jets-2.0.4 lib/jets/resource/lambda/layer_version.rb
jets-2.0.3 lib/jets/resource/lambda/layer_version.rb
jets-2.0.1 lib/jets/resource/lambda/layer_version.rb
jets-2.0.0 lib/jets/resource/lambda/layer_version.rb
jets-1.9.32 lib/jets/resource/lambda/layer_version.rb
jets-1.9.31 lib/jets/resource/lambda/layer_version.rb
jets-1.9.30 lib/jets/resource/lambda/layer_version.rb
jets-1.9.29 lib/jets/resource/lambda/layer_version.rb
jets-1.9.28 lib/jets/resource/lambda/layer_version.rb
jets-1.9.27 lib/jets/resource/lambda/layer_version.rb
jets-1.9.26 lib/jets/resource/lambda/layer_version.rb
jets-1.9.25 lib/jets/resource/lambda/layer_version.rb
jets-1.9.24 lib/jets/resource/lambda/layer_version.rb
jets-1.9.23 lib/jets/resource/lambda/layer_version.rb
jets-1.9.22 lib/jets/resource/lambda/layer_version.rb
jets-1.9.21 lib/jets/resource/lambda/layer_version.rb