1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ObsBucketObjectAcl
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.ObsBucketObjectAcl

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    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
    

    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 string
    The unique name of the resource.
    args ObsBucketObjectAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args ObsBucketObjectAclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObsBucketObjectAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
            },
        },
    });
    
    example, err := opentelekomcloud.NewObsBucketObjectAcl(ctx, "obsBucketObjectAclResource", &opentelekomcloud.ObsBucketObjectAclArgs{
    	Bucket: pulumi.String("string"),
    	Key:    pulumi.String("string"),
    	AccountPermissions: opentelekomcloud.ObsBucketObjectAclAccountPermissionArray{
    		&opentelekomcloud.ObsBucketObjectAclAccountPermissionArgs{
    			AccountId: pulumi.String("string"),
    			AccessToAcls: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AccessToObjects: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	ObsBucketObjectAclId: pulumi.String("string"),
    	PublicPermission: &opentelekomcloud.ObsBucketObjectAclPublicPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToObjects: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    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());
    
    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"],
        })
    
    const obsBucketObjectAclResource = new opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource", {
        bucket: "string",
        key: "string",
        accountPermissions: [{
            accountId: "string",
            accessToAcls: ["string"],
            accessToObjects: ["string"],
        }],
        obsBucketObjectAclId: "string",
        publicPermission: {
            accessToAcls: ["string"],
            accessToObjects: ["string"],
        },
    });
    
    type: opentelekomcloud:ObsBucketObjectAcl
    properties:
        accountPermissions:
            - accessToAcls:
                - string
              accessToObjects:
                - string
              accountId: string
        bucket: string
        key: string
        obsBucketObjectAclId: string
        publicPermission:
            accessToAcls:
                - string
            accessToObjects:
                - string
    

    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 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.

    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 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.

    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 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.

    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 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.

    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 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.

    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 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.

    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 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 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 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 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 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 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 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.

    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>
    

    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.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud