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.

CreatePolicyVersionInput

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

type CreatePolicyVersionInput struct { PolicyDocument *string `locationName:"policyDocument" type:"string" required:"true"` PolicyName *string `location:"uri" locationName:"policyName" min:"1" type:"string" required:"true"` SetAsDefault *bool `location:"querystring" locationName:"setAsDefault" type:"boolean"` }

The input for the CreatePolicyVersion operation.

PolicyDocument

Type: *string

The JSON document that describes the policy. Minimum length of 1. Maximum length of 2048, excluding whitespace.

PolicyDocument is a required field

PolicyName

Type: *string

The policy name.

PolicyName is a required field

SetAsDefault

Type: *bool

Specifies whether the policy version is set as the default. When this parameter is true, the new policy version becomes the operative version (that is, the version that is in effect for the certificates to which the policy is attached).

Method

GoString

func (s CreatePolicyVersionInput) GoString() string

GoString returns the string representation

SetPolicyDocument

func (s *CreatePolicyVersionInput) SetPolicyDocument(v string) *CreatePolicyVersionInput

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

func (s *CreatePolicyVersionInput) SetPolicyName(v string) *CreatePolicyVersionInput

SetPolicyName sets the PolicyName field's value.

SetSetAsDefault

func (s *CreatePolicyVersionInput) SetSetAsDefault(v bool) *CreatePolicyVersionInput

SetSetAsDefault sets the SetAsDefault field's value.

String

func (s CreatePolicyVersionInput) String() string

String returns the string representation

Validate

func (s *CreatePolicyVersionInput) Validate() error

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

On this page: