Class: AWSCDK::ARCRegionSwitch::CfnPlan::NeptuneGlobalDatabaseConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(behavior:, global_cluster_identifier:, region_database_cluster_arns:, cross_account_role: nil, external_id: nil, timeout_minutes: nil, ungraceful: nil) ⇒ NeptuneGlobalDatabaseConfigurationProperty

Returns a new instance of NeptuneGlobalDatabaseConfigurationProperty.

Parameters:



2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
# File 'arc_region_switch/cfn_plan.rb', line 2362

def initialize(behavior:, global_cluster_identifier:, region_database_cluster_arns:, cross_account_role: nil, external_id: nil, timeout_minutes: nil, ungraceful: nil)
  @behavior = behavior
  Jsii::Type.check_type(@behavior, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "behavior")
  @global_cluster_identifier = global_cluster_identifier
  Jsii::Type.check_type(@global_cluster_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "globalClusterIdentifier")
  @region_database_cluster_arns = region_database_cluster_arns
  Jsii::Type.check_type(@region_database_cluster_arns, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "regionDatabaseClusterArns")
  @cross_account_role = 
  Jsii::Type.check_type(@cross_account_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crossAccountRole") unless @cross_account_role.nil?
  @external_id = external_id
  Jsii::Type.check_type(@external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "externalId") unless @external_id.nil?
  @timeout_minutes = timeout_minutes
  Jsii::Type.check_type(@timeout_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMinutes") unless @timeout_minutes.nil?
  @ungraceful = ungraceful.is_a?(Hash) ? ::AWSCDK::ARCRegionSwitch::CfnPlan::NeptuneUngracefulProperty.new(**ungraceful.transform_keys(&:to_sym)) : ungraceful
  Jsii::Type.check_type(@ungraceful, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5OZXB0dW5lVW5ncmFjZWZ1bFByb3BlcnR5In1dfX0=")), "ungraceful") unless @ungraceful.nil?
end

Instance Attribute Details

#behaviorString (readonly)



2381
2382
2383
# File 'arc_region_switch/cfn_plan.rb', line 2381

def behavior
  @behavior
end

#cross_account_roleString? (readonly)



2390
2391
2392
# File 'arc_region_switch/cfn_plan.rb', line 2390

def 
  @cross_account_role
end

#external_idString? (readonly)



2393
2394
2395
# File 'arc_region_switch/cfn_plan.rb', line 2393

def external_id
  @external_id
end

#global_cluster_identifierString (readonly)



2384
2385
2386
# File 'arc_region_switch/cfn_plan.rb', line 2384

def global_cluster_identifier
  @global_cluster_identifier
end

#region_database_cluster_arnsAWSCDK::IResolvable, Hash{String => String} (readonly)



2387
2388
2389
# File 'arc_region_switch/cfn_plan.rb', line 2387

def region_database_cluster_arns
  @region_database_cluster_arns
end

#timeout_minutesNumeric? (readonly)

Note:

Default: - 60



2397
2398
2399
# File 'arc_region_switch/cfn_plan.rb', line 2397

def timeout_minutes
  @timeout_minutes
end

Class Method Details

.jsii_propertiesObject



2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
# File 'arc_region_switch/cfn_plan.rb', line 2402

def self.jsii_properties
  {
    :behavior => "behavior",
    :global_cluster_identifier => "globalClusterIdentifier",
    :region_database_cluster_arns => "regionDatabaseClusterArns",
    :cross_account_role => "crossAccountRole",
    :external_id => "externalId",
    :timeout_minutes => "timeoutMinutes",
    :ungraceful => "ungraceful",
  }
end

Instance Method Details

#to_jsiiObject



2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
# File 'arc_region_switch/cfn_plan.rb', line 2414

def to_jsii
  result = {}
  result.merge!({
    "behavior" => @behavior,
    "globalClusterIdentifier" => @global_cluster_identifier,
    "regionDatabaseClusterArns" => @region_database_cluster_arns,
    "crossAccountRole" => @cross_account_role,
    "externalId" => @external_id,
    "timeoutMinutes" => @timeout_minutes,
    "ungraceful" => @ungraceful,
  })
  result.compact
end