flexibleengine.ObsBucketObjectAcl
Explore with Pulumi AI
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.
- Account
Permissions List<ObsBucket Object Acl Account Permission> Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- Obs
Bucket stringObject Acl Id - The name of the bucket object key.
- Public
Permission ObsBucket Object Acl Public Permission - 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.
- Account
Permissions []ObsBucket Object Acl Account Permission Args Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- Obs
Bucket stringObject Acl Id - The name of the bucket object key.
- Public
Permission ObsBucket Object Acl Public Permission Args - 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.
- account
Permissions List<ObsBucket Object Acl Account Permission> Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- obs
Bucket StringObject Acl Id - The name of the bucket object key.
- public
Permission ObsBucket Object Acl Public Permission - 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.
- account
Permissions ObsBucket Object Acl Account Permission[] Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- obs
Bucket stringObject Acl Id - The name of the bucket object key.
- public
Permission ObsBucket Object Acl Public Permission - 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[ObsBucket Object Acl Account Permission Args] Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- obs_
bucket_ strobject_ acl_ id - The name of the bucket object key.
- public_
permission ObsBucket Object Acl Public Permission Args - 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.
- account
Permissions List<Property Map> Specifies the object account permissions. The account_permission structure is documented below.
The
public_permission
block supports:- obs
Bucket StringObject Acl Id - The name of the bucket object key.
- public
Permission 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.
- Owner
Permissions List<ObsBucket Object Acl Owner Permission> - The object owner permission information. The owner_permission_struct structure is documented below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Permissions []ObsBucket Object Acl Owner Permission - The object owner permission information. The owner_permission_struct structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Permissions List<ObsBucket Object Acl Owner Permission> - The object owner permission information. The owner_permission_struct structure is documented below.
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Permissions ObsBucket Object Acl Owner Permission[] - 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[ObsBucket Object Acl Owner Permission] - The object owner permission information. The owner_permission_struct structure is documented below.
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Permissions 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.
- Account
Permissions List<ObsBucket Object Acl Account Permission> 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.
- Obs
Bucket stringObject Acl Id - The name of the bucket object key.
- Owner
Permissions List<ObsBucket Object Acl Owner Permission> - The object owner permission information. The owner_permission_struct structure is documented below.
- Public
Permission ObsBucket Object Acl Public Permission - 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 []ObsBucket Object Acl Account Permission Args 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.
- Obs
Bucket stringObject Acl Id - The name of the bucket object key.
- Owner
Permissions []ObsBucket Object Acl Owner Permission Args - The object owner permission information. The owner_permission_struct structure is documented below.
- Public
Permission ObsBucket Object Acl Public Permission Args - 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 List<ObsBucket Object Acl Account Permission> 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.
- obs
Bucket StringObject Acl Id - The name of the bucket object key.
- owner
Permissions List<ObsBucket Object Acl Owner Permission> - The object owner permission information. The owner_permission_struct structure is documented below.
- public
Permission ObsBucket Object Acl Public Permission - 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 ObsBucket Object Acl Account Permission[] 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.
- obs
Bucket stringObject Acl Id - The name of the bucket object key.
- owner
Permissions ObsBucket Object Acl Owner Permission[] - The object owner permission information. The owner_permission_struct structure is documented below.
- public
Permission ObsBucket Object Acl Public Permission - 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[ObsBucket Object Acl Account Permission Args] 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_ strobject_ acl_ id - The name of the bucket object key.
- owner_
permissions Sequence[ObsBucket Object Acl Owner Permission Args] - The object owner permission information. The owner_permission_struct structure is documented below.
- public_
permission ObsBucket Object Acl Public Permission Args - 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.
- account
Permissions 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.
- obs
Bucket StringObject Acl Id - The name of the bucket object key.
- owner
Permissions List<Property Map> - The object owner permission information. The owner_permission_struct structure is documented below.
- public
Permission 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
- Account
Id string - Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Objects - Specifies the access to object. Only READ supported.
- Account
Id string - Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringObjects - Specifies the access to object. Only READ supported.
- account
Id String - Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - Specifies the access to object. Only READ supported.
- account
Id string - Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Objects - 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_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]objects - Specifies the access to object. Only READ supported.
- account
Id String - Specifies the account id to authorize. The account id cannot be the object owner, and must be unique.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - Specifies the access to object. Only READ supported.
ObsBucketObjectAclOwnerPermission, ObsBucketObjectAclOwnerPermissionArgs
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Objects - Specifies the access to object. Only READ supported.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringObjects - Specifies the access to object. Only READ supported.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - Specifies the access to object. Only READ supported.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Objects - Specifies the access to object. Only READ supported.
- access_
to_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]objects - Specifies the access to object. Only READ supported.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - Specifies the access to object. Only READ supported.
ObsBucketObjectAclPublicPermission, ObsBucketObjectAclPublicPermissionArgs
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Objects - Specifies the access to object. Only READ supported.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringObjects - Specifies the access to object. Only READ supported.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - Specifies the access to object. Only READ supported.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Objects - Specifies the access to object. Only READ supported.
- access_
to_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]objects - Specifies the access to object. Only READ supported.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Objects - 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.