Class: AWSCDK::EMRContainers::CfnEndpointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
emr_containers/cfn_endpoint_props.rb

Overview

Properties for defining a CfnEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_role_arn:, release_label:, type:, virtual_cluster_id:, configuration_overrides: nil, name: nil, tags: nil) ⇒ CfnEndpointProps

Returns a new instance of CfnEndpointProps.

Parameters:

  • execution_role_arn (String)

    The execution role ARN for the managed endpoint.

  • release_label (String)

    The Amazon EMR release label.

  • type (String)

    The type of the managed endpoint.

  • virtual_cluster_id (String)

    The ID of the virtual cluster for which the managed endpoint is created.

  • configuration_overrides (AWSCDK::IResolvable, AWSCDK::EMRContainers::CfnEndpoint::ConfigurationOverridesProperty, nil) (defaults to: nil)
  • name (String, nil) (defaults to: nil)

    The name of the managed endpoint.

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

    An array of key-value pairs to apply to this managed endpoint.



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

def initialize(execution_role_arn:, release_label:, type:, virtual_cluster_id:, configuration_overrides: nil, name: nil, tags: nil)
  @execution_role_arn = execution_role_arn
  Jsii::Type.check_type(@execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleArn")
  @release_label = release_label
  Jsii::Type.check_type(@release_label, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "releaseLabel")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @virtual_cluster_id = virtual_cluster_id
  Jsii::Type.check_type(@virtual_cluster_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "virtualClusterId")
  @configuration_overrides = configuration_overrides.is_a?(Hash) ? ::AWSCDK::EMRContainers::CfnEndpoint::ConfigurationOverridesProperty.new(**configuration_overrides.transform_keys(&:to_sym)) : configuration_overrides
  Jsii::Type.check_type(@configuration_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbXJjb250YWluZXJzLkNmbkVuZHBvaW50LkNvbmZpZ3VyYXRpb25PdmVycmlkZXNQcm9wZXJ0eSJ9XX19")), "configurationOverrides") unless @configuration_overrides.nil?
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.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

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



55
56
57
# File 'emr_containers/cfn_endpoint_props.rb', line 55

def configuration_overrides
  @configuration_overrides
end

#execution_role_arnString (readonly)

The execution role ARN for the managed endpoint.



37
38
39
# File 'emr_containers/cfn_endpoint_props.rb', line 37

def execution_role_arn
  @execution_role_arn
end

#nameString? (readonly)

The name of the managed endpoint.



60
61
62
# File 'emr_containers/cfn_endpoint_props.rb', line 60

def name
  @name
end

#release_labelString (readonly)

The Amazon EMR release label.



42
43
44
# File 'emr_containers/cfn_endpoint_props.rb', line 42

def release_label
  @release_label
end

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

An array of key-value pairs to apply to this managed endpoint.



65
66
67
# File 'emr_containers/cfn_endpoint_props.rb', line 65

def tags
  @tags
end

#typeString (readonly)

The type of the managed endpoint.



47
48
49
# File 'emr_containers/cfn_endpoint_props.rb', line 47

def type
  @type
end

#virtual_cluster_idString (readonly)

The ID of the virtual cluster for which the managed endpoint is created.



52
53
54
# File 'emr_containers/cfn_endpoint_props.rb', line 52

def virtual_cluster_id
  @virtual_cluster_id
end

Class Method Details

.jsii_propertiesObject



67
68
69
70
71
72
73
74
75
76
77
# File 'emr_containers/cfn_endpoint_props.rb', line 67

def self.jsii_properties
  {
    :execution_role_arn => "executionRoleArn",
    :release_label => "releaseLabel",
    :type => "type",
    :virtual_cluster_id => "virtualClusterId",
    :configuration_overrides => "configurationOverrides",
    :name => "name",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'emr_containers/cfn_endpoint_props.rb', line 79

def to_jsii
  result = {}
  result.merge!({
    "executionRoleArn" => @execution_role_arn,
    "releaseLabel" => @release_label,
    "type" => @type,
    "virtualClusterId" => @virtual_cluster_id,
    "configurationOverrides" => @configuration_overrides,
    "name" => @name,
    "tags" => @tags,
  })
  result.compact
end