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.

AddLayerVersionPermissionInput

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

type AddLayerVersionPermissionInput struct { Action *string `type:"string" required:"true"` LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` OrganizationId *string `type:"string"` Principal *string `type:"string" required:"true"` RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` StatementId *string `min:"1" type:"string" required:"true"` VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` }

Action

Type: *string

The API action that grants access to the layer. For example, lambda:GetLayerVersion.

Action is a required field

LayerName

Type: *string

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

LayerName is a required field

OrganizationId

Type: *string

With the principal set to *, grant permission to all accounts in the specified organization.

Principal

Type: *string

An account ID, or * to grant permission to all AWS accounts.

Principal is a required field

RevisionId

Type: *string

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.

StatementId

Type: *string

An identifier that distinguishes the policy from others on the same layer version.

StatementId is a required field

VersionNumber

Type: *int64

The version number.

VersionNumber is a required field

Method

GoString

func (s AddLayerVersionPermissionInput) GoString() string

GoString returns the string representation

SetAction

func (s *AddLayerVersionPermissionInput) SetAction(v string) *AddLayerVersionPermissionInput

SetAction sets the Action field's value.

SetLayerName

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

SetLayerName sets the LayerName field's value.

SetOrganizationId

func (s *AddLayerVersionPermissionInput) SetOrganizationId(v string) *AddLayerVersionPermissionInput

SetOrganizationId sets the OrganizationId field's value.

SetPrincipal

func (s *AddLayerVersionPermissionInput) SetPrincipal(v string) *AddLayerVersionPermissionInput

SetPrincipal sets the Principal field's value.

SetRevisionId

func (s *AddLayerVersionPermissionInput) SetRevisionId(v string) *AddLayerVersionPermissionInput

SetRevisionId sets the RevisionId field's value.

SetStatementId

func (s *AddLayerVersionPermissionInput) SetStatementId(v string) *AddLayerVersionPermissionInput

SetStatementId sets the StatementId field's value.

SetVersionNumber

func (s *AddLayerVersionPermissionInput) SetVersionNumber(v int64) *AddLayerVersionPermissionInput

SetVersionNumber sets the VersionNumber field's value.

String

func (s AddLayerVersionPermissionInput) String() string

String returns the string representation

Validate

func (s *AddLayerVersionPermissionInput) Validate() error

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

On this page: