Class: AWSCDK::LaunchWizard::CfnDeploymentProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
launch_wizard/cfn_deployment_props.rb

Overview

Properties for defining a CfnDeployment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deployment_pattern_name:, name:, workload_name:, specifications: nil, tags: nil) ⇒ CfnDeploymentProps

Returns a new instance of CfnDeploymentProps.

Parameters:

  • deployment_pattern_name (String)

    The name of the deployment pattern.

  • name (String)

    The name of the deployment.

  • workload_name (String)

    The name of the workload.

  • specifications (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    The settings specified for the deployment.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Information about the tags attached to a deployment.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#deployment_pattern_nameString (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

#nameString (readonly)

The name of the deployment.



36
37
38
# File 'launch_wizard/cfn_deployment_props.rb', line 36

def name
  @name
end

#specificationsAWSCDK::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

#tagsArray<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
  @tags
end

#workload_nameString (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_propertiesObject



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_jsiiObject



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