Class: Aws::Lightsail::Types::UpdateBucketRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb

Overview

Note:

When making an API call, you may pass UpdateBucketRequest data as a hash:

{
  bucket_name: "BucketName", # required
  access_rules: {
    get_object: "public", # accepts public, private
    allow_public_overrides: false,
  },
  versioning: "NonEmptyString",
  readonly_access_accounts: ["NonEmptyString"],
  access_log_config: {
    enabled: false, # required
    destination: "BucketName",
    prefix: "BucketAccessLogPrefix",
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#access_log_configTypes::BucketAccessLogConfig

An object that describes the access log configuration for the bucket.



14650
14651
14652
14653
14654
14655
14656
14657
14658
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 14650

class UpdateBucketRequest < Struct.new(
  :bucket_name,
  :access_rules,
  :versioning,
  :readonly_access_accounts,
  :access_log_config)
  SENSITIVE = []
  include Aws::Structure
end

#access_rulesTypes::AccessRules

An object that sets the public accessibility of objects in the specified bucket.

Returns:



14650
14651
14652
14653
14654
14655
14656
14657
14658
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 14650

class UpdateBucketRequest < Struct.new(
  :bucket_name,
  :access_rules,
  :versioning,
  :readonly_access_accounts,
  :access_log_config)
  SENSITIVE = []
  include Aws::Structure
end

#bucket_nameString

The name of the bucket to update.

Returns:

  • (String)


14650
14651
14652
14653
14654
14655
14656
14657
14658
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 14650

class UpdateBucketRequest < Struct.new(
  :bucket_name,
  :access_rules,
  :versioning,
  :readonly_access_accounts,
  :access_log_config)
  SENSITIVE = []
  include Aws::Structure
end

#readonly_access_accountsArray<String>

An array of strings to specify the AWS account IDs that can access the bucket.

You can give a maximum of 10 AWS accounts access to a bucket.

Returns:

  • (Array<String>)


14650
14651
14652
14653
14654
14655
14656
14657
14658
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 14650

class UpdateBucketRequest < Struct.new(
  :bucket_name,
  :access_rules,
  :versioning,
  :readonly_access_accounts,
  :access_log_config)
  SENSITIVE = []
  include Aws::Structure
end

#versioningString

Specifies whether to enable or suspend versioning of objects in the bucket.

The following options can be specified:

  • Enabled - Enables versioning of objects in the specified bucket.

  • Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

Returns:

  • (String)


14650
14651
14652
14653
14654
14655
14656
14657
14658
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 14650

class UpdateBucketRequest < Struct.new(
  :bucket_name,
  :access_rules,
  :versioning,
  :readonly_access_accounts,
  :access_log_config)
  SENSITIVE = []
  include Aws::Structure
end