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-4.0.12 lib/jets/resource/lambda/layer_version.rb
jets-4.0.11 lib/jets/resource/lambda/layer_version.rb
jets-4.0.10 lib/jets/resource/lambda/layer_version.rb
jets-4.0.9 lib/jets/resource/lambda/layer_version.rb
jets-4.0.8 lib/jets/resource/lambda/layer_version.rb
jets-4.0.7 lib/jets/resource/lambda/layer_version.rb
jets-4.0.6 lib/jets/resource/lambda/layer_version.rb
jets-4.0.5 lib/jets/resource/lambda/layer_version.rb
jets-4.0.4 lib/jets/resource/lambda/layer_version.rb
jets-4.0.3 lib/jets/resource/lambda/layer_version.rb
jets-4.0.2 lib/jets/resource/lambda/layer_version.rb
jets-4.0.1 lib/jets/resource/lambda/layer_version.rb
jets-4.0.0 lib/jets/resource/lambda/layer_version.rb
jets-3.2.2 lib/jets/resource/lambda/layer_version.rb
jets-3.2.1 lib/jets/resource/lambda/layer_version.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/resource/lambda/layer_version.rb
jets-3.2.0 lib/jets/resource/lambda/layer_version.rb
jets-3.1.5 lib/jets/resource/lambda/layer_version.rb
jets-3.1.4 lib/jets/resource/lambda/layer_version.rb
jets-3.1.3 lib/jets/resource/lambda/layer_version.rb