Class: AWSCDK::Proton::CfnServiceTemplateProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
proton/cfn_service_template_props.rb

Overview

Properties for defining a CfnServiceTemplate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description: nil, display_name: nil, encryption_key: nil, name: nil, pipeline_provisioning: nil, tags: nil) ⇒ CfnServiceTemplateProps

Returns a new instance of CfnServiceTemplateProps.

Parameters:

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

    A description of the service template.

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

    The service template name as displayed in the developer interface.

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

    The customer provided service template encryption key that's used to encrypt data.

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

    The name of the service template.

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

    If pipelineProvisioning is true , a service pipeline is included in the service template.

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

    An object that includes the template bundle S3 bucket path and name for the new version of a service template.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'proton/cfn_service_template_props.rb', line 15

def initialize(description: nil, display_name: nil, encryption_key: nil, name: nil, pipeline_provisioning: nil, tags: nil)
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @display_name = display_name
  Jsii::Type.check_type(@display_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "displayName") unless @display_name.nil?
  @encryption_key = encryption_key
  Jsii::Type.check_type(@encryption_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKey") unless @encryption_key.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @pipeline_provisioning = pipeline_provisioning
  Jsii::Type.check_type(@pipeline_provisioning, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pipelineProvisioning") unless @pipeline_provisioning.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

#descriptionString? (readonly)

A description of the service template.



34
35
36
# File 'proton/cfn_service_template_props.rb', line 34

def description
  @description
end

#display_nameString? (readonly)

The service template name as displayed in the developer interface.



39
40
41
# File 'proton/cfn_service_template_props.rb', line 39

def display_name
  @display_name
end

#encryption_keyString? (readonly)

The customer provided service template encryption key that's used to encrypt data.



44
45
46
# File 'proton/cfn_service_template_props.rb', line 44

def encryption_key
  @encryption_key
end

#nameString? (readonly)

The name of the service template.



49
50
51
# File 'proton/cfn_service_template_props.rb', line 49

def name
  @name
end

#pipeline_provisioningString? (readonly)

If pipelineProvisioning is true , a service pipeline is included in the service template.

Otherwise, a service pipeline isn't included in the service template.



56
57
58
# File 'proton/cfn_service_template_props.rb', line 56

def pipeline_provisioning
  @pipeline_provisioning
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

An object that includes the template bundle S3 bucket path and name for the new version of a service template.



61
62
63
# File 'proton/cfn_service_template_props.rb', line 61

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



63
64
65
66
67
68
69
70
71
72
# File 'proton/cfn_service_template_props.rb', line 63

def self.jsii_properties
  {
    :description => "description",
    :display_name => "displayName",
    :encryption_key => "encryptionKey",
    :name => "name",
    :pipeline_provisioning => "pipelineProvisioning",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



74
75
76
77
78
79
80
81
82
83
84
85
# File 'proton/cfn_service_template_props.rb', line 74

def to_jsii
  result = {}
  result.merge!({
    "description" => @description,
    "displayName" => @display_name,
    "encryptionKey" => @encryption_key,
    "name" => @name,
    "pipelineProvisioning" => @pipeline_provisioning,
    "tags" => @tags,
  })
  result.compact
end