Class: AWSCDK::ARCRegionSwitch::CfnPlan::AuroraServerlessScalingConfigurationProperty

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(global_cluster_identifier:, region_database_cluster_arns:, cross_account_role: nil, external_id: nil, target_percent: nil, timeout_minutes: nil) ⇒ AuroraServerlessScalingConfigurationProperty

Returns a new instance of AuroraServerlessScalingConfigurationProperty.

Parameters:

  • global_cluster_identifier (String)
  • region_database_cluster_arns (AWSCDK::IResolvable, Hash{String => String})
  • cross_account_role (String, nil) (defaults to: nil)
  • external_id (String, nil) (defaults to: nil)
  • target_percent (Numeric, nil) (defaults to: nil)
  • timeout_minutes (Numeric, nil) (defaults to: nil)


990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
# File 'arc_region_switch/cfn_plan.rb', line 990

def initialize(global_cluster_identifier:, region_database_cluster_arns:, cross_account_role: nil, external_id: nil, target_percent: nil, timeout_minutes: nil)
  @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?
  @target_percent = target_percent
  Jsii::Type.check_type(@target_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetPercent") unless @target_percent.nil?
  @timeout_minutes = timeout_minutes
  Jsii::Type.check_type(@timeout_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMinutes") unless @timeout_minutes.nil?
end

Instance Attribute Details

#cross_account_roleString? (readonly)



1013
1014
1015
# File 'arc_region_switch/cfn_plan.rb', line 1013

def 
  @cross_account_role
end

#external_idString? (readonly)



1016
1017
1018
# File 'arc_region_switch/cfn_plan.rb', line 1016

def external_id
  @external_id
end

#global_cluster_identifierString (readonly)



1007
1008
1009
# File 'arc_region_switch/cfn_plan.rb', line 1007

def global_cluster_identifier
  @global_cluster_identifier
end

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



1010
1011
1012
# File 'arc_region_switch/cfn_plan.rb', line 1010

def region_database_cluster_arns
  @region_database_cluster_arns
end

#target_percentNumeric? (readonly)

Note:

Default: - 100



1020
1021
1022
# File 'arc_region_switch/cfn_plan.rb', line 1020

def target_percent
  @target_percent
end

#timeout_minutesNumeric? (readonly)

Note:

Default: - 60



1024
1025
1026
# File 'arc_region_switch/cfn_plan.rb', line 1024

def timeout_minutes
  @timeout_minutes
end

Class Method Details

.jsii_propertiesObject



1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
# File 'arc_region_switch/cfn_plan.rb', line 1026

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

Instance Method Details

#to_jsiiObject



1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
# File 'arc_region_switch/cfn_plan.rb', line 1037

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