Skip to content

This operation is not supported by directory buckets

Description

This operation is not supported by directory buckets.

Retrieves the PublicAccessBlock configuration for an Amazon Web Services account. This operation returns the effective account-level configuration, which may inherit from organization-level policies. For more information, see Using Amazon S3 block public access.

Related actions include:

Usage

s3control_get_public_access_block(AccountId)

Arguments

  • AccountId

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

Value

A list with the following syntax:

list(
  PublicAccessBlockConfiguration = list(
    BlockPublicAcls = TRUE|FALSE,
    IgnorePublicAcls = TRUE|FALSE,
    BlockPublicPolicy = TRUE|FALSE,
    RestrictPublicBuckets = TRUE|FALSE
  )
)

Request syntax

svc$get_public_access_block(
  AccountId = "string"
)