Class: AWSCDK::DataZone::CfnEnvironmentActionsProps

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

Overview

Properties for defining a CfnEnvironmentActions.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, domain_identifier: nil, environment_identifier: nil, identifier: nil, parameters: nil) ⇒ CfnEnvironmentActionsProps

Returns a new instance of CfnEnvironmentActionsProps.

Parameters:

  • name (String)

    The name of the environment action.

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

    The environment action description.

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

    The Amazon DataZone domain ID of the environment action.

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

    The environment ID of the environment action.

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

    The ID of the environment action.

  • parameters (AWSCDK::IResolvable, AWSCDK::DataZone::CfnEnvironmentActions::AWSConsoleLinkParametersProperty, nil) (defaults to: nil)

    The parameters of the environment action.



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

def initialize(name:, description: nil, domain_identifier: nil, environment_identifier: nil, identifier: nil, parameters: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @domain_identifier = domain_identifier
  Jsii::Type.check_type(@domain_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainIdentifier") unless @domain_identifier.nil?
  @environment_identifier = environment_identifier
  Jsii::Type.check_type(@environment_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "environmentIdentifier") unless @environment_identifier.nil?
  @identifier = identifier
  Jsii::Type.check_type(@identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "identifier") unless @identifier.nil?
  @parameters = parameters.is_a?(Hash) ? ::AWSCDK::DataZone::CfnEnvironmentActions::AWSConsoleLinkParametersProperty.new(**parameters.transform_keys(&:to_sym)) : parameters
  Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5FbnZpcm9ubWVudEFjdGlvbnMuQXdzQ29uc29sZUxpbmtQYXJhbWV0ZXJzUHJvcGVydHkifV19fQ==")), "parameters") unless @parameters.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The environment action description.



39
40
41
# File 'data_zone/cfn_environment_actions_props.rb', line 39

def description
  @description
end

#domain_identifierString? (readonly)

The Amazon DataZone domain ID of the environment action.



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

def domain_identifier
  @domain_identifier
end

#environment_identifierString? (readonly)

The environment ID of the environment action.



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

def environment_identifier
  @environment_identifier
end

#identifierString? (readonly)

The ID of the environment action.



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

def identifier
  @identifier
end

#nameString (readonly)

The name of the environment action.



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

def name
  @name
end

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

The parameters of the environment action.



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

def parameters
  @parameters
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :domain_identifier => "domainIdentifier",
    :environment_identifier => "environmentIdentifier",
    :identifier => "identifier",
    :parameters => "parameters",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "domainIdentifier" => @domain_identifier,
    "environmentIdentifier" => @environment_identifier,
    "identifier" => @identifier,
    "parameters" => @parameters,
  })
  result.compact
end