Skip to content

Get Public Access Block

s3control_get_public_access_block R Documentation

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. For more information, see Using Amazon S3 block public access.

Related actions include:

  • delete_public_access_block

  • put_public_access_block

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"
)