Learn R Programming

paws.storage (version 0.1.8)

s3control_put_access_point_policy: Associates an access policy with the specified access point

Description

Associates an access policy with the specified access point. Each access point can have only one policy, so a request made to this API replaces any existing policy associated with the specified access point.

Usage

s3control_put_access_point_policy(AccountId, Name, Policy)

Arguments

AccountId

[required] The AWS account ID for owner of the bucket associated with the specified access point.

Name

[required] The name of the access point that you want to associate with the specified policy.

Policy

[required] The policy that you want to apply to the specified access point. For more information about access point policies, see Managing Data Access with Amazon S3 Access Points in the Amazon Simple Storage Service Developer Guide.

Request syntax

svc$put_access_point_policy(
  AccountId = "string",
  Name = "string",
  Policy = "string"
)