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

flexibleengine.ObsBucketObjectAcl

Explore with Pulumi AI

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

    Manages an OBS bucket object acl resource within FlexibleEngine.

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const bucket = config.requireObject("bucket");
    const key = config.requireObject("key");
    const account1 = config.requireObject("account1");
    const account2 = config.requireObject("account2");
    const test = new flexibleengine.ObsBucketObjectAcl("test", {
        bucket: bucket,
        key: key,
        accountPermissions: [
            {
                accessToObjects: ["READ"],
                accessToAcls: [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                accountId: account1,
            },
            {
                accessToObjects: ["READ"],
                accessToAcls: ["READ_ACP"],
                accountId: account2,
            },
        ],
        publicPermission: {
            accessToAcls: [
                "READ_ACP",
                "WRITE_ACP",
            ],
        },
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    bucket = config.require_object("bucket")
    key = config.require_object("key")
    account1 = config.require_object("account1")
    account2 = config.require_object("account2")
    test = flexibleengine.ObsBucketObjectAcl("test",
        bucket=bucket,
        key=key,
        account_permissions=[
            {
                "access_to_objects": ["READ"],
                "access_to_acls": [
                    "READ_ACP",
                    "WRITE_ACP",
                ],
                "account_id": account1,
            },
            {
                "access_to_objects": ["READ"],
                "access_to_acls": ["READ_ACP"],
                "account_id": account2,
            },
        ],
        public_permission={
            "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")
    		key := cfg.RequireObject("key")
    		account1 := cfg.RequireObject("account1")
    		account2 := cfg.RequireObject("account2")
    		_, err := flexibleengine.NewObsBucketObjectAcl(ctx, "test", &flexibleengine.ObsBucketObjectAclArgs{
    			Bucket: pulumi.Any(bucket),
    			Key:    pulumi.Any(key),
    			AccountPermissions: flexibleengine.ObsBucketObjectAclAccountPermissionArray{
    				&flexibleengine.ObsBucketObjectAclAccountPermissionArgs{
    					AccessToObjects: pulumi.StringArray{
    						pulumi.String("READ"),
    					},
    					AccessToAcls: pulumi.StringArray{
    						pulumi.String("READ_ACP"),
    						pulumi.String("WRITE_ACP"),
    					},
    					AccountId: pulumi.Any(account1),
    				},
    				&flexibleengine.ObsBucketObjectAclAccountPermissionArgs{
    					AccessToObjects: pulumi.StringArray{
    						pulumi.String("READ"),
    					},
    					AccessToAcls: pulumi.StringArray{
    						pulumi.String("READ_ACP"),
    					},
    					AccountId: pulumi.Any(account2),
    				},
    			},
    			PublicPermission: &flexibleengine.ObsBucketObjectAclPublicPermissionArgs{
    				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 key = config.RequireObject<dynamic>("key");
        var account1 = config.RequireObject<dynamic>("account1");
        var account2 = config.RequireObject<dynamic>("account2");
        var test = new Flexibleengine.ObsBucketObjectAcl("test", new()
        {
            Bucket = bucket,
            Key = key,
            AccountPermissions = new[]
            {
                new Flexibleengine.Inputs.ObsBucketObjectAclAccountPermissionArgs
                {
                    AccessToObjects = new[]
                    {
                        "READ",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                        "WRITE_ACP",
                    },
                    AccountId = account1,
                },
                new Flexibleengine.Inputs.ObsBucketObjectAclAccountPermissionArgs
                {
                    AccessToObjects = new[]
                    {
                        "READ",
                    },
                    AccessToAcls = new[]
                    {
                        "READ_ACP",
                    },
                    AccountId = account2,
                },
            },
            PublicPermission = new Flexibleengine.Inputs.ObsBucketObjectAclPublicPermissionArgs
            {
                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.ObsBucketObjectAcl;
    import com.pulumi.flexibleengine.ObsBucketObjectAclArgs;
    import com.pulumi.flexibleengine.inputs.ObsBucketObjectAclAccountPermissionArgs;
    import com.pulumi.flexibleengine.inputs.ObsBucketObjectAclPublicPermissionArgs;
    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 key = config.get("key");
            final var account1 = config.get("account1");
            final var account2 = config.get("account2");
            var test = new ObsBucketObjectAcl("test", ObsBucketObjectAclArgs.builder()
                .bucket(bucket)
                .key(key)
                .accountPermissions(            
                    ObsBucketObjectAclAccountPermissionArgs.builder()
                        .accessToObjects("READ")
                        .accessToAcls(                    
                            "READ_ACP",
                            "WRITE_ACP")
                        .accountId(account1)
                        .build(),
                    ObsBucketObjectAclAccountPermissionArgs.builder()
                        .accessToObjects("READ")
                        .accessToAcls("READ_ACP")
                        .accountId(account2)
                        .build())
                .publicPermission(ObsBucketObjectAclPublicPermissionArgs.builder()
                    .accessToAcls(                
                        "READ_ACP",
                        "WRITE_ACP")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      bucket:
        type: dynamic
      key:
        type: dynamic
      account1:
        type: dynamic
      account2:
        type: dynamic
    resources:
      test:
        type: flexibleengine:ObsBucketObjectAcl
        properties:
          bucket: ${bucket}
          key: ${key}
          accountPermissions:
            - accessToObjects:
                - READ
              accessToAcls:
                - READ_ACP
                - WRITE_ACP
              accountId: ${account1}
            - accessToObjects:
                - 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,
                           region: Optional[str] = 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: flexibleengine: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 Flexibleengine.ObsBucketObjectAcl("obsBucketObjectAclResource", new()
    {
        Bucket = "string",
        Key = "string",
        AccountPermissions = new[]
        {
            new Flexibleengine.Inputs.ObsBucketObjectAclAccountPermissionArgs
            {
                AccountId = "string",
                AccessToAcls = new[]
                {
                    "string",
                },
                AccessToObjects = new[]
                {
                    "string",
                },
            },
        },
        ObsBucketObjectAclId = "string",
        PublicPermission = new Flexibleengine.Inputs.ObsBucketObjectAclPublicPermissionArgs
        {
            AccessToAcls = new[]
            {
                "string",
            },
            AccessToObjects = new[]
            {
                "string",
            },
        },
        Region = "string",
    });
    
    example, err := flexibleengine.NewObsBucketObjectAcl(ctx, "obsBucketObjectAclResource", &flexibleengine.ObsBucketObjectAclArgs{
    	Bucket: pulumi.String("string"),
    	Key:    pulumi.String("string"),
    	AccountPermissions: flexibleengine.ObsBucketObjectAclAccountPermissionArray{
    		&flexibleengine.ObsBucketObjectAclAccountPermissionArgs{
    			AccountId: pulumi.String("string"),
    			AccessToAcls: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			AccessToObjects: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	ObsBucketObjectAclId: pulumi.String("string"),
    	PublicPermission: &flexibleengine.ObsBucketObjectAclPublicPermissionArgs{
    		AccessToAcls: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AccessToObjects: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Region: 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())
        .region("string")
        .build());
    
    obs_bucket_object_acl_resource = flexibleengine.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"],
        },
        region="string")
    
    const obsBucketObjectAclResource = new flexibleengine.ObsBucketObjectAcl("obsBucketObjectAclResource", {
        bucket: "string",
        key: "string",
        accountPermissions: [{
            accountId: "string",
            accessToAcls: ["string"],
            accessToObjects: ["string"],
        }],
        obsBucketObjectAclId: "string",
        publicPermission: {
            accessToAcls: ["string"],
            accessToObjects: ["string"],
        },
        region: "string",
    });
    
    type: flexibleengine:ObsBucketObjectAcl
    properties:
        accountPermissions:
            - accessToAcls:
                - string
              accessToObjects:
                - string
              accountId: string
        bucket: string
        key: string
        obsBucketObjectAclId: string
        publicPermission:
            accessToAcls:
                - string
            accessToObjects:
                - string
        region: 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 structure is documented below.

    The public_permission block supports:

    ObsBucketObjectAclId string
    The name of the bucket object key.
    PublicPermission ObsBucketObjectAclPublicPermission
    Specifies the object public permission. The public_permission structure is documented below.
    Region string

    Specifies the region in which to create the 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 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 structure is documented below.

    The public_permission block supports:

    ObsBucketObjectAclId string
    The name of the bucket object key.
    PublicPermission ObsBucketObjectAclPublicPermissionArgs
    Specifies the object public permission. The public_permission structure is documented below.
    Region string

    Specifies the region in which to create the 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 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 structure is documented below.

    The public_permission block supports:

    obsBucketObjectAclId String
    The name of the bucket object key.
    publicPermission ObsBucketObjectAclPublicPermission
    Specifies the object public permission. The public_permission structure is documented below.
    region String

    Specifies the region in which to create the 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 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 structure is documented below.

    The public_permission block supports:

    obsBucketObjectAclId string
    The name of the bucket object key.
    publicPermission ObsBucketObjectAclPublicPermission
    Specifies the object public permission. The public_permission structure is documented below.
    region string

    Specifies the region in which to create the 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 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 structure is documented below.

    The public_permission block supports:

    obs_bucket_object_acl_id str
    The name of the bucket object key.
    public_permission ObsBucketObjectAclPublicPermissionArgs
    Specifies the object public permission. The public_permission structure is documented below.
    region str

    Specifies the region in which to create the 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 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 structure is documented below.

    The public_permission block supports:

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

    Specifies the region in which to create the 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 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.
    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.
    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.
    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.
    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.
    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.

    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: flexibleengine: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 structure is documented below.

    The public_permission 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 public_permission structure is documented below.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    AccountPermissions []ObsBucketObjectAclAccountPermissionArgs

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

    The public_permission 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 public_permission structure is documented below.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    accountPermissions List<ObsBucketObjectAclAccountPermission>

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

    The public_permission 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 public_permission structure is documented below.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    accountPermissions ObsBucketObjectAclAccountPermission[]

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

    The public_permission 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 public_permission structure is documented below.
    region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    account_permissions Sequence[ObsBucketObjectAclAccountPermissionArgs]

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

    The public_permission 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 public_permission structure is documented below.
    region str

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    accountPermissions List<Property Map>

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

    The public_permission 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 public_permission structure is documented below.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    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 flexibleengine:index/obsBucketObjectAcl:ObsBucketObjectAcl test <bucket>/<key>
    

    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