Class: AWSCDK::Logs::LogGroup
- Inherits:
-
Resource
- Object
- Resource
- AWSCDK::Logs::LogGroup
- Includes:
- ILogGroup
- Defined in:
- logs/log_group.rb
Overview
Define a CloudWatch Log Group.
Class Method Summary collapse
-
.from_log_group_arn(scope, id, log_group_arn) ⇒ AWSCDK::Logs::ILogGroup
Import an existing LogGroup given its ARN.
-
.from_log_group_name(scope, id, log_group_name) ⇒ AWSCDK::Logs::ILogGroup
Import an existing LogGroup given its name.
- .jsii_overridable_methods ⇒ Object
-
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
Instance Method Summary collapse
-
#add_metric_filter(id, props) ⇒ AWSCDK::Logs::MetricFilter
Create a new Metric Filter on this Log Group.
-
#add_stream(id, props = nil) ⇒ AWSCDK::Logs::LogStream
Create a new Log Stream for this Log Group.
-
#add_subscription_filter(id, props) ⇒ AWSCDK::Logs::SubscriptionFilter
Create a new Subscription Filter on this Log Group.
-
#add_to_resource_policy(statement) ⇒ AWSCDK::IAM::AddToResourcePolicyResult
Adds a statement to the resource policy associated with this log group.
-
#add_transformer(id, props) ⇒ AWSCDK::Logs::Transformer
Create a new Transformer on this Log Group.
-
#apply_cross_stack_reference_strength(strength) ⇒ void
Override the cross-stack reference strength for this resource.
-
#apply_removal_policy(policy) ⇒ void
Apply the given removal policy to this resource.
-
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
-
#extract_metric(json_field, metric_namespace, metric_name) ⇒ AWSCDK::CloudWatch::Metric
Extract a metric from structured log events in the LogGroup.
- #generate_physical_name ⇒ String
-
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g.
bucket.bucketArn). -
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g.
bucket.bucketName). -
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
Give the indicated permissions on this log group and all streams.
-
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Give permissions to read and filter events from this log group.
-
#grant_write(grantee) ⇒ AWSCDK::IAM::Grant
Give permissions to create and write to streams in this log group.
-
#grants ⇒ AWSCDK::Logs::LogGroupGrants
Collection of grant methods for a LogGroup.
-
#initialize(scope, id, props = nil) ⇒ LogGroup
constructor
A new instance of LogGroup.
-
#log_group_arn ⇒ String
The ARN of this log group.
-
#log_group_name ⇒ String
The name of this log group.
-
#log_group_physical_name ⇒ String
Public method to get the physical name of this log group.
-
#log_group_ref ⇒ AWSCDK::Interfaces::AWSLogs::LogGroupReference
A reference to a LogGroup resource.
-
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for this log group.
-
#metric_incoming_bytes(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for the volume of incoming log data in bytes to this log group.
-
#metric_incoming_log_events(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for the number of incoming log events to this log group.
-
#node ⇒ Constructs::Node
The tree node.
-
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
-
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props = nil) ⇒ LogGroup
Returns a new instance of LogGroup.
12 13 14 15 16 17 18 |
# File 'logs/log_group.rb', line 12 def initialize(scope, id, props = nil) props = props.is_a?(Hash) ? ::AWSCDK::Logs::LogGroupProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5Mb2dHcm91cFByb3BzIn0=")), "props") unless props.nil? Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.from_log_group_arn(scope, id, log_group_arn) ⇒ AWSCDK::Logs::ILogGroup
Import an existing LogGroup given its ARN.
59 60 61 62 63 64 |
# File 'logs/log_group.rb', line 59 def self.from_log_group_arn(scope, id, log_group_arn) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupArn") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_logs.LogGroup", "fromLogGroupArn", [scope, id, log_group_arn]) end |
.from_log_group_name(scope, id, log_group_name) ⇒ AWSCDK::Logs::ILogGroup
Import an existing LogGroup given its name.
72 73 74 75 76 77 |
# File 'logs/log_group.rb', line 72 def self.from_log_group_name(scope, id, log_group_name) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_logs.LogGroup", "fromLogGroupName", [scope, id, log_group_name]) end |
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'logs/log_group.rb', line 20 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :env => { kind: :property, name: "env", is_optional: false }, :physical_name => { kind: :property, name: "physicalName", is_optional: false }, :stack => { kind: :property, name: "stack", is_optional: false }, :grants => { kind: :property, name: "grants", is_optional: false }, :log_group_arn => { kind: :property, name: "logGroupArn", is_optional: false }, :log_group_name => { kind: :property, name: "logGroupName", is_optional: false }, :log_group_ref => { kind: :property, name: "logGroupRef", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :apply_cross_stack_reference_strength => { kind: :method, name: "applyCrossStackReferenceStrength", is_optional: false }, :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false }, :generate_physical_name => { kind: :method, name: "generatePhysicalName", is_optional: false }, :get_resource_arn_attribute => { kind: :method, name: "getResourceArnAttribute", is_optional: false }, :get_resource_name_attribute => { kind: :method, name: "getResourceNameAttribute", is_optional: false }, :add_metric_filter => { kind: :method, name: "addMetricFilter", is_optional: false }, :add_stream => { kind: :method, name: "addStream", is_optional: false }, :add_subscription_filter => { kind: :method, name: "addSubscriptionFilter", is_optional: false }, :add_to_resource_policy => { kind: :method, name: "addToResourcePolicy", is_optional: false }, :add_transformer => { kind: :method, name: "addTransformer", is_optional: false }, :extract_metric => { kind: :method, name: "extractMetric", is_optional: false }, :grant => { kind: :method, name: "grant", is_optional: false }, :grant_read => { kind: :method, name: "grantRead", is_optional: false }, :grant_write => { kind: :method, name: "grantWrite", is_optional: false }, :log_group_physical_name => { kind: :method, name: "logGroupPhysicalName", is_optional: false }, :metric => { kind: :method, name: "metric", is_optional: false }, :metric_incoming_bytes => { kind: :method, name: "metricIncomingBytes", is_optional: false }, :metric_incoming_log_events => { kind: :method, name: "metricIncomingLogEvents", is_optional: false }, } end |
.PROPERTY_INJECTION_ID ⇒ String
Uniquely identifies this class.
125 126 127 |
# File 'logs/log_group.rb', line 125 def self.PROPERTY_INJECTION_ID() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_logs.LogGroup", "PROPERTY_INJECTION_ID") end |
Instance Method Details
#add_metric_filter(id, props) ⇒ AWSCDK::Logs::MetricFilter
Create a new Metric Filter on this Log Group.
252 253 254 255 256 257 |
# File 'logs/log_group.rb', line 252 def add_metric_filter(id, props) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::Logs::MetricFilterOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5NZXRyaWNGaWx0ZXJPcHRpb25zIn0=")), "props") jsii_call_method("addMetricFilter", [id, props]) end |
#add_stream(id, props = nil) ⇒ AWSCDK::Logs::LogStream
Create a new Log Stream for this Log Group.
264 265 266 267 268 269 |
# File 'logs/log_group.rb', line 264 def add_stream(id, props = nil) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::Logs::StreamOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5TdHJlYW1PcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("addStream", [id, props]) end |
#add_subscription_filter(id, props) ⇒ AWSCDK::Logs::SubscriptionFilter
Create a new Subscription Filter on this Log Group.
276 277 278 279 280 281 |
# File 'logs/log_group.rb', line 276 def add_subscription_filter(id, props) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::Logs::SubscriptionFilterOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5TdWJzY3JpcHRpb25GaWx0ZXJPcHRpb25zIn0=")), "props") jsii_call_method("addSubscriptionFilter", [id, props]) end |
#add_to_resource_policy(statement) ⇒ AWSCDK::IAM::AddToResourcePolicyResult
Adds a statement to the resource policy associated with this log group.
A resource policy will be automatically created upon the first call to add_to_resource_policy.
Any ARN Principals inside of the statement will be converted into AWS Account ID strings because CloudWatch Logs Resource Policies do not accept ARN principals.
292 293 294 295 |
# File 'logs/log_group.rb', line 292 def add_to_resource_policy(statement) Jsii::Type.check_type(statement, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLlBvbGljeVN0YXRlbWVudCJ9")), "statement") jsii_call_method("addToResourcePolicy", [statement]) end |
#add_transformer(id, props) ⇒ AWSCDK::Logs::Transformer
Create a new Transformer on this Log Group.
302 303 304 305 306 307 |
# File 'logs/log_group.rb', line 302 def add_transformer(id, props) Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") props = props.is_a?(Hash) ? ::AWSCDK::Logs::TransformerOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5UcmFuc2Zvcm1lck9wdGlvbnMifQ==")), "props") jsii_call_method("addTransformer", [id, props]) end |
#apply_cross_stack_reference_strength(strength) ⇒ void
This method returns an undefined value.
Override the cross-stack reference strength for this resource.
When set, any cross-stack reference to this resource will use the specified
mechanism instead of the global default determined by the
@aws-cdk/core:defaultCrossStackReferences context key. This is useful for
selectively weakening specific references to avoid the "deadly embrace" problem
without changing the app-wide default.
190 191 192 193 |
# File 'logs/log_group.rb', line 190 def apply_cross_stack_reference_strength(strength) Jsii::Type.check_type(strength, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZWZlcmVuY2VTdHJlbmd0aCJ9")), "strength") jsii_call_method("applyCrossStackReferenceStrength", [strength]) end |
#apply_removal_policy(policy) ⇒ void
This method returns an undefined value.
Apply the given removal policy to this resource.
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
207 208 209 210 |
# File 'logs/log_group.rb', line 207 def apply_removal_policy(policy) Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy") jsii_call_method("applyRemovalPolicy", [policy]) end |
#env ⇒ AWSCDK::Interfaces::ResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed in a Stack (those created by
creating new class instances like new Role(), new Bucket(), etc.), this
is always the same as the environment of the stack they belong to.
For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be
different than the stack they were imported into.
97 98 99 |
# File 'logs/log_group.rb', line 97 def env() jsii_get_property("env") end |
#extract_metric(json_field, metric_namespace, metric_name) ⇒ AWSCDK::CloudWatch::Metric
Extract a metric from structured log events in the LogGroup.
Creates a MetricFilter on this LogGroup that will extract the value of the indicated JSON field in all records where it occurs.
The metric will be available in CloudWatch Metrics under the indicated namespace and name.
321 322 323 324 325 326 |
# File 'logs/log_group.rb', line 321 def extract_metric(json_field, metric_namespace, metric_name) Jsii::Type.check_type(json_field, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jsonField") Jsii::Type.check_type(metric_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricNamespace") Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") jsii_call_method("extractMetric", [json_field, metric_namespace, metric_name]) end |
#generate_physical_name ⇒ String
213 214 215 |
# File 'logs/log_group.rb', line 213 def generate_physical_name() jsii_call_method("generatePhysicalName", []) end |
#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. bucket.bucketArn).
Normally, this token will resolve to arn_attr, but if the resource is
referenced across environments, arn_components will be used to synthesize
a concrete ARN with the resource's physical name. Make sure to reference
this.physicalName in arn_components.
227 228 229 230 231 232 |
# File 'logs/log_group.rb', line 227 def get_resource_arn_attribute(arn_attr, arn_components) Jsii::Type.check_type(arn_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnAttr") arn_components = arn_components.is_a?(Hash) ? ::AWSCDK::ARNComponents.new(**arn_components.transform_keys(&:to_sym)) : arn_components Jsii::Type.check_type(arn_components, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Bcm5Db21wb25lbnRzIn0=")), "arnComponents") jsii_call_method("getResourceArnAttribute", [arn_attr, arn_components]) end |
#get_resource_name_attribute(name_attr) ⇒ String
Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. bucket.bucketName).
Normally, this token will resolve to name_attr, but if the resource is
referenced across environments, it will be resolved to this.physicalName,
which will be a concrete name.
242 243 244 245 |
# File 'logs/log_group.rb', line 242 def get_resource_name_attribute(name_attr) Jsii::Type.check_type(name_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nameAttr") jsii_call_method("getResourceNameAttribute", [name_attr]) end |
#grant(grantee, *actions) ⇒ AWSCDK::IAM::Grant
Give the indicated permissions on this log group and all streams.
[disable-awslint:no-grants]
335 336 337 338 339 340 341 |
# File 'logs/log_group.rb', line 335 def grant(grantee, *actions) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") actions.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "actions[#{index}]") end jsii_call_method("grant", [grantee, *actions]) end |
#grant_read(grantee) ⇒ AWSCDK::IAM::Grant
Give permissions to read and filter events from this log group.
The use of this method is discouraged. Please use grants.read() instead.
[disable-awslint:no-grants]
351 352 353 354 |
# File 'logs/log_group.rb', line 351 def grant_read(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantRead", [grantee]) end |
#grant_write(grantee) ⇒ AWSCDK::IAM::Grant
Give permissions to create and write to streams in this log group.
The use of this method is discouraged. Please use grants.write() instead.
[disable-awslint:no-grants]
364 365 366 367 |
# File 'logs/log_group.rb', line 364 def grant_write(grantee) Jsii::Type.check_type(grantee, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklHcmFudGFibGUifQ==")), "grantee") jsii_call_method("grantWrite", [grantee]) end |
#grants ⇒ AWSCDK::Logs::LogGroupGrants
Collection of grant methods for a LogGroup.
132 133 134 |
# File 'logs/log_group.rb', line 132 def grants() jsii_get_property("grants") end |
#log_group_arn ⇒ String
The ARN of this log group.
139 140 141 |
# File 'logs/log_group.rb', line 139 def log_group_arn() jsii_get_property("logGroupArn") end |
#log_group_name ⇒ String
The name of this log group.
146 147 148 |
# File 'logs/log_group.rb', line 146 def log_group_name() jsii_get_property("logGroupName") end |
#log_group_physical_name ⇒ String
Public method to get the physical name of this log group.
372 373 374 |
# File 'logs/log_group.rb', line 372 def log_group_physical_name() jsii_call_method("logGroupPhysicalName", []) end |
#log_group_ref ⇒ AWSCDK::Interfaces::AWSLogs::LogGroupReference
A reference to a LogGroup resource.
153 154 155 |
# File 'logs/log_group.rb', line 153 def log_group_ref() jsii_get_property("logGroupRef") end |
#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for this log group.
381 382 383 384 385 386 |
# File 'logs/log_group.rb', line 381 def metric(metric_name, props = nil) Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName") props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metric", [metric_name, props]) end |
#metric_incoming_bytes(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for the volume of incoming log data in bytes to this log group.
392 393 394 395 396 |
# File 'logs/log_group.rb', line 392 def metric_incoming_bytes(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricIncomingBytes", [props]) end |
#metric_incoming_log_events(props = nil) ⇒ AWSCDK::CloudWatch::Metric
Creates a CloudWatch metric for the number of incoming log events to this log group.
402 403 404 405 406 |
# File 'logs/log_group.rb', line 402 def metric_incoming_log_events(props = nil) props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil? jsii_call_method("metricIncomingLogEvents", [props]) end |
#node ⇒ Constructs::Node
The tree node.
82 83 84 |
# File 'logs/log_group.rb', line 82 def node() jsii_get_property("node") end |
#physical_name ⇒ String
Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.
This value will resolve to one of the following:
- a concrete value (e.g.
"my-awesome-bucket") undefined, when a name should be generated by CloudFormation- a concrete name generated automatically during synthesis, in cross-environment scenarios.
111 112 113 |
# File 'logs/log_group.rb', line 111 def physical_name() jsii_get_property("physicalName") end |
#stack ⇒ AWSCDK::Stack
The stack in which this resource is defined.
118 119 120 |
# File 'logs/log_group.rb', line 118 def stack() jsii_get_property("stack") end |
#to_string ⇒ String
Returns a string representation of this construct.
160 161 162 |
# File 'logs/log_group.rb', line 160 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
173 174 175 176 177 178 |
# File 'logs/log_group.rb', line 173 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |