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.

RemovePermissionInput

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

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

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 remove permissions from a published version of the function.

RevisionId

Type: *string

Only update the policy if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

StatementId

Type: *string

Statement ID of the permission to remove.

StatementId is a required field

Method

GoString

func (s RemovePermissionInput) GoString() string

GoString returns the string representation

SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

SetQualifier

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

SetQualifier sets the Qualifier field's value.

SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

SetStatementId

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

SetStatementId sets the StatementId field's value.

String

func (s RemovePermissionInput) String() string

String returns the string representation

Validate

func (s *RemovePermissionInput) Validate() error

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

On this page: