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.

ResourcePolicy

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

type ResourcePolicy struct { LastUpdatedTime *int64 `locationName:"lastUpdatedTime" type:"long"` PolicyDocument *string `locationName:"policyDocument" min:"1" type:"string"` PolicyName *string `locationName:"policyName" type:"string"` }

A policy enabling one or more entities to put logs to a log group in this account.

LastUpdatedTime

Type: *int64

Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

PolicyDocument

Type: *string

The details of the policy.

PolicyName

Type: *string

The name of the resource policy.

Method

GoString

func (s ResourcePolicy) GoString() string

GoString returns the string representation

SetLastUpdatedTime

func (s *ResourcePolicy) SetLastUpdatedTime(v int64) *ResourcePolicy

SetLastUpdatedTime sets the LastUpdatedTime field's value.

SetPolicyDocument

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

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

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

SetPolicyName sets the PolicyName field's value.

String

func (s ResourcePolicy) String() string

String returns the string representation

On this page: