Class: Aws::S3::Types::PutBucketPolicyRequest

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

Overview

Note:

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

{
  bucket: "BucketName", # required
  content_md5: "ContentMD5",
  confirm_remove_self_bucket_access: false,
  policy: "Policy", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bucketString

The name of the bucket.

Returns:

  • (String)


9393
9394
9395
9396
9397
9398
9399
9400
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9393

class PutBucketPolicyRequest < Struct.new(
  :bucket,
  :content_md5,
  :confirm_remove_self_bucket_access,
  :policy)
  SENSITIVE = []
  include Aws::Structure
end

#confirm_remove_self_bucket_accessBoolean

Set this parameter to true to confirm that you want to remove your permissions to change this bucket policy in the future.

Returns:

  • (Boolean)


9393
9394
9395
9396
9397
9398
9399
9400
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9393

class PutBucketPolicyRequest < Struct.new(
  :bucket,
  :content_md5,
  :confirm_remove_self_bucket_access,
  :policy)
  SENSITIVE = []
  include Aws::Structure
end

#content_md5String

The MD5 hash of the request body.

Returns:

  • (String)


9393
9394
9395
9396
9397
9398
9399
9400
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9393

class PutBucketPolicyRequest < Struct.new(
  :bucket,
  :content_md5,
  :confirm_remove_self_bucket_access,
  :policy)
  SENSITIVE = []
  include Aws::Structure
end

#policyString

The bucket policy as a JSON document.

Returns:

  • (String)


9393
9394
9395
9396
9397
9398
9399
9400
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/types.rb', line 9393

class PutBucketPolicyRequest < Struct.new(
  :bucket,
  :content_md5,
  :confirm_remove_self_bucket_access,
  :policy)
  SENSITIVE = []
  include Aws::Structure
end