Help Center> OBS GO SDK> API Reference> Data Types> Request Parameter of PUT Bucket policy
Updated on 2022-02-10 GMT+08:00

Request Parameter of PUT Bucket policy

Type Definition

type SetBucketPolicyInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Policy

string

Mandatory

Policy information in JSON format For details about the format, see Policy Format.

The bucket name contained in the Resource field in Policy must be the one specified for the bucket policy.