Class: AWSCDK::EMRContainers::CfnEndpointProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMRContainers::CfnEndpointProps
- Defined in:
- emr_containers/cfn_endpoint_props.rb
Overview
Properties for defining a CfnEndpoint.
Instance Attribute Summary collapse
- #configuration_overrides ⇒ AWSCDK::IResolvable, ... readonly
-
#execution_role_arn ⇒ String
readonly
The execution role ARN for the managed endpoint.
-
#name ⇒ String?
readonly
The name of the managed endpoint.
-
#release_label ⇒ String
readonly
The Amazon EMR release label.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this managed endpoint.
-
#type ⇒ String
readonly
The type of the managed endpoint.
-
#virtual_cluster_id ⇒ String
readonly
The ID of the virtual cluster for which the managed endpoint is created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(execution_role_arn:, release_label:, type:, virtual_cluster_id:, configuration_overrides: nil, name: nil, tags: nil) ⇒ CfnEndpointProps
constructor
A new instance of CfnEndpointProps.
- #to_jsii ⇒ Object
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.
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 = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#configuration_overrides ⇒ AWSCDK::IResolvable, ... (readonly)
55 56 57 |
# File 'emr_containers/cfn_endpoint_props.rb', line 55 def configuration_overrides @configuration_overrides end |
#execution_role_arn ⇒ String (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 |
#name ⇒ String? (readonly)
The name of the managed endpoint.
60 61 62 |
# File 'emr_containers/cfn_endpoint_props.rb', line 60 def name @name end |
#release_label ⇒ String (readonly)
The Amazon EMR release label.
42 43 44 |
# File 'emr_containers/cfn_endpoint_props.rb', line 42 def release_label @release_label end |
#tags ⇒ Array<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 end |
#type ⇒ String (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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |