Class: AWSCDK::Lambda::CfnFunction::LambdaManagedInstancesCapacityProviderConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnFunction::LambdaManagedInstancesCapacityProviderConfigProperty
- Defined in:
- lambda/cfn_function.rb
Overview
Configuration for Lambda-managed instances used by the capacity provider.
Instance Attribute Summary collapse
-
#capacity_provider_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the capacity provider.
-
#execution_environment_memory_gib_per_v_cpu ⇒ Numeric?
readonly
The amount of memory in GiB allocated per vCPU for execution environments.
-
#per_execution_environment_max_concurrency ⇒ Numeric?
readonly
The maximum number of concurrent executions that can run on each execution environment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(capacity_provider_arn:, execution_environment_memory_gib_per_v_cpu: nil, per_execution_environment_max_concurrency: nil) ⇒ LambdaManagedInstancesCapacityProviderConfigProperty
constructor
A new instance of LambdaManagedInstancesCapacityProviderConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(capacity_provider_arn:, execution_environment_memory_gib_per_v_cpu: nil, per_execution_environment_max_concurrency: nil) ⇒ LambdaManagedInstancesCapacityProviderConfigProperty
Returns a new instance of LambdaManagedInstancesCapacityProviderConfigProperty.
1417 1418 1419 1420 1421 1422 1423 1424 |
# File 'lambda/cfn_function.rb', line 1417 def initialize(capacity_provider_arn:, execution_environment_memory_gib_per_v_cpu: nil, per_execution_environment_max_concurrency: nil) @capacity_provider_arn = capacity_provider_arn Jsii::Type.check_type(@capacity_provider_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityProviderArn") @execution_environment_memory_gib_per_v_cpu = execution_environment_memory_gib_per_v_cpu Jsii::Type.check_type(@execution_environment_memory_gib_per_v_cpu, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "executionEnvironmentMemoryGiBPerVCpu") unless @execution_environment_memory_gib_per_v_cpu.nil? @per_execution_environment_max_concurrency = per_execution_environment_max_concurrency Jsii::Type.check_type(@per_execution_environment_max_concurrency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "perExecutionEnvironmentMaxConcurrency") unless @per_execution_environment_max_concurrency.nil? end |
Instance Attribute Details
#capacity_provider_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the capacity provider.
1430 1431 1432 |
# File 'lambda/cfn_function.rb', line 1430 def capacity_provider_arn @capacity_provider_arn end |
#execution_environment_memory_gib_per_v_cpu ⇒ Numeric? (readonly)
The amount of memory in GiB allocated per vCPU for execution environments.
1435 1436 1437 |
# File 'lambda/cfn_function.rb', line 1435 def execution_environment_memory_gib_per_v_cpu @execution_environment_memory_gib_per_v_cpu end |
#per_execution_environment_max_concurrency ⇒ Numeric? (readonly)
The maximum number of concurrent executions that can run on each execution environment.
1440 1441 1442 |
# File 'lambda/cfn_function.rb', line 1440 def per_execution_environment_max_concurrency @per_execution_environment_max_concurrency end |
Class Method Details
.jsii_properties ⇒ Object
1442 1443 1444 1445 1446 1447 1448 |
# File 'lambda/cfn_function.rb', line 1442 def self.jsii_properties { :capacity_provider_arn => "capacityProviderArn", :execution_environment_memory_gib_per_v_cpu => "executionEnvironmentMemoryGiBPerVCpu", :per_execution_environment_max_concurrency => "perExecutionEnvironmentMaxConcurrency", } end |
Instance Method Details
#to_jsii ⇒ Object
1450 1451 1452 1453 1454 1455 1456 1457 1458 |
# File 'lambda/cfn_function.rb', line 1450 def to_jsii result = {} result.merge!({ "capacityProviderArn" => @capacity_provider_arn, "executionEnvironmentMemoryGiBPerVCpu" => @execution_environment_memory_gib_per_v_cpu, "perExecutionEnvironmentMaxConcurrency" => @per_execution_environment_max_concurrency, }) result.compact end |