AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

PublishLayerVersionInput

import "github.com/aws/aws-sdk-go/service/lambda"

type PublishLayerVersionInput struct { CompatibleRuntimes []*string `type:"list"` Content *LayerVersionContentInput `type:"structure" required:"true"` Description *string `type:"string"` LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` LicenseInfo *string `type:"string"` }

CompatibleRuntimes

Type: []*string

A list of compatible function runtimes (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). Used for filtering with ListLayers and ListLayerVersions.

Content

A ZIP archive that contains the contents of an AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). You can specify either an Amazon S3 location, or upload a layer archive directly.

Description

Type: *string

The description of the version.

LayerName

Type: *string

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

LayerName is a required field

LicenseInfo

Type: *string

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

  • The full text of the license.

Method

GoString

func (s PublishLayerVersionInput) GoString() string

GoString returns the string representation

SetCompatibleRuntimes

func (s *PublishLayerVersionInput) SetCompatibleRuntimes(v []*string) *PublishLayerVersionInput

SetCompatibleRuntimes sets the CompatibleRuntimes field's value.

SetContent

func (s *PublishLayerVersionInput) SetContent(v *LayerVersionContentInput) *PublishLayerVersionInput

SetContent sets the Content field's value.

SetDescription

func (s *PublishLayerVersionInput) SetDescription(v string) *PublishLayerVersionInput

SetDescription sets the Description field's value.

SetLayerName

func (s *PublishLayerVersionInput) SetLayerName(v string) *PublishLayerVersionInput

SetLayerName sets the LayerName field's value.

SetLicenseInfo

func (s *PublishLayerVersionInput) SetLicenseInfo(v string) *PublishLayerVersionInput

SetLicenseInfo sets the LicenseInfo field's value.

String

func (s PublishLayerVersionInput) String() string

String returns the string representation

Validate

func (s *PublishLayerVersionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: