Class: Aws::CloudWatchLogs::Types::ResourcePolicy

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#last_updated_time ⇒ Integer

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

Returns:

  • (Integer)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_document ⇒ String

The details of the policy.

Returns:

  • (String)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_name ⇒ String

The name of the resource policy.

Returns:

  • (String)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#policy_scope ⇒ String

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

Returns:

  • (String)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arn ⇒ String

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

Returns:

  • (String)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end

#revision_id ⇒ String

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

Returns:

  • (String)


9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 9497

class ResourcePolicy < Struct.new(
  :policy_name,
  :policy_document,
  :last_updated_time,
  :policy_scope,
  :resource_arn,
  :revision_id)
  SENSITIVE = []
  include Aws::Structure
end