Class: AWSCDK::CodeDeploy::CfnApplicationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnApplicationProps
- Defined in:
- code_deploy/cfn_application_props.rb
Overview
Properties for defining a CfnApplication.
Instance Attribute Summary collapse
-
#application_name ⇒ String, ...
readonly
A name for the application.
-
#compute_platform ⇒ String?
readonly
The compute platform that CodeDeploy deploys the application to.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The metadata that you apply to CodeDeploy applications to help you organize and categorize them.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(application_name: nil, compute_platform: nil, tags: nil) ⇒ CfnApplicationProps
constructor
A new instance of CfnApplicationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(application_name: nil, compute_platform: nil, tags: nil) ⇒ CfnApplicationProps
Returns a new instance of CfnApplicationProps.
12 13 14 15 16 17 18 19 |
# File 'code_deploy/cfn_application_props.rb', line 12 def initialize(application_name: nil, compute_platform: nil, tags: nil) @application_name = application_name Jsii::Type.check_type(@application_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19sYW1iZGEuSUZ1bmN0aW9uUmVmIn1dfX0=")), "applicationName") unless @application_name.nil? @compute_platform = compute_platform Jsii::Type.check_type(@compute_platform, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "computePlatform") unless @compute_platform.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
#application_name ⇒ String, ... (readonly)
A name for the application.
If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the application name. For more information, see Name Type .
Updates to
ApplicationNameare not supported.
29 30 31 |
# File 'code_deploy/cfn_application_props.rb', line 29 def application_name @application_name end |
#compute_platform ⇒ String? (readonly)
The compute platform that CodeDeploy deploys the application to.
34 35 36 |
# File 'code_deploy/cfn_application_props.rb', line 34 def compute_platform @compute_platform end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The metadata that you apply to CodeDeploy applications to help you organize and categorize them.
Each tag consists of a key and an optional value, both of which you define.
41 42 43 |
# File 'code_deploy/cfn_application_props.rb', line 41 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File 'code_deploy/cfn_application_props.rb', line 43 def self.jsii_properties { :application_name => "applicationName", :compute_platform => "computePlatform", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'code_deploy/cfn_application_props.rb', line 51 def to_jsii result = {} result.merge!({ "applicationName" => @application_name, "computePlatform" => @compute_platform, "tags" => @tags, }) result.compact end |