class Amazonite::CloudWatchLogs::ResourcePolicy

Overview

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

Included Modules

Defined in:

cloudwatch_logs/resource_policy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(policy_name : String | Nil = nil, policy_document : String | Nil = nil, last_updated_time : Int64 | Nil = nil, policy_scope : PolicyScope | Nil = nil, resource_arn : String | Nil = nil, revision_id : String | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def last_updated_time : Int64 | Nil #

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


[View source]
def last_updated_time=(last_updated_time : Int64 | Nil) #

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


[View source]
def policy_document : String | Nil #

The details of the policy.


[View source]
def policy_document=(policy_document : String | Nil) #

The details of the policy.


[View source]
def policy_name : String | Nil #

The name of the resource policy.


[View source]
def policy_name=(policy_name : String | Nil) #

The name of the resource policy.


[View source]
def policy_scope : PolicyScope | Nil #

Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.


[View source]
def policy_scope=(policy_scope : PolicyScope | Nil) #

Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.


[View source]
def resource_arn : String | Nil #

The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.


[View source]
def resource_arn=(resource_arn : String | Nil) #

The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.


[View source]
def revision_id : String | Nil #

The revision ID of the resource policy. Only populated for resource-scoped policies.


[View source]
def revision_id=(revision_id : String | Nil) #

The revision ID of the resource policy. Only populated for resource-scoped policies.


[View source]
def validate! : Nil #

[View source]