Class: AWSCDK::M2::CfnApplicationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
m2/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(engine_type:, name:, definition: nil, description: nil, kms_key_id: nil, role_arn: nil, tags: nil) ⇒ CfnApplicationProps

Returns a new instance of CfnApplicationProps.

Parameters:

  • engine_type (String)

    The type of the target platform for this application.

  • name (String)

    The name of the application.

  • definition (AWSCDK::IResolvable, AWSCDK::M2::CfnApplication::DefinitionProperty, nil) (defaults to: nil)

    The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.

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

    The description of the application.

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

    The identifier of a customer managed key.

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

    The Amazon Resource Name (ARN) of the role associated with the application.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    An array of key-value pairs to apply to this resource.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'm2/cfn_application_props.rb', line 16

def initialize(engine_type:, name:, definition: nil, description: nil, kms_key_id: nil, role_arn: nil, tags: nil)
  @engine_type = engine_type
  Jsii::Type.check_type(@engine_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "engineType")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @definition = definition.is_a?(Hash) ? ::AWSCDK::M2::CfnApplication::DefinitionProperty.new(**definition.transform_keys(&:to_sym)) : definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tMi5DZm5BcHBsaWNhdGlvbi5EZWZpbml0aW9uUHJvcGVydHkifV19fQ==")), "definition") unless @definition.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#definitionAWSCDK::IResolvable, ... (readonly)

The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.

For information about application definitions, see the AWS Mainframe Modernization User Guide .



49
50
51
# File 'm2/cfn_application_props.rb', line 49

def definition
  @definition
end

#descriptionString? (readonly)

The description of the application.



54
55
56
# File 'm2/cfn_application_props.rb', line 54

def description
  @description
end

#engine_typeString (readonly)

The type of the target platform for this application.



37
38
39
# File 'm2/cfn_application_props.rb', line 37

def engine_type
  @engine_type
end

#kms_key_idString? (readonly)

The identifier of a customer managed key.



59
60
61
# File 'm2/cfn_application_props.rb', line 59

def kms_key_id
  @kms_key_id
end

#nameString (readonly)

The name of the application.



42
43
44
# File 'm2/cfn_application_props.rb', line 42

def name
  @name
end

#role_arnString? (readonly)

The Amazon Resource Name (ARN) of the role associated with the application.



64
65
66
# File 'm2/cfn_application_props.rb', line 64

def role_arn
  @role_arn
end

#tagsHash{String => String}? (readonly)

An array of key-value pairs to apply to this resource.

For more information, see Tag .



71
72
73
# File 'm2/cfn_application_props.rb', line 71

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



73
74
75
76
77
78
79
80
81
82
83
# File 'm2/cfn_application_props.rb', line 73

def self.jsii_properties
  {
    :engine_type => "engineType",
    :name => "name",
    :definition => "definition",
    :description => "description",
    :kms_key_id => "kmsKeyId",
    :role_arn => "roleArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'm2/cfn_application_props.rb', line 85

def to_jsii
  result = {}
  result.merge!({
    "engineType" => @engine_type,
    "name" => @name,
    "definition" => @definition,
    "description" => @description,
    "kmsKeyId" => @kms_key_id,
    "roleArn" => @role_arn,
    "tags" => @tags,
  })
  result.compact
end