Class: AWSCDK::Logs::CfnIntegrationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnIntegrationProps
- Defined in:
- logs/cfn_integration_props.rb
Overview
Properties for defining a CfnIntegration.
Instance Attribute Summary collapse
-
#integration_name ⇒ String
readonly
The name of this integration.
-
#integration_type ⇒ String
readonly
The type of integration.
-
#resource_config ⇒ AWSCDK::IResolvable, AWSCDK::Logs::CfnIntegration::ResourceConfigProperty
readonly
This structure contains configuration details about an integration between CloudWatch Logs and another entity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(integration_name:, integration_type:, resource_config:) ⇒ CfnIntegrationProps
constructor
A new instance of CfnIntegrationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(integration_name:, integration_type:, resource_config:) ⇒ CfnIntegrationProps
Returns a new instance of CfnIntegrationProps.
12 13 14 15 16 17 18 19 |
# File 'logs/cfn_integration_props.rb', line 12 def initialize(integration_name:, integration_type:, resource_config:) @integration_name = integration_name Jsii::Type.check_type(@integration_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integrationName") @integration_type = integration_type Jsii::Type.check_type(@integration_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "integrationType") @resource_config = resource_config.is_a?(Hash) ? ::AWSCDK::Logs::CfnIntegration::ResourceConfigProperty.new(**resource_config.transform_keys(&:to_sym)) : resource_config Jsii::Type.check_type(@resource_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLkNmbkludGVncmF0aW9uLlJlc291cmNlQ29uZmlnUHJvcGVydHkifV19fQ==")), "resourceConfig") end |
Instance Attribute Details
#integration_name ⇒ String (readonly)
The name of this integration.
25 26 27 |
# File 'logs/cfn_integration_props.rb', line 25 def integration_name @integration_name end |
#integration_type ⇒ String (readonly)
The type of integration.
Integrations with OpenSearch Service have the type OPENSEARCH .
32 33 34 |
# File 'logs/cfn_integration_props.rb', line 32 def integration_type @integration_type end |
#resource_config ⇒ AWSCDK::IResolvable, AWSCDK::Logs::CfnIntegration::ResourceConfigProperty (readonly)
This structure contains configuration details about an integration between CloudWatch Logs and another entity.
37 38 39 |
# File 'logs/cfn_integration_props.rb', line 37 def resource_config @resource_config end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'logs/cfn_integration_props.rb', line 39 def self.jsii_properties { :integration_name => "integrationName", :integration_type => "integrationType", :resource_config => "resourceConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'logs/cfn_integration_props.rb', line 47 def to_jsii result = {} result.merge!({ "integrationName" => @integration_name, "integrationType" => @integration_type, "resourceConfig" => @resource_config, }) result.compact end |