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.

ApplicationPolicyStatement

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

type ApplicationPolicyStatement struct { Actions []*string `locationName:"actions" type:"list" required:"true"` Principals []*string `locationName:"principals" type:"list" required:"true"` StatementId *string `locationName:"statementId" type:"string"` }

Policy statement applied to the application.

Actions

Type: []*string

For the list of actions supported for this operation, see Application Permissions (https://docs.aws.amazon.com/serverlessrepo/latest/devguide/access-control-resource-based.html#application-permissions).

Actions is a required field

Principals

Type: []*string

An AWS account ID, or * to make the application public.

Principals is a required field

StatementId

Type: *string

A unique ID for the statement.

Method

GoString

func (s ApplicationPolicyStatement) GoString() string

GoString returns the string representation

SetActions

func (s *ApplicationPolicyStatement) SetActions(v []*string) *ApplicationPolicyStatement

SetActions sets the Actions field's value.

SetPrincipals

func (s *ApplicationPolicyStatement) SetPrincipals(v []*string) *ApplicationPolicyStatement

SetPrincipals sets the Principals field's value.

SetStatementId

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

SetStatementId sets the StatementId field's value.

String

func (s ApplicationPolicyStatement) String() string

String returns the string representation

Validate

func (s *ApplicationPolicyStatement) Validate() error

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

On this page: