Class: AWSCDK::LaunchWizard::CfnDeploymentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LaunchWizard::CfnDeploymentProps
- Defined in:
- launch_wizard/cfn_deployment_props.rb
Overview
Properties for defining a CfnDeployment.
Instance Attribute Summary collapse
-
#deployment_pattern_name ⇒ String
readonly
The name of the deployment pattern.
-
#name ⇒ String
readonly
The name of the deployment.
-
#specifications ⇒ AWSCDK::IResolvable, ...
readonly
The settings specified for the deployment.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Information about the tags attached to a deployment.
-
#workload_name ⇒ String
readonly
The name of the workload.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deployment_pattern_name:, name:, workload_name:, specifications: nil, tags: nil) ⇒ CfnDeploymentProps
constructor
A new instance of CfnDeploymentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deployment_pattern_name:, name:, workload_name:, specifications: nil, tags: nil) ⇒ CfnDeploymentProps
Returns a new instance of CfnDeploymentProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'launch_wizard/cfn_deployment_props.rb', line 14 def initialize(deployment_pattern_name:, name:, workload_name:, specifications: nil, tags: nil) @deployment_pattern_name = deployment_pattern_name Jsii::Type.check_type(@deployment_pattern_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentPatternName") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @workload_name = workload_name Jsii::Type.check_type(@workload_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workloadName") @specifications = specifications Jsii::Type.check_type(@specifications, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "specifications") unless @specifications.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#deployment_pattern_name ⇒ String (readonly)
The name of the deployment pattern.
31 32 33 |
# File 'launch_wizard/cfn_deployment_props.rb', line 31 def deployment_pattern_name @deployment_pattern_name end |
#name ⇒ String (readonly)
The name of the deployment.
36 37 38 |
# File 'launch_wizard/cfn_deployment_props.rb', line 36 def name @name end |
#specifications ⇒ AWSCDK::IResolvable, ... (readonly)
The settings specified for the deployment.
These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see SAP deployment specifications . To retrieve the specifications required to create a deployment for other workloads, use the GetWorkloadDeploymentPattern operation.
48 49 50 |
# File 'launch_wizard/cfn_deployment_props.rb', line 48 def specifications @specifications end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Information about the tags attached to a deployment.
53 54 55 |
# File 'launch_wizard/cfn_deployment_props.rb', line 53 def @tags end |
#workload_name ⇒ String (readonly)
The name of the workload.
41 42 43 |
# File 'launch_wizard/cfn_deployment_props.rb', line 41 def workload_name @workload_name end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'launch_wizard/cfn_deployment_props.rb', line 55 def self.jsii_properties { :deployment_pattern_name => "deploymentPatternName", :name => "name", :workload_name => "workloadName", :specifications => "specifications", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'launch_wizard/cfn_deployment_props.rb', line 65 def to_jsii result = {} result.merge!({ "deploymentPatternName" => @deployment_pattern_name, "name" => @name, "workloadName" => @workload_name, "specifications" => @specifications, "tags" => @tags, }) result.compact end |