Class: AWSCDK::Athena::CfnWorkGroup::AclConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
athena/cfn_work_group.rb

Overview

Indicates that an Amazon S3 canned ACL should be set to control ownership of stored query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO.

When Athena stores query results in Amazon S3, the canned ACL is set with the x-amz-acl request header. For more information about S3 Object Ownership, see Object Ownership settings in the Amazon S3 User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_acl_option:) ⇒ AclConfigurationProperty

Returns a new instance of AclConfigurationProperty.

Parameters:

  • s3_acl_option (String)

    The Amazon S3 canned ACL that Athena should specify when storing query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO.



637
638
639
640
# File 'athena/cfn_work_group.rb', line 637

def initialize(s3_acl_option:)
  @s3_acl_option = s3_acl_option
  Jsii::Type.check_type(@s3_acl_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3AclOption")
end

Instance Attribute Details

#s3_acl_optionString (readonly)

The Amazon S3 canned ACL that Athena should specify when storing query results, including data files inserted by Athena as the result of statements like CTAS or INSERT INTO.

Currently the only supported canned ACL is BUCKET_OWNER_FULL_CONTROL . If a query runs in a workgroup and the workgroup overrides client-side settings, then the Amazon S3 canned ACL specified in the workgroup's settings is used for all queries that run in the workgroup. For more information about Amazon S3 canned ACLs, see Canned ACL in the Amazon S3 User Guide .



648
649
650
# File 'athena/cfn_work_group.rb', line 648

def s3_acl_option
  @s3_acl_option
end

Class Method Details

.jsii_propertiesObject



650
651
652
653
654
# File 'athena/cfn_work_group.rb', line 650

def self.jsii_properties
  {
    :s3_acl_option => "s3AclOption",
  }
end

Instance Method Details

#to_jsiiObject



656
657
658
659
660
661
662
# File 'athena/cfn_work_group.rb', line 656

def to_jsii
  result = {}
  result.merge!({
    "s3AclOption" => @s3_acl_option,
  })
  result.compact
end