Class: AWSCDK::DataZone::CfnFormTypeProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_zone/cfn_form_type_props.rb

Overview

Properties for defining a CfnFormType.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_identifier:, model:, name:, owning_project_identifier:, description: nil, status: nil) ⇒ CfnFormTypeProps

Returns a new instance of CfnFormTypeProps.

Parameters:

  • domain_identifier (String)

    The identifier of the Amazon DataZone domain in which the form type exists.

  • model (AWSCDK::IResolvable, AWSCDK::DataZone::CfnFormType::ModelProperty)

    The model of the form type.

  • name (String)

    The name of the form type.

  • owning_project_identifier (String)

    The identifier of the project that owns the form type.

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

    The description of the metadata form type.

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

    The status of the form type.



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

def initialize(domain_identifier:, model:, name:, owning_project_identifier:, description: nil, status: nil)
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier")
  @model = model.is_a?(Hash) ? ::AWSCDK::DataZone::CfnFormType::ModelProperty.new(**model.transform_keys(&:to_sym)) : model
  Jsii::Type.check_type(@model, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Gb3JtVHlwZS5Nb2RlbFByb3BlcnR5In1dfX0=")), "model")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @owning_project_identifier = owning_project_identifier
  Jsii::Type.check_type(@owning_project_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "owningProjectIdentifier")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of the metadata form type.



54
55
56
# File 'data_zone/cfn_form_type_props.rb', line 54

def description
  @description
end

#domain_identifierString (readonly)

The identifier of the Amazon DataZone domain in which the form type exists.



34
35
36
# File 'data_zone/cfn_form_type_props.rb', line 34

def domain_identifier
  @domain_identifier
end

#nameString (readonly)

The name of the form type.



44
45
46
# File 'data_zone/cfn_form_type_props.rb', line 44

def name
  @name
end

#owning_project_identifierString (readonly)

The identifier of the project that owns the form type.



49
50
51
# File 'data_zone/cfn_form_type_props.rb', line 49

def owning_project_identifier
  @owning_project_identifier
end

#statusString? (readonly)

The status of the form type.



59
60
61
# File 'data_zone/cfn_form_type_props.rb', line 59

def status
  @status
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
# File 'data_zone/cfn_form_type_props.rb', line 61

def self.jsii_properties
  {
    :domain_identifier => "domainIdentifier",
    :model => "model",
    :name => "name",
    :owning_project_identifier => "owningProjectIdentifier",
    :description => "description",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



72
73
74
75
76
77
78
79
80
81
82
83
# File 'data_zone/cfn_form_type_props.rb', line 72

def to_jsii
  result = {}
  result.merge!({
    "domainIdentifier" => @domain_identifier,
    "model" => @model,
    "name" => @name,
    "owningProjectIdentifier" => @owning_project_identifier,
    "description" => @description,
    "status" => @status,
  })
  result.compact
end