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

opentelekomcloud.ObsBucketAcl

Explore with Pulumi AI

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

    Manages an OBS bucket acl resource within OpenTelekomCloud.

    NOTE: When creating or updating the OBS bucket acl, the original bucket acl will be overwritten. When deleting the OBS bucket acl, the full permissions of the bucket owner will be set, and the other permissions will be removed.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const bucket = config.requireObject("bucket");
    const account1 = config.requireObject("account1");
    const account2 = config.requireObject("account2");
    const test = new opentelekomcloud.ObsBucketAcl("test", {
        bucket: bucket,
        ownerPermission: {
            accessToBuckets: [
                "READ",
                "WRITE",
            ],
            accessToAcls: [
                "READ_ACP",
                "WRITE_ACP",
            ],
        },
        accountPermissions: [
            {
                accessToBuckets: [
                    "READ",
                    "WRITE",
                ],
                accessToAcls: [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                accountId: account1,
            },
            {
                accessToBuckets: ["READ"],
                accessToAcls: [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                accountId: account2,
            },
        ],
        publicPermission: {
            accessToBuckets: [
                "READ",
                "WRITE",
            ],
        },
        logDeliveryUserPermission: {
            accessToBuckets: [
                "READ",
                "WRITE",
            ],
            accessToAcls: [
                "READ_ACP",
                "WRITE_ACP",
            ],
        },
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    bucket = config.require_object("bucket")
    account1 = config.require_object("account1")
    account2 = config.require_object("account2")
    test = opentelekomcloud.ObsBucketAcl("test",
        bucket=bucket,
        owner_permission={
            "access_to_buckets": [
                "READ",
                "WRITE",
            ],
            "access_to_acls": [
                "READ_ACP",
                "WRITE_ACP",
            ],
        },
        account_permissions=[
            {
                "access_to_buckets": [
                    "READ",
                    "WRITE",
                ],
                "access_to_acls": [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                "account_id": account1,
            },
            {
                "access_to_buckets": ["READ"],
                "access_to_acls": [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                "account_id": account2,
            },
        ],
        public_permission={
            "access_to_buckets": [
                "READ",
                "WRITE",
            ],
        },
        log_delivery_user_permission={
            "access_to_buckets": [
                "READ",
                "WRITE",
            ],
            "access_to_acls": [
                "READ_ACP",
                "WRITE_ACP",
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		bucket := cfg.RequireObject("bucket")
    		account1 := cfg.RequireObject("account1")
    		account2 := cfg.RequireObject("account2")
    		_, err := opentelekomcloud.NewObsBucketAcl(ctx, "test", &opentelekomcloud.ObsBucketAclArgs{
    			Bucket: pulumi.Any(bucket),
    			OwnerPermission: &opentelekomcloud.ObsBucketAclOwnerPermissionArgs{
    				AccessToBuckets: pulumi.StringArray{
    					pulumi.String("READ"),
    					pulumi.String("WRITE"),
    				},
    				AccessToAcls: pulumi.StringArray{
    					pulumi.String("READ_ACP"),
    					pulumi.String("WRITE_ACP"),
    				},
    			},
    			AccountPermissions: opentelekomcloud.ObsBucketAclAccountPermissionArray{
    				&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
    					AccessToBuckets: pulumi.StringArray{
    						pulumi.String("READ"),
    						pulumi.String("WRITE"),
    					},
    					AccessToAcls: pulumi.StringArray{
    						pulumi.String("READ_ACP"),
    						pulumi.String("WRITE_ACP"),
    					},
    					AccountId: pulumi.Any(account1),
    				},
    				&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
    					AccessToBuckets: pulumi.StringArray{
    						pulumi.String("READ"),
    					},
    					AccessToAcls: pulumi.StringArray{
    						pulumi.String("READ_ACP"),
    						pulumi.String("WRITE_ACP"),
    					},
    					AccountId: pulumi.Any(account2),
    				},
    			},
    			PublicPermission: &opentelekomcloud.ObsBucketAclPublicPermissionArgs{
    				AccessToBuckets: pulumi.StringArray{
    					pulumi.String("READ"),
    					pulumi.String("WRITE"),
    				},
    			},
    			LogDeliveryUserPermission: &opentelekomcloud.ObsBucketAclLogDeliveryUserPermissionArgs{
    				AccessToBuckets: pulumi.StringArray{
    					pulumi.String("READ"),
    					pulumi.String("WRITE"),
    				},
    				AccessToAcls: pulumi.StringArray{
    					pulumi.String("READ_ACP"),
    					pulumi.String("WRITE_ACP"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var bucket = config.RequireObject<dynamic>("bucket");
        var account1 = config.RequireObject<dynamic>("account1");
        var account2 = config.RequireObject<dynamic>("account2");
        var test = new Opentelekomcloud.ObsBucketAcl("test", new()
        {
            Bucket = bucket,
            OwnerPermission = new Opentelekomcloud.Inputs.ObsBucketAclOwnerPermissionArgs
            {
                AccessToBuckets = new[]
                {
                    "READ",
                    "WRITE",
                },
                AccessToAcls = new[]
                {
                    "READ_ACP",
                    "WRITE_ACP",
                },
            },
            AccountPermissions = new[]
            {
                new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
                {
                    AccessToBuckets = new[]
                    {
                        "READ",
                        "WRITE",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                        "WRITE_ACP",
                    },
                    AccountId = account1,
                },
                new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
                {
                    AccessToBuckets = new[]
                    {
                        "READ",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                        "WRITE_ACP",
                    },
                    AccountId = account2,
                },
            },
            PublicPermission = new Opentelekomcloud.Inputs.ObsBucketAclPublicPermissionArgs
            {
                AccessToBuckets = new[]
                {
                    "READ",
                    "WRITE",
                },
            },
            LogDeliveryUserPermission = new Opentelekomcloud.Inputs.ObsBucketAclLogDeliveryUserPermissionArgs
            {
                AccessToBuckets = new[]
                {
                    "READ",
                    "WRITE",
                },
                AccessToAcls = new[]
                {
                    "READ_ACP",
                    "WRITE_ACP",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ObsBucketAcl;
    import com.pulumi.opentelekomcloud.ObsBucketAclArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketAclOwnerPermissionArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketAclAccountPermissionArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketAclPublicPermissionArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketAclLogDeliveryUserPermissionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var bucket = config.get("bucket");
            final var account1 = config.get("account1");
            final var account2 = config.get("account2");
            var test = new ObsBucketAcl("test", ObsBucketAclArgs.builder()
                .bucket(bucket)
                .ownerPermission(ObsBucketAclOwnerPermissionArgs.builder()
                    .accessToBuckets(                
                        "READ",
                        "WRITE")
                    .accessToAcls(                
                        "READ_ACP",
                        "WRITE_ACP")
                    .build())
                .accountPermissions(            
                    ObsBucketAclAccountPermissionArgs.builder()
                        .accessToBuckets(                    
                            "READ",
                            "WRITE")
                        .accessToAcls(                    
                            "READ_ACP",
                            "WRITE_ACP")
                        .accountId(account1)
                        .build(),
                    ObsBucketAclAccountPermissionArgs.builder()
                        .accessToBuckets("READ")
                        .accessToAcls(                    
                            "READ_ACP",
                            "WRITE_ACP")
                        .accountId(account2)
                        .build())
                .publicPermission(ObsBucketAclPublicPermissionArgs.builder()
                    .accessToBuckets(                
                        "READ",
                        "WRITE")
                    .build())
                .logDeliveryUserPermission(ObsBucketAclLogDeliveryUserPermissionArgs.builder()
                    .accessToBuckets(                
                        "READ",
                        "WRITE")
                    .accessToAcls(                
                        "READ_ACP",
                        "WRITE_ACP")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      bucket:
        type: dynamic
      account1:
        type: dynamic
      account2:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:ObsBucketAcl
        properties:
          bucket: ${bucket}
          ownerPermission:
            accessToBuckets:
              - READ
              - WRITE
            accessToAcls:
              - READ_ACP
              - WRITE_ACP
          accountPermissions:
            - accessToBuckets:
                - READ
                - WRITE
              accessToAcls:
                - READ_ACP
                - WRITE_ACP
              accountId: ${account1}
            - accessToBuckets:
                - READ
              accessToAcls:
                - READ_ACP
                - WRITE_ACP
              accountId: ${account2}
          publicPermission:
            accessToBuckets:
              - READ
              - WRITE
          logDeliveryUserPermission:
            accessToBuckets:
              - READ
              - WRITE
            accessToAcls:
              - READ_ACP
              - WRITE_ACP
    

    Create ObsBucketAcl Resource

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

    Constructor syntax

    new ObsBucketAcl(name: string, args: ObsBucketAclArgs, opts?: CustomResourceOptions);
    @overload
    def ObsBucketAcl(resource_name: str,
                     args: ObsBucketAclArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObsBucketAcl(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bucket: Optional[str] = None,
                     account_permissions: Optional[Sequence[ObsBucketAclAccountPermissionArgs]] = None,
                     log_delivery_user_permission: Optional[ObsBucketAclLogDeliveryUserPermissionArgs] = None,
                     obs_bucket_acl_id: Optional[str] = None,
                     owner_permission: Optional[ObsBucketAclOwnerPermissionArgs] = None,
                     public_permission: Optional[ObsBucketAclPublicPermissionArgs] = None)
    func NewObsBucketAcl(ctx *Context, name string, args ObsBucketAclArgs, opts ...ResourceOption) (*ObsBucketAcl, error)
    public ObsBucketAcl(string name, ObsBucketAclArgs args, CustomResourceOptions? opts = null)
    public ObsBucketAcl(String name, ObsBucketAclArgs args)
    public ObsBucketAcl(String name, ObsBucketAclArgs args, CustomResourceOptions options)
    
    type: opentelekomcloud:ObsBucketAcl
    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 ObsBucketAclArgs
    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 ObsBucketAclArgs
    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 ObsBucketAclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObsBucketAclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObsBucketAclArgs
    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 obsBucketAclResource = new Opentelekomcloud.ObsBucketAcl("obsBucketAclResource", new()
    {
        Bucket = "string",
        AccountPermissions = new[]
        {
            new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
            {
                AccountId = "string",
                AccessToAcls = new[]
                {
                    "string",
                },
                AccessToBuckets = new[]
                {
                    "string",
                },
            },
        },
        LogDeliveryUserPermission = new Opentelekomcloud.Inputs.ObsBucketAclLogDeliveryUserPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
        ObsBucketAclId = "string",
        OwnerPermission = new Opentelekomcloud.Inputs.ObsBucketAclOwnerPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
        PublicPermission = new Opentelekomcloud.Inputs.ObsBucketAclPublicPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
    });
    
    example, err := opentelekomcloud.NewObsBucketAcl(ctx, "obsBucketAclResource", &opentelekomcloud.ObsBucketAclArgs{
    	Bucket: pulumi.String("string"),
    	AccountPermissions: opentelekomcloud.ObsBucketAclAccountPermissionArray{
    		&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
    			AccountId: pulumi.String("string"),
    			AccessToAcls: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AccessToBuckets: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	LogDeliveryUserPermission: &opentelekomcloud.ObsBucketAclLogDeliveryUserPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ObsBucketAclId: pulumi.String("string"),
    	OwnerPermission: &opentelekomcloud.ObsBucketAclOwnerPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	PublicPermission: &opentelekomcloud.ObsBucketAclPublicPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var obsBucketAclResource = new ObsBucketAcl("obsBucketAclResource", ObsBucketAclArgs.builder()
        .bucket("string")
        .accountPermissions(ObsBucketAclAccountPermissionArgs.builder()
            .accountId("string")
            .accessToAcls("string")
            .accessToBuckets("string")
            .build())
        .logDeliveryUserPermission(ObsBucketAclLogDeliveryUserPermissionArgs.builder()
            .accessToAcls("string")
            .accessToBuckets("string")
            .build())
        .obsBucketAclId("string")
        .ownerPermission(ObsBucketAclOwnerPermissionArgs.builder()
            .accessToAcls("string")
            .accessToBuckets("string")
            .build())
        .publicPermission(ObsBucketAclPublicPermissionArgs.builder()
            .accessToAcls("string")
            .accessToBuckets("string")
            .build())
        .build());
    
    obs_bucket_acl_resource = opentelekomcloud.ObsBucketAcl("obsBucketAclResource",
        bucket="string",
        account_permissions=[{
            "account_id": "string",
            "access_to_acls": ["string"],
            "access_to_buckets": ["string"],
        }],
        log_delivery_user_permission={
            "access_to_acls": ["string"],
            "access_to_buckets": ["string"],
        },
        obs_bucket_acl_id="string",
        owner_permission={
            "access_to_acls": ["string"],
            "access_to_buckets": ["string"],
        },
        public_permission={
            "access_to_acls": ["string"],
            "access_to_buckets": ["string"],
        })
    
    const obsBucketAclResource = new opentelekomcloud.ObsBucketAcl("obsBucketAclResource", {
        bucket: "string",
        accountPermissions: [{
            accountId: "string",
            accessToAcls: ["string"],
            accessToBuckets: ["string"],
        }],
        logDeliveryUserPermission: {
            accessToAcls: ["string"],
            accessToBuckets: ["string"],
        },
        obsBucketAclId: "string",
        ownerPermission: {
            accessToAcls: ["string"],
            accessToBuckets: ["string"],
        },
        publicPermission: {
            accessToAcls: ["string"],
            accessToBuckets: ["string"],
        },
    });
    
    type: opentelekomcloud:ObsBucketAcl
    properties:
        accountPermissions:
            - accessToAcls:
                - string
              accessToBuckets:
                - string
              accountId: string
        bucket: string
        logDeliveryUserPermission:
            accessToAcls:
                - string
            accessToBuckets:
                - string
        obsBucketAclId: string
        ownerPermission:
            accessToAcls:
                - string
            accessToBuckets:
                - string
        publicPermission:
            accessToAcls:
                - string
            accessToBuckets:
                - string
    

    ObsBucketAcl 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 ObsBucketAcl resource accepts the following input properties:

    Bucket string

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

    Changing this parameter will create a new resource.

    AccountPermissions List<ObsBucketAclAccountPermission>

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

    The permission_struct block supports:

    LogDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    ObsBucketAclId string
    The name of the bucket.
    OwnerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    PublicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    Bucket string

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

    Changing this parameter will create a new resource.

    AccountPermissions []ObsBucketAclAccountPermissionArgs

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

    The permission_struct block supports:

    LogDeliveryUserPermission ObsBucketAclLogDeliveryUserPermissionArgs
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    ObsBucketAclId string
    The name of the bucket.
    OwnerPermission ObsBucketAclOwnerPermissionArgs
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    PublicPermission ObsBucketAclPublicPermissionArgs
    Specifies the public permission. The permission_struct structure is documented below.
    bucket String

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

    Changing this parameter will create a new resource.

    accountPermissions List<ObsBucketAclAccountPermission>

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

    The permission_struct block supports:

    logDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId String
    The name of the bucket.
    ownerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    bucket string

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

    Changing this parameter will create a new resource.

    accountPermissions ObsBucketAclAccountPermission[]

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

    The permission_struct block supports:

    logDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId string
    The name of the bucket.
    ownerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    bucket str

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

    Changing this parameter will create a new resource.

    account_permissions Sequence[ObsBucketAclAccountPermissionArgs]

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

    The permission_struct block supports:

    log_delivery_user_permission ObsBucketAclLogDeliveryUserPermissionArgs
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obs_bucket_acl_id str
    The name of the bucket.
    owner_permission ObsBucketAclOwnerPermissionArgs
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    public_permission ObsBucketAclPublicPermissionArgs
    Specifies the public permission. The permission_struct structure is documented below.
    bucket String

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

    Changing this parameter will create a new resource.

    accountPermissions List<Property Map>

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

    The permission_struct block supports:

    logDeliveryUserPermission Property Map
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId String
    The name of the bucket.
    ownerPermission Property Map
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission Property Map
    Specifies the public permission. The permission_struct structure is documented below.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region in which resource is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region in which resource is created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region in which resource is created.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The region in which resource is created.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The region in which resource is created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region in which resource is created.

    Look up Existing ObsBucketAcl Resource

    Get an existing ObsBucketAcl 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?: ObsBucketAclState, opts?: CustomResourceOptions): ObsBucketAcl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_permissions: Optional[Sequence[ObsBucketAclAccountPermissionArgs]] = None,
            bucket: Optional[str] = None,
            log_delivery_user_permission: Optional[ObsBucketAclLogDeliveryUserPermissionArgs] = None,
            obs_bucket_acl_id: Optional[str] = None,
            owner_permission: Optional[ObsBucketAclOwnerPermissionArgs] = None,
            public_permission: Optional[ObsBucketAclPublicPermissionArgs] = None,
            region: Optional[str] = None) -> ObsBucketAcl
    func GetObsBucketAcl(ctx *Context, name string, id IDInput, state *ObsBucketAclState, opts ...ResourceOption) (*ObsBucketAcl, error)
    public static ObsBucketAcl Get(string name, Input<string> id, ObsBucketAclState? state, CustomResourceOptions? opts = null)
    public static ObsBucketAcl get(String name, Output<String> id, ObsBucketAclState state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ObsBucketAcl    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<ObsBucketAclAccountPermission>

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

    The permission_struct block supports:

    Bucket string

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

    Changing this parameter will create a new resource.

    LogDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    ObsBucketAclId string
    The name of the bucket.
    OwnerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    PublicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    Region string
    The region in which resource is created.
    AccountPermissions []ObsBucketAclAccountPermissionArgs

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

    The permission_struct block supports:

    Bucket string

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

    Changing this parameter will create a new resource.

    LogDeliveryUserPermission ObsBucketAclLogDeliveryUserPermissionArgs
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    ObsBucketAclId string
    The name of the bucket.
    OwnerPermission ObsBucketAclOwnerPermissionArgs
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    PublicPermission ObsBucketAclPublicPermissionArgs
    Specifies the public permission. The permission_struct structure is documented below.
    Region string
    The region in which resource is created.
    accountPermissions List<ObsBucketAclAccountPermission>

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

    The permission_struct block supports:

    bucket String

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

    Changing this parameter will create a new resource.

    logDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId String
    The name of the bucket.
    ownerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    region String
    The region in which resource is created.
    accountPermissions ObsBucketAclAccountPermission[]

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

    The permission_struct block supports:

    bucket string

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

    Changing this parameter will create a new resource.

    logDeliveryUserPermission ObsBucketAclLogDeliveryUserPermission
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId string
    The name of the bucket.
    ownerPermission ObsBucketAclOwnerPermission
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission ObsBucketAclPublicPermission
    Specifies the public permission. The permission_struct structure is documented below.
    region string
    The region in which resource is created.
    account_permissions Sequence[ObsBucketAclAccountPermissionArgs]

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

    The permission_struct block supports:

    bucket str

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

    Changing this parameter will create a new resource.

    log_delivery_user_permission ObsBucketAclLogDeliveryUserPermissionArgs
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obs_bucket_acl_id str
    The name of the bucket.
    owner_permission ObsBucketAclOwnerPermissionArgs
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    public_permission ObsBucketAclPublicPermissionArgs
    Specifies the public permission. The permission_struct structure is documented below.
    region str
    The region in which resource is created.
    accountPermissions List<Property Map>

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

    The permission_struct block supports:

    bucket String

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

    Changing this parameter will create a new resource.

    logDeliveryUserPermission Property Map
    Specifies the log delivery user permission. The permission_struct structure is documented below.
    obsBucketAclId String
    The name of the bucket.
    ownerPermission Property Map
    Specifies the bucket owner permission. If omitted, the current obs bucket acl owner permission will not be changed. The permission_struct structure is documented below.
    publicPermission Property Map
    Specifies the public permission. The permission_struct structure is documented below.
    region String
    The region in which resource is created.

    Supporting Types

    ObsBucketAclAccountPermission, ObsBucketAclAccountPermissionArgs

    AccountId string
    Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
    AccessToAcls List<string>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets List<string>
    Specifies the access to bucket. Valid values are READ and WRITE.
    AccountId string
    Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
    AccessToAcls []string
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets []string
    Specifies the access to bucket. Valid values are READ and WRITE.
    accountId String
    Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.
    accountId string
    Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
    accessToAcls string[]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets string[]
    Specifies the access to bucket. Valid values are READ and WRITE.
    account_id str
    Specifies the account id to authorize. The account id cannot be the bucket 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_buckets Sequence[str]
    Specifies the access to bucket. Valid values are READ and WRITE.
    accountId String
    Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.

    ObsBucketAclLogDeliveryUserPermission, ObsBucketAclLogDeliveryUserPermissionArgs

    AccessToAcls List<string>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets List<string>
    Specifies the access to bucket. Valid values are READ and WRITE.
    AccessToAcls []string
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets []string
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls string[]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets string[]
    Specifies the access to bucket. Valid values are READ and WRITE.
    access_to_acls Sequence[str]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    access_to_buckets Sequence[str]
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.

    ObsBucketAclOwnerPermission, ObsBucketAclOwnerPermissionArgs

    AccessToAcls List<string>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets List<string>
    Specifies the access to bucket. Valid values are READ and WRITE.
    AccessToAcls []string
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets []string
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls string[]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets string[]
    Specifies the access to bucket. Valid values are READ and WRITE.
    access_to_acls Sequence[str]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    access_to_buckets Sequence[str]
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.

    ObsBucketAclPublicPermission, ObsBucketAclPublicPermissionArgs

    AccessToAcls List<string>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets List<string>
    Specifies the access to bucket. Valid values are READ and WRITE.
    AccessToAcls []string
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    AccessToBuckets []string
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls string[]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets string[]
    Specifies the access to bucket. Valid values are READ and WRITE.
    access_to_acls Sequence[str]
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    access_to_buckets Sequence[str]
    Specifies the access to bucket. Valid values are READ and WRITE.
    accessToAcls List<String>
    Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
    accessToBuckets List<String>
    Specifies the access to bucket. Valid values are READ and WRITE.

    Import

    The obs bucket acl can be imported using the bucket, e.g.

    bash

    $ pulumi import opentelekomcloud:index/obsBucketAcl:ObsBucketAcl test <bucket-name>
    

    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