class Amazonite::CloudWatchLogs::OpenSearchResourceConfig

Overview

This structure contains configuration details about an integration between CloudWatch Logs and OpenSearch Service.

Included Modules

Defined in:

cloudwatch_logs/open_search_resource_config.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data_source_role_arn : String, dashboard_viewer_principals : Array(String), retention_days : Int32, kms_key_arn : String | Nil = nil, application_arn : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[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 application_arn : String | Nil #

If you want to use an existing OpenSearch Service application for your integration with OpenSearch Service, specify it here. If you omit this, a new application will be created.


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

If you want to use an existing OpenSearch Service application for your integration with OpenSearch Service, specify it here. If you omit this, a new application will be created.


[View source]
def dashboard_viewer_principals : Array(String) #

Specify the ARNs of IAM roles and IAM users who you want to grant permission to for viewing the dashboards.

In addition to specifying these users here, you must also grant them the CloudWatchOpenSearchDashboardAccess IAM policy. For more information, see IAM policies for users.


[View source]
def dashboard_viewer_principals=(dashboard_viewer_principals : Array(String)) #

Specify the ARNs of IAM roles and IAM users who you want to grant permission to for viewing the dashboards.

In addition to specifying these users here, you must also grant them the CloudWatchOpenSearchDashboardAccess IAM policy. For more information, see IAM policies for users.


[View source]
def data_source_role_arn : String #

Specify the ARN of an IAM role that CloudWatch Logs will use to create the integration. This role must have the permissions necessary to access the OpenSearch Service collection to be able to create the dashboards. For more information about the permissions needed, see Permissions that the integration needs in the CloudWatch Logs User Guide.


[View source]
def data_source_role_arn=(data_source_role_arn : String) #

Specify the ARN of an IAM role that CloudWatch Logs will use to create the integration. This role must have the permissions necessary to access the OpenSearch Service collection to be able to create the dashboards. For more information about the permissions needed, see Permissions that the integration needs in the CloudWatch Logs User Guide.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def kms_key_arn : String | Nil #

To have the vended dashboard data encrypted with KMS instead of the CloudWatch Logs default encryption method, specify the ARN of the KMS key that you want to use.


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

To have the vended dashboard data encrypted with KMS instead of the CloudWatch Logs default encryption method, specify the ARN of the KMS key that you want to use.


[View source]
def retention_days : Int32 #

Specify how many days that you want the data derived by OpenSearch Service to be retained in the index that the dashboard refers to. This also sets the maximum time period that you can choose when viewing data in the dashboard. Choosing a longer time frame will incur additional costs.


[View source]
def retention_days=(retention_days : Int32) #

Specify how many days that you want the data derived by OpenSearch Service to be retained in the index that the dashboard refers to. This also sets the maximum time period that you can choose when viewing data in the dashboard. Choosing a longer time frame will incur additional costs.


[View source]
def validate! : Nil #

[View source]