Class: AWSCDK::Kendra::CfnDataSource::OneDriveUsersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_data_source.rb

Overview

User accounts whose documents should be indexed.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(one_drive_user_list: nil, one_drive_user_s3_path: nil) ⇒ OneDriveUsersProperty

Returns a new instance of OneDriveUsersProperty.

Parameters:

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

    A list of users whose documents should be indexed.

  • one_drive_user_s3_path (AWSCDK::IResolvable, AWSCDK::Kendra::CfnDataSource::S3PathProperty, nil) (defaults to: nil)

    The S3 bucket location of a file containing a list of users whose documents should be indexed.



2429
2430
2431
2432
2433
2434
# File 'kendra/cfn_data_source.rb', line 2429

def initialize(one_drive_user_list: nil, one_drive_user_s3_path: nil)
  @one_drive_user_list = one_drive_user_list
  Jsii::Type.check_type(@one_drive_user_list, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "oneDriveUserList") unless @one_drive_user_list.nil?
  @one_drive_user_s3_path = one_drive_user_s3_path.is_a?(Hash) ? ::AWSCDK::Kendra::CfnDataSource::S3PathProperty.new(**one_drive_user_s3_path.transform_keys(&:to_sym)) : one_drive_user_s3_path
  Jsii::Type.check_type(@one_drive_user_s3_path, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19rZW5kcmEuQ2ZuRGF0YVNvdXJjZS5TM1BhdGhQcm9wZXJ0eSJ9XX19")), "oneDriveUserS3Path") unless @one_drive_user_s3_path.nil?
end

Instance Attribute Details

#one_drive_user_listArray<String>? (readonly)

A list of users whose documents should be indexed.

Specify the user names in email format, for example, username@tenantdomain . If you need to index the documents of more than 10 users, use the OneDriveUserS3Path field to specify the location of a file containing a list of users.



2442
2443
2444
# File 'kendra/cfn_data_source.rb', line 2442

def one_drive_user_list
  @one_drive_user_list
end

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

The S3 bucket location of a file containing a list of users whose documents should be indexed.



2447
2448
2449
# File 'kendra/cfn_data_source.rb', line 2447

def one_drive_user_s3_path
  @one_drive_user_s3_path
end

Class Method Details

.jsii_propertiesObject



2449
2450
2451
2452
2453
2454
# File 'kendra/cfn_data_source.rb', line 2449

def self.jsii_properties
  {
    :one_drive_user_list => "oneDriveUserList",
    :one_drive_user_s3_path => "oneDriveUserS3Path",
  }
end

Instance Method Details

#to_jsiiObject



2456
2457
2458
2459
2460
2461
2462
2463
# File 'kendra/cfn_data_source.rb', line 2456

def to_jsii
  result = {}
  result.merge!({
    "oneDriveUserList" => @one_drive_user_list,
    "oneDriveUserS3Path" => @one_drive_user_s3_path,
  })
  result.compact
end