Class: AWSCDK::CustomResources::CustomResourceConfig

Inherits:
Jsii::Object
  • Object
show all
Defined in:
custom_resources/custom_resource_config.rb

Overview

Manages AWS-vended Custom Resources.

This feature is currently experimental.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ CustomResourceConfig

Returns a new instance of CustomResourceConfig.

Raises:

  • (NoMethodError)


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_methodsObject



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.

Parameters:

  • scope (Constructs::IConstruct)

Returns:

  • (AWSCDK::CustomResources::CustomResourceConfig)


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.

Parameters:



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.

Parameters:



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.

Parameters:



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