Class: AWSCDK::CodeDeploy::CfnApplicationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_application_props.rb

Overview

Properties for defining a CfnApplication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name: nil, compute_platform: nil, tags: nil) ⇒ CfnApplicationProps

Returns a new instance of CfnApplicationProps.

Parameters:

  • application_name (String, AWSCDK::Interfaces::AWSLambda::IFunctionRef, nil) (defaults to: nil)

    A name for the application.

  • compute_platform (String, nil) (defaults to: nil)

    The compute platform that CodeDeploy deploys the application to.

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

    The metadata that you apply to CodeDeploy applications to help you organize and categorize them.



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 = 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

#application_nameString, ... (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 ApplicationName are not supported.



29
30
31
# File 'code_deploy/cfn_application_props.rb', line 29

def application_name
  @application_name
end

#compute_platformString? (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

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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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