Class: AWSCDK::S3Files::CfnFileSystemProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_files/cfn_file_system_props.rb

Overview

Properties for defining a CfnFileSystem.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, role_arn:, accept_bucket_warning: nil, client_token: nil, kms_key_id: nil, prefix: nil, synchronization_configuration: nil, tags: nil) ⇒ CfnFileSystemProps

Returns a new instance of CfnFileSystemProps.

Parameters:



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 's3_files/cfn_file_system_props.rb', line 17

def initialize(bucket:, role_arn:, accept_bucket_warning: nil, client_token: nil, kms_key_id: nil, prefix: nil, synchronization_configuration: nil, tags: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @accept_bucket_warning = accept_bucket_warning
  Jsii::Type.check_type(@accept_bucket_warning, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "acceptBucketWarning") unless @accept_bucket_warning.nil?
  @client_token = client_token
  Jsii::Type.check_type(@client_token, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientToken") unless @client_token.nil?
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
  @synchronization_configuration = synchronization_configuration.is_a?(Hash) ? ::AWSCDK::S3Files::CfnFileSystem::SynchronizationConfigurationProperty.new(**synchronization_configuration.transform_keys(&:to_sym)) : synchronization_configuration
  Jsii::Type.check_type(@synchronization_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zM2ZpbGVzLkNmbkZpbGVTeXN0ZW0uU3luY2hyb25pemF0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "synchronizationConfiguration") unless @synchronization_configuration.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#accept_bucket_warningBoolean, ... (readonly)



44
45
46
# File 's3_files/cfn_file_system_props.rb', line 44

def accept_bucket_warning
  @accept_bucket_warning
end

#bucketString (readonly)



38
39
40
# File 's3_files/cfn_file_system_props.rb', line 38

def bucket
  @bucket
end

#client_tokenString? (readonly)



47
48
49
# File 's3_files/cfn_file_system_props.rb', line 47

def client_token
  @client_token
end

#kms_key_idString? (readonly)



50
51
52
# File 's3_files/cfn_file_system_props.rb', line 50

def kms_key_id
  @kms_key_id
end

#prefixString? (readonly)



53
54
55
# File 's3_files/cfn_file_system_props.rb', line 53

def prefix
  @prefix
end

#role_arnString (readonly)



41
42
43
# File 's3_files/cfn_file_system_props.rb', line 41

def role_arn
  @role_arn
end

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



56
57
58
# File 's3_files/cfn_file_system_props.rb', line 56

def synchronization_configuration
  @synchronization_configuration
end

#tagsArray<AWSCDK::CfnTag>? (readonly)



59
60
61
# File 's3_files/cfn_file_system_props.rb', line 59

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



61
62
63
64
65
66
67
68
69
70
71
72
# File 's3_files/cfn_file_system_props.rb', line 61

def self.jsii_properties
  {
    :bucket => "bucket",
    :role_arn => "roleArn",
    :accept_bucket_warning => "acceptBucketWarning",
    :client_token => "clientToken",
    :kms_key_id => "kmsKeyId",
    :prefix => "prefix",
    :synchronization_configuration => "synchronizationConfiguration",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 's3_files/cfn_file_system_props.rb', line 74

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "roleArn" => @role_arn,
    "acceptBucketWarning" => @accept_bucket_warning,
    "clientToken" => @client_token,
    "kmsKeyId" => @kms_key_id,
    "prefix" => @prefix,
    "synchronizationConfiguration" => @synchronization_configuration,
    "tags" => @tags,
  })
  result.compact
end