Class: AWSCDK::Connect::CfnViewVersionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_view_version_props.rb

Overview

Properties for defining a CfnViewVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view_arn:, version_description: nil, view_content_sha256: nil) ⇒ CfnViewVersionProps

Returns a new instance of CfnViewVersionProps.

Parameters:

  • view_arn (String, AWSCDK::Interfaces::AWSConnect::IViewRef)

    The unqualified Amazon Resource Name (ARN) of the view.

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

    The description of the view version.

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

    Indicates the checksum value of the latest published view content.



12
13
14
15
16
17
18
19
# File 'connect/cfn_view_version_props.rb', line 12

def initialize(view_arn:, version_description: nil, view_content_sha256: nil)
  @view_arn = view_arn
  Jsii::Type.check_type(@view_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklWaWV3UmVmIn1dfX0=")), "viewArn")
  @version_description = version_description
  Jsii::Type.check_type(@version_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "versionDescription") unless @version_description.nil?
  @view_content_sha256 = view_content_sha256
  Jsii::Type.check_type(@view_content_sha256, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "viewContentSha256") unless @view_content_sha256.nil?
end

Instance Attribute Details

#version_descriptionString? (readonly)

The description of the view version.



34
35
36
# File 'connect/cfn_view_version_props.rb', line 34

def version_description
  @version_description
end

#view_arnString, AWSCDK::Interfaces::AWSConnect::IViewRef (readonly)

The unqualified Amazon Resource Name (ARN) of the view.

For example:

arn:<partition>:connect:<region>:<accountId>:instance/00000000-0000-0000-0000-000000000000/view/00000000-0000-0000-0000-000000000000



29
30
31
# File 'connect/cfn_view_version_props.rb', line 29

def view_arn
  @view_arn
end

#view_content_sha256String? (readonly)

Indicates the checksum value of the latest published view content.



39
40
41
# File 'connect/cfn_view_version_props.rb', line 39

def view_content_sha256
  @view_content_sha256
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
# File 'connect/cfn_view_version_props.rb', line 41

def self.jsii_properties
  {
    :view_arn => "viewArn",
    :version_description => "versionDescription",
    :view_content_sha256 => "viewContentSha256",
  }
end

Instance Method Details

#to_jsiiObject



49
50
51
52
53
54
55
56
57
# File 'connect/cfn_view_version_props.rb', line 49

def to_jsii
  result = {}
  result.merge!({
    "viewArn" => @view_arn,
    "versionDescription" => @version_description,
    "viewContentSha256" => @view_content_sha256,
  })
  result.compact
end