Class: AWSCDK::CustomResources::CustomResourceConfig
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::CustomResources::CustomResourceConfig
- Defined in:
- custom_resources/custom_resource_config.rb
Overview
Manages AWS-vended Custom Resources.
This feature is currently experimental.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.of(scope) ⇒ AWSCDK::CustomResources::CustomResourceConfig
Returns the CustomResourceConfig for this scope.
Instance Method Summary collapse
-
#add_lambda_runtime(lambda_runtime) ⇒ void
Set the runtime version on AWS-vended custom resources lambdas.
-
#add_log_retention_lifetime(retention) ⇒ void
Set the log retention of AWS-vended custom resource lambdas.
-
#add_removal_policy(removal_policy) ⇒ void
Set the removal policy of AWS-vended custom resource logGroup.
-
#initialize(*args) ⇒ CustomResourceConfig
constructor
A new instance of CustomResourceConfig.
Constructor Details
#initialize(*args) ⇒ CustomResourceConfig
Returns a new instance of CustomResourceConfig.
10 11 12 |
# File 'custom_resources/custom_resource_config.rb', line 10 def initialize(*args) raise NoMethodError, "aws-cdk-lib.custom_resources.CustomResourceConfig does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.jsii_overridable_methods ⇒ Object
14 15 16 17 18 19 20 |
# File 'custom_resources/custom_resource_config.rb', line 14 def self.jsii_overridable_methods { :add_lambda_runtime => { kind: :method, name: "addLambdaRuntime", is_optional: false }, :add_log_retention_lifetime => { kind: :method, name: "addLogRetentionLifetime", is_optional: false }, :add_removal_policy => { kind: :method, name: "addRemovalPolicy", is_optional: false }, } end |
.of(scope) ⇒ AWSCDK::CustomResources::CustomResourceConfig
Returns the CustomResourceConfig for this scope.
26 27 28 29 |
# File 'custom_resources/custom_resource_config.rb', line 26 def self.of(scope) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "scope") Jsii::Kernel.instance.call_static("aws-cdk-lib.custom_resources.CustomResourceConfig", "of", [scope]) end |
Instance Method Details
#add_lambda_runtime(lambda_runtime) ⇒ void
This method returns an undefined value.
Set the runtime version on AWS-vended custom resources lambdas.
This feature is currently experimental.
37 38 39 40 |
# File 'custom_resources/custom_resource_config.rb', line 37 def add_lambda_runtime(lambda_runtime) Jsii::Type.check_type(lambda_runtime, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLlJ1bnRpbWUifQ==")), "lambdaRuntime") jsii_call_method("addLambdaRuntime", [lambda_runtime]) end |
#add_log_retention_lifetime(retention) ⇒ void
This method returns an undefined value.
Set the log retention of AWS-vended custom resource lambdas.
This feature is currently experimental.
48 49 50 51 |
# File 'custom_resources/custom_resource_config.rb', line 48 def add_log_retention_lifetime(retention) Jsii::Type.check_type(retention, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5SZXRlbnRpb25EYXlzIn0=")), "retention") jsii_call_method("addLogRetentionLifetime", [retention]) end |
#add_removal_policy(removal_policy) ⇒ void
This method returns an undefined value.
Set the removal policy of AWS-vended custom resource logGroup.
This feature is currently experimental.
59 60 61 62 |
# File 'custom_resources/custom_resource_config.rb', line 59 def add_removal_policy(removal_policy) Jsii::Type.check_type(removal_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "removalPolicy") jsii_call_method("addRemovalPolicy", [removal_policy]) end |