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.

PutResourcePolicyInput

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

type PutResourcePolicyInput struct { PolicyExistsCondition *string `type:"string" enum:"ExistCondition"` PolicyHashCondition *string `min:"1" type:"string"` PolicyInJson *string `min:"2" type:"string" required:"true"` }

PolicyExistsCondition

Type: *string

A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to create a new policy. If a value of NONE or a null value is used, the call will not depend on the existence of a policy.

PolicyHashCondition

Type: *string

The hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.

PolicyInJson

Type: *string

Contains the policy document to set, in JSON format.

PolicyInJson is a required field

Method

GoString

func (s PutResourcePolicyInput) GoString() string

GoString returns the string representation

SetPolicyExistsCondition

func (s *PutResourcePolicyInput) SetPolicyExistsCondition(v string) *PutResourcePolicyInput

SetPolicyExistsCondition sets the PolicyExistsCondition field's value.

SetPolicyHashCondition

func (s *PutResourcePolicyInput) SetPolicyHashCondition(v string) *PutResourcePolicyInput

SetPolicyHashCondition sets the PolicyHashCondition field's value.

SetPolicyInJson

func (s *PutResourcePolicyInput) SetPolicyInJson(v string) *PutResourcePolicyInput

SetPolicyInJson sets the PolicyInJson field's value.

String

func (s PutResourcePolicyInput) String() string

String returns the string representation

Validate

func (s *PutResourcePolicyInput) Validate() error

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

On this page: