Class: AWSCDK::Comprehend::CfnFlywheel::DataSecurityConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
comprehend/cfn_flywheel.rb

Overview

Data security configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_lake_kms_key_id: nil, model_kms_key_id: nil, volume_kms_key_id: nil, vpc_config: nil) ⇒ DataSecurityConfigProperty

Returns a new instance of DataSecurityConfigProperty.

Parameters:

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

    ID for the AWS key that Amazon Comprehend uses to encrypt the data in the data lake.

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

    ID for the AWS key that Amazon Comprehend uses to encrypt trained custom models.

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

    ID for the AWS key that Amazon Comprehend uses to encrypt the volume.

  • vpc_config (AWSCDK::IResolvable, AWSCDK::Comprehend::CfnFlywheel::VPCConfigProperty, nil) (defaults to: nil)

    Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.



623
624
625
626
627
628
629
630
631
632
# File 'comprehend/cfn_flywheel.rb', line 623

def initialize(data_lake_kms_key_id: nil, model_kms_key_id: nil, volume_kms_key_id: nil, vpc_config: nil)
  @data_lake_kms_key_id = data_lake_kms_key_id
  Jsii::Type.check_type(@data_lake_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataLakeKmsKeyId") unless @data_lake_kms_key_id.nil?
  @model_kms_key_id = model_kms_key_id
  Jsii::Type.check_type(@model_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "modelKmsKeyId") unless @model_kms_key_id.nil?
  @volume_kms_key_id = volume_kms_key_id
  Jsii::Type.check_type(@volume_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "volumeKmsKeyId") unless @volume_kms_key_id.nil?
  @vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::Comprehend::CfnFlywheel::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config
  Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb21wcmVoZW5kLkNmbkZseXdoZWVsLlZwY0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "vpcConfig") unless @vpc_config.nil?
end

Instance Attribute Details

#data_lake_kms_key_idString? (readonly)

ID for the AWS key that Amazon Comprehend uses to encrypt the data in the data lake.



638
639
640
# File 'comprehend/cfn_flywheel.rb', line 638

def data_lake_kms_key_id
  @data_lake_kms_key_id
end

#model_kms_key_idString? (readonly)

ID for the AWS key that Amazon Comprehend uses to encrypt trained custom models.

The ModelKmsKeyId can be either of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"
  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"


648
649
650
# File 'comprehend/cfn_flywheel.rb', line 648

def model_kms_key_id
  @model_kms_key_id
end

#volume_kms_key_idString? (readonly)

ID for the AWS key that Amazon Comprehend uses to encrypt the volume.



653
654
655
# File 'comprehend/cfn_flywheel.rb', line 653

def volume_kms_key_id
  @volume_kms_key_id
end

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

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job.

For more information, see Amazon VPC .



660
661
662
# File 'comprehend/cfn_flywheel.rb', line 660

def vpc_config
  @vpc_config
end

Class Method Details

.jsii_propertiesObject



662
663
664
665
666
667
668
669
# File 'comprehend/cfn_flywheel.rb', line 662

def self.jsii_properties
  {
    :data_lake_kms_key_id => "dataLakeKmsKeyId",
    :model_kms_key_id => "modelKmsKeyId",
    :volume_kms_key_id => "volumeKmsKeyId",
    :vpc_config => "vpcConfig",
  }
end

Instance Method Details

#to_jsiiObject



671
672
673
674
675
676
677
678
679
680
# File 'comprehend/cfn_flywheel.rb', line 671

def to_jsii
  result = {}
  result.merge!({
    "dataLakeKmsKeyId" => @data_lake_kms_key_id,
    "modelKmsKeyId" => @model_kms_key_id,
    "volumeKmsKeyId" => @volume_kms_key_id,
    "vpcConfig" => @vpc_config,
  })
  result.compact
end