Class: AWSCDK::ExternalAnthropic::CfnWorkspace::DataResidencyProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
external_anthropic/cfn_workspace.rb

Overview

Data residency configuration for the workspace.

WorkspaceGeo is immutable after creation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allowed_inference_geos: nil, default_inference_geo: nil, workspace_geo: nil) ⇒ DataResidencyProperty

Returns a new instance of DataResidencyProperty.

Parameters:

  • allowed_inference_geos (Array<String>, nil) (defaults to: nil)

    Permitted inference geo values.

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

    Default inference geo applied when requests omit the parameter.

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

    Geographic region for workspace data storage.



564
565
566
567
568
569
570
571
# File 'external_anthropic/cfn_workspace.rb', line 564

def initialize(allowed_inference_geos: nil, default_inference_geo: nil, workspace_geo: nil)
  @allowed_inference_geos = allowed_inference_geos
  Jsii::Type.check_type(@allowed_inference_geos, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedInferenceGeos") unless @allowed_inference_geos.nil?
  @default_inference_geo = default_inference_geo
  Jsii::Type.check_type(@default_inference_geo, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "defaultInferenceGeo") unless @default_inference_geo.nil?
  @workspace_geo = workspace_geo
  Jsii::Type.check_type(@workspace_geo, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceGeo") unless @workspace_geo.nil?
end

Instance Attribute Details

#allowed_inference_geosArray<String>? (readonly)

Permitted inference geo values.

Omit to allow all geos (the service default of 'unrestricted'); otherwise list specific geos.



579
580
581
# File 'external_anthropic/cfn_workspace.rb', line 579

def allowed_inference_geos
  @allowed_inference_geos
end

#default_inference_geoString? (readonly)

Default inference geo applied when requests omit the parameter.

Defaults to 'global' if omitted. Must be a member of AllowedInferenceGeos unless AllowedInferenceGeos is omitted.



586
587
588
# File 'external_anthropic/cfn_workspace.rb', line 586

def default_inference_geo
  @default_inference_geo
end

#workspace_geoString? (readonly)

Geographic region for workspace data storage.

Immutable after creation. Defaults to 'us' if omitted.



593
594
595
# File 'external_anthropic/cfn_workspace.rb', line 593

def workspace_geo
  @workspace_geo
end

Class Method Details

.jsii_propertiesObject



595
596
597
598
599
600
601
# File 'external_anthropic/cfn_workspace.rb', line 595

def self.jsii_properties
  {
    :allowed_inference_geos => "allowedInferenceGeos",
    :default_inference_geo => "defaultInferenceGeo",
    :workspace_geo => "workspaceGeo",
  }
end

Instance Method Details

#to_jsiiObject



603
604
605
606
607
608
609
610
611
# File 'external_anthropic/cfn_workspace.rb', line 603

def to_jsii
  result = {}
  result.merge!({
    "allowedInferenceGeos" => @allowed_inference_geos,
    "defaultInferenceGeo" => @default_inference_geo,
    "workspaceGeo" => @workspace_geo,
  })
  result.compact
end