Class: AWSCDK::EC2::CfnVerifiedAccessInstance::S3Property

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_verified_access_instance.rb

Overview

Options for Amazon S3 as a logging destination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name: nil, bucket_owner: nil, enabled: nil, prefix: nil) ⇒ S3Property

Returns a new instance of S3Property.

Parameters:

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

    The bucket name.

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

    The AWS account number that owns the bucket.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether logging is enabled.

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

    The bucket prefix.



722
723
724
725
726
727
728
729
730
731
# File 'ec2/cfn_verified_access_instance.rb', line 722

def initialize(bucket_name: nil, bucket_owner: nil, enabled: nil, prefix: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName") unless @bucket_name.nil?
  @bucket_owner = bucket_owner
  Jsii::Type.check_type(@bucket_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketOwner") unless @bucket_owner.nil?
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
end

Instance Attribute Details

#bucket_nameString? (readonly)

The bucket name.



737
738
739
# File 'ec2/cfn_verified_access_instance.rb', line 737

def bucket_name
  @bucket_name
end

#bucket_ownerString? (readonly)

The AWS account number that owns the bucket.



742
743
744
# File 'ec2/cfn_verified_access_instance.rb', line 742

def bucket_owner
  @bucket_owner
end

#enabledBoolean, ... (readonly)

Indicates whether logging is enabled.



747
748
749
# File 'ec2/cfn_verified_access_instance.rb', line 747

def enabled
  @enabled
end

#prefixString? (readonly)

The bucket prefix.



752
753
754
# File 'ec2/cfn_verified_access_instance.rb', line 752

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



754
755
756
757
758
759
760
761
# File 'ec2/cfn_verified_access_instance.rb', line 754

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :bucket_owner => "bucketOwner",
    :enabled => "enabled",
    :prefix => "prefix",
  }
end

Instance Method Details

#to_jsiiObject



763
764
765
766
767
768
769
770
771
772
# File 'ec2/cfn_verified_access_instance.rb', line 763

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "bucketOwner" => @bucket_owner,
    "enabled" => @enabled,
    "prefix" => @prefix,
  })
  result.compact
end