Skip to content

Put Public Access Block

s3control_put_public_access_block R Documentation

This operation is not supported by directory buckets

Description

This operation is not supported by directory buckets.

Creates or modifies the PublicAccessBlock configuration for an Amazon Web Services account. For this operation, users must have the s3:PutAccountPublicAccessBlock permission. For more information, see Using Amazon S3 block public access.

Related actions include:

  • get_public_access_block

  • delete_public_access_block

Usage

s3control_put_public_access_block(PublicAccessBlockConfiguration,
  AccountId)

Arguments

PublicAccessBlockConfiguration

[required] The PublicAccessBlock configuration that you want to apply to the specified Amazon Web Services account.

AccountId

[required] The account ID for the Amazon Web Services account whose PublicAccessBlock configuration you want to set.

Value

An empty list.

Request syntax

svc$put_public_access_block(
  PublicAccessBlockConfiguration = list(
    BlockPublicAcls = TRUE|FALSE,
    IgnorePublicAcls = TRUE|FALSE,
    BlockPublicPolicy = TRUE|FALSE,
    RestrictPublicBuckets = TRUE|FALSE
  ),
  AccountId = "string"
)