1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ObsBucketObjectAcl
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.ObsBucketObjectAcl

Explore with Pulumi AI

Up-to-date reference of API arguments for OBS bucket object you can get at documentation portal

Manages an OBS bucket object acl resource within OpenTelekomCloud.

NOTE: When creating or updating the OBS bucket object acl, the original object acl will be overwritten. When deleting the OBS bucket object acl, only the owner permissions will be retained, and the other permissions will be removed.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
configuration:
  bucket:
    type: dynamic
  key:
    type: dynamic
  account1:
    type: dynamic
  account2:
    type: dynamic
resources:
  test:
    type: opentelekomcloud:ObsBucketAcl
    properties:
      bucket: ${bucket}
      key: ${key}
      accountPermissions:
        - accessToObject:
            - READ
          accessToAcls:
            - READ_ACP
            - WRITE_ACP
          accountId: ${account1}
        - accessToObject:
            - READ
          accessToAcls:
            - READ_ACP
          accountId: ${account2}
      publicPermission:
        accessToAcls:
          - READ_ACP
          - WRITE_ACP
Copy

Create ObsBucketObjectAcl Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ObsBucketObjectAcl(name: string, args: ObsBucketObjectAclArgs, opts?: CustomResourceOptions);
@overload
def ObsBucketObjectAcl(resource_name: str,
                       args: ObsBucketObjectAclArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def ObsBucketObjectAcl(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       bucket: Optional[str] = None,
                       key: Optional[str] = None,
                       account_permissions: Optional[Sequence[ObsBucketObjectAclAccountPermissionArgs]] = None,
                       obs_bucket_object_acl_id: Optional[str] = None,
                       public_permission: Optional[ObsBucketObjectAclPublicPermissionArgs] = None)
func NewObsBucketObjectAcl(ctx *Context, name string, args ObsBucketObjectAclArgs, opts ...ResourceOption) (*ObsBucketObjectAcl, error)
public ObsBucketObjectAcl(string name, ObsBucketObjectAclArgs args, CustomResourceOptions? opts = null)
public ObsBucketObjectAcl(String name, ObsBucketObjectAclArgs args)
public ObsBucketObjectAcl(String name, ObsBucketObjectAclArgs args, CustomResourceOptions options)
type: opentelekomcloud:ObsBucketObjectAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ObsBucketObjectAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ObsBucketObjectAclArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ObsBucketObjectAclArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ObsBucketObjectAclArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ObsBucketObjectAclArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var obsBucketObjectAclResource = new Opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource", new()
{
    Bucket = "string",
    Key = "string",
    AccountPermissions = new[]
    {
        new Opentelekomcloud.Inputs.ObsBucketObjectAclAccountPermissionArgs
        {
            AccountId = "string",
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToObjects = new[]
            {
                "string",
            },
        },
    },
    ObsBucketObjectAclId = "string",
    PublicPermission = new Opentelekomcloud.Inputs.ObsBucketObjectAclPublicPermissionArgs
    {
        AccessToAcls = new[]
        {
            "string",
        },
        AccessToObjects = new[]
        {
            "string",
        },
    },
});
Copy
example, err := opentelekomcloud.NewObsBucketObjectAcl(ctx, "obsBucketObjectAclResource", &opentelekomcloud.ObsBucketObjectAclArgs{
Bucket: pulumi.String("string"),
Key: pulumi.String("string"),
AccountPermissions: .ObsBucketObjectAclAccountPermissionArray{
&.ObsBucketObjectAclAccountPermissionArgs{
AccountId: pulumi.String("string"),
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToObjects: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ObsBucketObjectAclId: pulumi.String("string"),
PublicPermission: &.ObsBucketObjectAclPublicPermissionArgs{
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToObjects: pulumi.StringArray{
pulumi.String("string"),
},
},
})
Copy
var obsBucketObjectAclResource = new ObsBucketObjectAcl("obsBucketObjectAclResource", ObsBucketObjectAclArgs.builder()
    .bucket("string")
    .key("string")
    .accountPermissions(ObsBucketObjectAclAccountPermissionArgs.builder()
        .accountId("string")
        .accessToAcls("string")
        .accessToObjects("string")
        .build())
    .obsBucketObjectAclId("string")
    .publicPermission(ObsBucketObjectAclPublicPermissionArgs.builder()
        .accessToAcls("string")
        .accessToObjects("string")
        .build())
    .build());
Copy
obs_bucket_object_acl_resource = opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource",
    bucket="string",
    key="string",
    account_permissions=[{
        "account_id": "string",
        "access_to_acls": ["string"],
        "access_to_objects": ["string"],
    }],
    obs_bucket_object_acl_id="string",
    public_permission={
        "access_to_acls": ["string"],
        "access_to_objects": ["string"],
    })
Copy
const obsBucketObjectAclResource = new opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource", {
    bucket: "string",
    key: "string",
    accountPermissions: [{
        accountId: "string",
        accessToAcls: ["string"],
        accessToObjects: ["string"],
    }],
    obsBucketObjectAclId: "string",
    publicPermission: {
        accessToAcls: ["string"],
        accessToObjects: ["string"],
    },
});
Copy
type: opentelekomcloud:ObsBucketObjectAcl
properties:
    accountPermissions:
        - accessToAcls:
            - string
          accessToObjects:
            - string
          accountId: string
    bucket: string
    key: string
    obsBucketObjectAclId: string
    publicPermission:
        accessToAcls:
            - string
        accessToObjects:
            - string
Copy

ObsBucketObjectAcl Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ObsBucketObjectAcl resource accepts the following input properties:

Bucket This property is required. string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

Key This property is required. string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

AccountPermissions List<ObsBucketObjectAclAccountPermission>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

ObsBucketObjectAclId string
The name of the bucket object key.
PublicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
Bucket This property is required. string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

Key This property is required. string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

AccountPermissions []ObsBucketObjectAclAccountPermissionArgs

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

ObsBucketObjectAclId string
The name of the bucket object key.
PublicPermission ObsBucketObjectAclPublicPermissionArgs
Specifies the object public permission. The permission_struct structure is documented below.
bucket This property is required. String

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key This property is required. String

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

accountPermissions List<ObsBucketObjectAclAccountPermission>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

obsBucketObjectAclId String
The name of the bucket object key.
publicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
bucket This property is required. string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key This property is required. string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

accountPermissions ObsBucketObjectAclAccountPermission[]

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

obsBucketObjectAclId string
The name of the bucket object key.
publicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
bucket This property is required. str

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key This property is required. str

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

account_permissions Sequence[ObsBucketObjectAclAccountPermissionArgs]

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

obs_bucket_object_acl_id str
The name of the bucket object key.
public_permission ObsBucketObjectAclPublicPermissionArgs
Specifies the object public permission. The permission_struct structure is documented below.
bucket This property is required. String

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key This property is required. String

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

accountPermissions List<Property Map>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

obsBucketObjectAclId String
The name of the bucket object key.
publicPermission Property Map
Specifies the object public permission. The permission_struct structure is documented below.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObsBucketObjectAcl resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
OwnerPermissions List<ObsBucketObjectAclOwnerPermission>
The object owner permission information. The owner_permission_struct structure is documented below.
Region string
The region of the bucket.
Id string
The provider-assigned unique ID for this managed resource.
OwnerPermissions []ObsBucketObjectAclOwnerPermission
The object owner permission information. The owner_permission_struct structure is documented below.
Region string
The region of the bucket.
id String
The provider-assigned unique ID for this managed resource.
ownerPermissions List<ObsBucketObjectAclOwnerPermission>
The object owner permission information. The owner_permission_struct structure is documented below.
region String
The region of the bucket.
id string
The provider-assigned unique ID for this managed resource.
ownerPermissions ObsBucketObjectAclOwnerPermission[]
The object owner permission information. The owner_permission_struct structure is documented below.
region string
The region of the bucket.
id str
The provider-assigned unique ID for this managed resource.
owner_permissions Sequence[ObsBucketObjectAclOwnerPermission]
The object owner permission information. The owner_permission_struct structure is documented below.
region str
The region of the bucket.
id String
The provider-assigned unique ID for this managed resource.
ownerPermissions List<Property Map>
The object owner permission information. The owner_permission_struct structure is documented below.
region String
The region of the bucket.

Look up Existing ObsBucketObjectAcl Resource

Get an existing ObsBucketObjectAcl resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ObsBucketObjectAclState, opts?: CustomResourceOptions): ObsBucketObjectAcl
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_permissions: Optional[Sequence[ObsBucketObjectAclAccountPermissionArgs]] = None,
        bucket: Optional[str] = None,
        key: Optional[str] = None,
        obs_bucket_object_acl_id: Optional[str] = None,
        owner_permissions: Optional[Sequence[ObsBucketObjectAclOwnerPermissionArgs]] = None,
        public_permission: Optional[ObsBucketObjectAclPublicPermissionArgs] = None,
        region: Optional[str] = None) -> ObsBucketObjectAcl
func GetObsBucketObjectAcl(ctx *Context, name string, id IDInput, state *ObsBucketObjectAclState, opts ...ResourceOption) (*ObsBucketObjectAcl, error)
public static ObsBucketObjectAcl Get(string name, Input<string> id, ObsBucketObjectAclState? state, CustomResourceOptions? opts = null)
public static ObsBucketObjectAcl get(String name, Output<String> id, ObsBucketObjectAclState state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:ObsBucketObjectAcl    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountPermissions List<ObsBucketObjectAclAccountPermission>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

Bucket string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

Key string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

ObsBucketObjectAclId string
The name of the bucket object key.
OwnerPermissions List<ObsBucketObjectAclOwnerPermission>
The object owner permission information. The owner_permission_struct structure is documented below.
PublicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
Region string
The region of the bucket.
AccountPermissions []ObsBucketObjectAclAccountPermissionArgs

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

Bucket string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

Key string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

ObsBucketObjectAclId string
The name of the bucket object key.
OwnerPermissions []ObsBucketObjectAclOwnerPermissionArgs
The object owner permission information. The owner_permission_struct structure is documented below.
PublicPermission ObsBucketObjectAclPublicPermissionArgs
Specifies the object public permission. The permission_struct structure is documented below.
Region string
The region of the bucket.
accountPermissions List<ObsBucketObjectAclAccountPermission>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

bucket String

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key String

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

obsBucketObjectAclId String
The name of the bucket object key.
ownerPermissions List<ObsBucketObjectAclOwnerPermission>
The object owner permission information. The owner_permission_struct structure is documented below.
publicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
region String
The region of the bucket.
accountPermissions ObsBucketObjectAclAccountPermission[]

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

bucket string

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key string

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

obsBucketObjectAclId string
The name of the bucket object key.
ownerPermissions ObsBucketObjectAclOwnerPermission[]
The object owner permission information. The owner_permission_struct structure is documented below.
publicPermission ObsBucketObjectAclPublicPermission
Specifies the object public permission. The permission_struct structure is documented below.
region string
The region of the bucket.
account_permissions Sequence[ObsBucketObjectAclAccountPermissionArgs]

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

bucket str

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key str

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

obs_bucket_object_acl_id str
The name of the bucket object key.
owner_permissions Sequence[ObsBucketObjectAclOwnerPermissionArgs]
The object owner permission information. The owner_permission_struct structure is documented below.
public_permission ObsBucketObjectAclPublicPermissionArgs
Specifies the object public permission. The permission_struct structure is documented below.
region str
The region of the bucket.
accountPermissions List<Property Map>

Specifies the object account permissions. The account_permission_struct structure is documented below.

The permission_struct block supports:

bucket String

Specifies the name of the bucket which the object belongs to.

Changing this parameter will create a new resource.

key String

Specifies the name of the object to which to set the acl.

Changing this parameter will create a new resource.

obsBucketObjectAclId String
The name of the bucket object key.
ownerPermissions List<Property Map>
The object owner permission information. The owner_permission_struct structure is documented below.
publicPermission Property Map
Specifies the object public permission. The permission_struct structure is documented below.
region String
The region of the bucket.

Supporting Types

ObsBucketObjectAclAccountPermission
, ObsBucketObjectAclAccountPermissionArgs

AccountId This property is required. string
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
AccessToAcls List<string>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects List<string>
Specifies the access to object. Only READ supported.
AccountId This property is required. string
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
AccessToAcls []string
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects []string
Specifies the access to object. Only READ supported.
accountId This property is required. String
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
accessToAcls List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects List<String>
Specifies the access to object. Only READ supported.
accountId This property is required. string
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
accessToAcls string[]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects string[]
Specifies the access to object. Only READ supported.
account_id This property is required. str
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
access_to_acls Sequence[str]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
access_to_objects Sequence[str]
Specifies the access to object. Only READ supported.
accountId This property is required. String
Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
accessToAcls List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects List<String>
Specifies the access to object. Only READ supported.

ObsBucketObjectAclOwnerPermission
, ObsBucketObjectAclOwnerPermissionArgs

AccessToAcls This property is required. List<string>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects This property is required. List<string>
Specifies the access to object. Only READ supported.
AccessToAcls This property is required. []string
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects This property is required. []string
Specifies the access to object. Only READ supported.
accessToAcls This property is required. List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects This property is required. List<String>
Specifies the access to object. Only READ supported.
accessToAcls This property is required. string[]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects This property is required. string[]
Specifies the access to object. Only READ supported.
access_to_acls This property is required. Sequence[str]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
access_to_objects This property is required. Sequence[str]
Specifies the access to object. Only READ supported.
accessToAcls This property is required. List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects This property is required. List<String>
Specifies the access to object. Only READ supported.

ObsBucketObjectAclPublicPermission
, ObsBucketObjectAclPublicPermissionArgs

AccessToAcls List<string>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects List<string>
Specifies the access to object. Only READ supported.
AccessToAcls []string
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
AccessToObjects []string
Specifies the access to object. Only READ supported.
accessToAcls List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects List<String>
Specifies the access to object. Only READ supported.
accessToAcls string[]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects string[]
Specifies the access to object. Only READ supported.
access_to_acls Sequence[str]
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
access_to_objects Sequence[str]
Specifies the access to object. Only READ supported.
accessToAcls List<String>
Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
accessToObjects List<String>
Specifies the access to object. Only READ supported.

Import

The obs bucket object acl can be imported using bucket and key, separated by a slash, e.g.

bash

$ pulumi import opentelekomcloud:index/obsBucketObjectAcl:ObsBucketObjectAcl test <bucket>/<key>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
License
Notes
This Pulumi package is based on the opentelekomcloud Terraform Provider.