1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. ObsBucketAcl
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.ObsBucketAcl

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages an OBS bucket acl resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const bucket = config.requireObject("bucket");
    const account1 = config.requireObject("account1");
    const account2 = config.requireObject("account2");
    const test = new flexibleengine.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_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    bucket = config.require_object("bucket")
    account1 = config.require_object("account1")
    account2 = config.require_object("account2")
    test = flexibleengine.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/flexibleengine/flexibleengine"
    	"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 := flexibleengine.NewObsBucketAcl(ctx, "test", &flexibleengine.ObsBucketAclArgs{
    			Bucket: pulumi.Any(bucket),
    			OwnerPermission: &flexibleengine.ObsBucketAclOwnerPermissionArgs{
    				AccessToBuckets: pulumi.StringArray{
    					pulumi.String("READ"),
    					pulumi.String("WRITE"),
    				},
    				AccessToAcls: pulumi.StringArray{
    					pulumi.String("READ_ACP"),
    					pulumi.String("WRITE_ACP"),
    				},
    			},
    			AccountPermissions: flexibleengine.ObsBucketAclAccountPermissionArray{
    				&flexibleengine.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),
    				},
    				&flexibleengine.ObsBucketAclAccountPermissionArgs{
    					AccessToBuckets: pulumi.StringArray{
    						pulumi.String("READ"),
    					},
    					AccessToAcls: pulumi.StringArray{
    						pulumi.String("READ_ACP"),
    						pulumi.String("WRITE_ACP"),
    					},
    					AccountId: pulumi.Any(account2),
    				},
    			},
    			PublicPermission: &flexibleengine.ObsBucketAclPublicPermissionArgs{
    				AccessToBuckets: pulumi.StringArray{
    					pulumi.String("READ"),
    					pulumi.String("WRITE"),
    				},
    			},
    			LogDeliveryUserPermission: &flexibleengine.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 Flexibleengine = Pulumi.Flexibleengine;
    
    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 Flexibleengine.ObsBucketAcl("test", new()
        {
            Bucket = bucket,
            OwnerPermission = new Flexibleengine.Inputs.ObsBucketAclOwnerPermissionArgs
            {
                AccessToBuckets = new[]
                {
                    "READ",
                    "WRITE",
                },
                AccessToAcls = new[]
                {
                    "READ_ACP",
                    "WRITE_ACP",
                },
            },
            AccountPermissions = new[]
            {
                new Flexibleengine.Inputs.ObsBucketAclAccountPermissionArgs
                {
                    AccessToBuckets = new[]
                    {
                        "READ",
                        "WRITE",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                        "WRITE_ACP",
                    },
                    AccountId = account1,
                },
                new Flexibleengine.Inputs.ObsBucketAclAccountPermissionArgs
                {
                    AccessToBuckets = new[]
                    {
                        "READ",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                        "WRITE_ACP",
                    },
                    AccountId = account2,
                },
            },
            PublicPermission = new Flexibleengine.Inputs.ObsBucketAclPublicPermissionArgs
            {
                AccessToBuckets = new[]
                {
                    "READ",
                    "WRITE",
                },
            },
            LogDeliveryUserPermission = new Flexibleengine.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.flexibleengine.ObsBucketAcl;
    import com.pulumi.flexibleengine.ObsBucketAclArgs;
    import com.pulumi.flexibleengine.inputs.ObsBucketAclOwnerPermissionArgs;
    import com.pulumi.flexibleengine.inputs.ObsBucketAclAccountPermissionArgs;
    import com.pulumi.flexibleengine.inputs.ObsBucketAclPublicPermissionArgs;
    import com.pulumi.flexibleengine.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: flexibleengine: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,
                     region: Optional[str] = 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: flexibleengine: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 Flexibleengine.ObsBucketAcl("obsBucketAclResource", new()
    {
        Bucket = "string",
        AccountPermissions = new[]
        {
            new Flexibleengine.Inputs.ObsBucketAclAccountPermissionArgs
            {
                AccountId = "string",
                AccessToAcls = new[]
                {
                    "string",
                },
                AccessToBuckets = new[]
                {
                    "string",
                },
            },
        },
        LogDeliveryUserPermission = new Flexibleengine.Inputs.ObsBucketAclLogDeliveryUserPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
        ObsBucketAclId = "string",
        OwnerPermission = new Flexibleengine.Inputs.ObsBucketAclOwnerPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
        PublicPermission = new Flexibleengine.Inputs.ObsBucketAclPublicPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToBuckets = new[]
            {
                "string",
            },
        },
        Region = "string",
    });
    
    example, err := flexibleengine.NewObsBucketAcl(ctx, "obsBucketAclResource", &flexibleengine.ObsBucketAclArgs{
    	Bucket: pulumi.String("string"),
    	AccountPermissions: flexibleengine.ObsBucketAclAccountPermissionArray{
    		&flexibleengine.ObsBucketAclAccountPermissionArgs{
    			AccountId: pulumi.String("string"),
    			AccessToAcls: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AccessToBuckets: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	LogDeliveryUserPermission: &flexibleengine.ObsBucketAclLogDeliveryUserPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ObsBucketAclId: pulumi.String("string"),
    	OwnerPermission: &flexibleengine.ObsBucketAclOwnerPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	PublicPermission: &flexibleengine.ObsBucketAclPublicPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToBuckets: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Region: 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())
        .region("string")
        .build());
    
    obs_bucket_acl_resource = flexibleengine.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"],
        },
        region="string")
    
    const obsBucketAclResource = new flexibleengine.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"],
        },
        region: "string",
    });
    
    type: flexibleengine: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
        region: 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.
    Region string
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    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.
    Region string
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    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.
    region String
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    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.
    region string
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    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.
    region str
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
    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.
    region String
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    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: flexibleengine: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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. 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:

    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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. 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:

    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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. 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:

    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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. 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:

    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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. 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:

    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
    Specifies the region in which to create the bucket acl resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

    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 flexibleengine:index/obsBucketAcl:ObsBucketAcl test <bucket-name>
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud