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.

GetPolicyInput

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

type GetPolicyInput struct { FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` }

FunctionName

Type: *string

The name of the Lambda function, version, or alias.

Name formats

  • Function name - my-function (name-only), my-function:v1 (with alias).

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN - 123456789012:function:my-function.

You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionName is a required field

Qualifier

Type: *string

Specify a version or alias to get the policy for that resource.

Method

GoString

func (s GetPolicyInput) GoString() string

GoString returns the string representation

SetFunctionName

func (s *GetPolicyInput) SetFunctionName(v string) *GetPolicyInput

SetFunctionName sets the FunctionName field's value.

SetQualifier

func (s *GetPolicyInput) SetQualifier(v string) *GetPolicyInput

SetQualifier sets the Qualifier field's value.

String

func (s GetPolicyInput) String() string

String returns the string representation

Validate

func (s *GetPolicyInput) Validate() error

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

On this page: