opentelekomcloud.ObsBucketAcl
Explore with Pulumi AI
Manages an OBS bucket acl resource within OpenTelekomCloud.
NOTE: When creating or updating the OBS bucket acl, the original bucket acl will be overwritten. When deleting the OBS bucket acl, the full permissions of the bucket owner will be set, and the other permissions will be removed.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const bucket = config.requireObject("bucket");
const account1 = config.requireObject("account1");
const account2 = config.requireObject("account2");
const test = new opentelekomcloud.ObsBucketAcl("test", {
bucket: bucket,
ownerPermission: {
accessToBuckets: [
"READ",
"WRITE",
],
accessToAcls: [
"READ_ACP",
"WRITE_ACP",
],
},
accountPermissions: [
{
accessToBuckets: [
"READ",
"WRITE",
],
accessToAcls: [
"READ_ACP",
"WRITE_ACP",
],
accountId: account1,
},
{
accessToBuckets: ["READ"],
accessToAcls: [
"READ_ACP",
"WRITE_ACP",
],
accountId: account2,
},
],
publicPermission: {
accessToBuckets: [
"READ",
"WRITE",
],
},
logDeliveryUserPermission: {
accessToBuckets: [
"READ",
"WRITE",
],
accessToAcls: [
"READ_ACP",
"WRITE_ACP",
],
},
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
bucket = config.require_object("bucket")
account1 = config.require_object("account1")
account2 = config.require_object("account2")
test = opentelekomcloud.ObsBucketAcl("test",
bucket=bucket,
owner_permission={
"access_to_buckets": [
"READ",
"WRITE",
],
"access_to_acls": [
"READ_ACP",
"WRITE_ACP",
],
},
account_permissions=[
{
"access_to_buckets": [
"READ",
"WRITE",
],
"access_to_acls": [
"READ_ACP",
"WRITE_ACP",
],
"account_id": account1,
},
{
"access_to_buckets": ["READ"],
"access_to_acls": [
"READ_ACP",
"WRITE_ACP",
],
"account_id": account2,
},
],
public_permission={
"access_to_buckets": [
"READ",
"WRITE",
],
},
log_delivery_user_permission={
"access_to_buckets": [
"READ",
"WRITE",
],
"access_to_acls": [
"READ_ACP",
"WRITE_ACP",
],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
bucket := cfg.RequireObject("bucket")
account1 := cfg.RequireObject("account1")
account2 := cfg.RequireObject("account2")
_, err := opentelekomcloud.NewObsBucketAcl(ctx, "test", &opentelekomcloud.ObsBucketAclArgs{
Bucket: pulumi.Any(bucket),
OwnerPermission: &opentelekomcloud.ObsBucketAclOwnerPermissionArgs{
AccessToBuckets: pulumi.StringArray{
pulumi.String("READ"),
pulumi.String("WRITE"),
},
AccessToAcls: pulumi.StringArray{
pulumi.String("READ_ACP"),
pulumi.String("WRITE_ACP"),
},
},
AccountPermissions: opentelekomcloud.ObsBucketAclAccountPermissionArray{
&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
AccessToBuckets: pulumi.StringArray{
pulumi.String("READ"),
pulumi.String("WRITE"),
},
AccessToAcls: pulumi.StringArray{
pulumi.String("READ_ACP"),
pulumi.String("WRITE_ACP"),
},
AccountId: pulumi.Any(account1),
},
&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
AccessToBuckets: pulumi.StringArray{
pulumi.String("READ"),
},
AccessToAcls: pulumi.StringArray{
pulumi.String("READ_ACP"),
pulumi.String("WRITE_ACP"),
},
AccountId: pulumi.Any(account2),
},
},
PublicPermission: &opentelekomcloud.ObsBucketAclPublicPermissionArgs{
AccessToBuckets: pulumi.StringArray{
pulumi.String("READ"),
pulumi.String("WRITE"),
},
},
LogDeliveryUserPermission: &opentelekomcloud.ObsBucketAclLogDeliveryUserPermissionArgs{
AccessToBuckets: pulumi.StringArray{
pulumi.String("READ"),
pulumi.String("WRITE"),
},
AccessToAcls: pulumi.StringArray{
pulumi.String("READ_ACP"),
pulumi.String("WRITE_ACP"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var bucket = config.RequireObject<dynamic>("bucket");
var account1 = config.RequireObject<dynamic>("account1");
var account2 = config.RequireObject<dynamic>("account2");
var test = new Opentelekomcloud.ObsBucketAcl("test", new()
{
Bucket = bucket,
OwnerPermission = new Opentelekomcloud.Inputs.ObsBucketAclOwnerPermissionArgs
{
AccessToBuckets = new[]
{
"READ",
"WRITE",
},
AccessToAcls = new[]
{
"READ_ACP",
"WRITE_ACP",
},
},
AccountPermissions = new[]
{
new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
{
AccessToBuckets = new[]
{
"READ",
"WRITE",
},
AccessToAcls = new[]
{
"READ_ACP",
"WRITE_ACP",
},
AccountId = account1,
},
new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
{
AccessToBuckets = new[]
{
"READ",
},
AccessToAcls = new[]
{
"READ_ACP",
"WRITE_ACP",
},
AccountId = account2,
},
},
PublicPermission = new Opentelekomcloud.Inputs.ObsBucketAclPublicPermissionArgs
{
AccessToBuckets = new[]
{
"READ",
"WRITE",
},
},
LogDeliveryUserPermission = new Opentelekomcloud.Inputs.ObsBucketAclLogDeliveryUserPermissionArgs
{
AccessToBuckets = new[]
{
"READ",
"WRITE",
},
AccessToAcls = new[]
{
"READ_ACP",
"WRITE_ACP",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.ObsBucketAcl;
import com.pulumi.opentelekomcloud.ObsBucketAclArgs;
import com.pulumi.opentelekomcloud.inputs.ObsBucketAclOwnerPermissionArgs;
import com.pulumi.opentelekomcloud.inputs.ObsBucketAclAccountPermissionArgs;
import com.pulumi.opentelekomcloud.inputs.ObsBucketAclPublicPermissionArgs;
import com.pulumi.opentelekomcloud.inputs.ObsBucketAclLogDeliveryUserPermissionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var bucket = config.get("bucket");
final var account1 = config.get("account1");
final var account2 = config.get("account2");
var test = new ObsBucketAcl("test", ObsBucketAclArgs.builder()
.bucket(bucket)
.ownerPermission(ObsBucketAclOwnerPermissionArgs.builder()
.accessToBuckets(
"READ",
"WRITE")
.accessToAcls(
"READ_ACP",
"WRITE_ACP")
.build())
.accountPermissions(
ObsBucketAclAccountPermissionArgs.builder()
.accessToBuckets(
"READ",
"WRITE")
.accessToAcls(
"READ_ACP",
"WRITE_ACP")
.accountId(account1)
.build(),
ObsBucketAclAccountPermissionArgs.builder()
.accessToBuckets("READ")
.accessToAcls(
"READ_ACP",
"WRITE_ACP")
.accountId(account2)
.build())
.publicPermission(ObsBucketAclPublicPermissionArgs.builder()
.accessToBuckets(
"READ",
"WRITE")
.build())
.logDeliveryUserPermission(ObsBucketAclLogDeliveryUserPermissionArgs.builder()
.accessToBuckets(
"READ",
"WRITE")
.accessToAcls(
"READ_ACP",
"WRITE_ACP")
.build())
.build());
}
}
configuration:
bucket:
type: dynamic
account1:
type: dynamic
account2:
type: dynamic
resources:
test:
type: opentelekomcloud:ObsBucketAcl
properties:
bucket: ${bucket}
ownerPermission:
accessToBuckets:
- READ
- WRITE
accessToAcls:
- READ_ACP
- WRITE_ACP
accountPermissions:
- accessToBuckets:
- READ
- WRITE
accessToAcls:
- READ_ACP
- WRITE_ACP
accountId: ${account1}
- accessToBuckets:
- READ
accessToAcls:
- READ_ACP
- WRITE_ACP
accountId: ${account2}
publicPermission:
accessToBuckets:
- READ
- WRITE
logDeliveryUserPermission:
accessToBuckets:
- READ
- WRITE
accessToAcls:
- READ_ACP
- WRITE_ACP
Create ObsBucketAcl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObsBucketAcl(name: string, args: ObsBucketAclArgs, opts?: CustomResourceOptions);
@overload
def ObsBucketAcl(resource_name: str,
args: ObsBucketAclArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObsBucketAcl(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket: Optional[str] = None,
account_permissions: Optional[Sequence[ObsBucketAclAccountPermissionArgs]] = None,
log_delivery_user_permission: Optional[ObsBucketAclLogDeliveryUserPermissionArgs] = None,
obs_bucket_acl_id: Optional[str] = None,
owner_permission: Optional[ObsBucketAclOwnerPermissionArgs] = None,
public_permission: Optional[ObsBucketAclPublicPermissionArgs] = None)
func NewObsBucketAcl(ctx *Context, name string, args ObsBucketAclArgs, opts ...ResourceOption) (*ObsBucketAcl, error)
public ObsBucketAcl(string name, ObsBucketAclArgs args, CustomResourceOptions? opts = null)
public ObsBucketAcl(String name, ObsBucketAclArgs args)
public ObsBucketAcl(String name, ObsBucketAclArgs args, CustomResourceOptions options)
type: opentelekomcloud:ObsBucketAcl
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ObsBucketAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ObsBucketAclArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ObsBucketAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObsBucketAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObsBucketAclArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var obsBucketAclResource = new Opentelekomcloud.ObsBucketAcl("obsBucketAclResource", new()
{
Bucket = "string",
AccountPermissions = new[]
{
new Opentelekomcloud.Inputs.ObsBucketAclAccountPermissionArgs
{
AccountId = "string",
AccessToAcls = new[]
{
"string",
},
AccessToBuckets = new[]
{
"string",
},
},
},
LogDeliveryUserPermission = new Opentelekomcloud.Inputs.ObsBucketAclLogDeliveryUserPermissionArgs
{
AccessToAcls = new[]
{
"string",
},
AccessToBuckets = new[]
{
"string",
},
},
ObsBucketAclId = "string",
OwnerPermission = new Opentelekomcloud.Inputs.ObsBucketAclOwnerPermissionArgs
{
AccessToAcls = new[]
{
"string",
},
AccessToBuckets = new[]
{
"string",
},
},
PublicPermission = new Opentelekomcloud.Inputs.ObsBucketAclPublicPermissionArgs
{
AccessToAcls = new[]
{
"string",
},
AccessToBuckets = new[]
{
"string",
},
},
});
example, err := opentelekomcloud.NewObsBucketAcl(ctx, "obsBucketAclResource", &opentelekomcloud.ObsBucketAclArgs{
Bucket: pulumi.String("string"),
AccountPermissions: opentelekomcloud.ObsBucketAclAccountPermissionArray{
&opentelekomcloud.ObsBucketAclAccountPermissionArgs{
AccountId: pulumi.String("string"),
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToBuckets: pulumi.StringArray{
pulumi.String("string"),
},
},
},
LogDeliveryUserPermission: &opentelekomcloud.ObsBucketAclLogDeliveryUserPermissionArgs{
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToBuckets: pulumi.StringArray{
pulumi.String("string"),
},
},
ObsBucketAclId: pulumi.String("string"),
OwnerPermission: &opentelekomcloud.ObsBucketAclOwnerPermissionArgs{
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToBuckets: pulumi.StringArray{
pulumi.String("string"),
},
},
PublicPermission: &opentelekomcloud.ObsBucketAclPublicPermissionArgs{
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToBuckets: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var obsBucketAclResource = new ObsBucketAcl("obsBucketAclResource", ObsBucketAclArgs.builder()
.bucket("string")
.accountPermissions(ObsBucketAclAccountPermissionArgs.builder()
.accountId("string")
.accessToAcls("string")
.accessToBuckets("string")
.build())
.logDeliveryUserPermission(ObsBucketAclLogDeliveryUserPermissionArgs.builder()
.accessToAcls("string")
.accessToBuckets("string")
.build())
.obsBucketAclId("string")
.ownerPermission(ObsBucketAclOwnerPermissionArgs.builder()
.accessToAcls("string")
.accessToBuckets("string")
.build())
.publicPermission(ObsBucketAclPublicPermissionArgs.builder()
.accessToAcls("string")
.accessToBuckets("string")
.build())
.build());
obs_bucket_acl_resource = opentelekomcloud.ObsBucketAcl("obsBucketAclResource",
bucket="string",
account_permissions=[{
"account_id": "string",
"access_to_acls": ["string"],
"access_to_buckets": ["string"],
}],
log_delivery_user_permission={
"access_to_acls": ["string"],
"access_to_buckets": ["string"],
},
obs_bucket_acl_id="string",
owner_permission={
"access_to_acls": ["string"],
"access_to_buckets": ["string"],
},
public_permission={
"access_to_acls": ["string"],
"access_to_buckets": ["string"],
})
const obsBucketAclResource = new opentelekomcloud.ObsBucketAcl("obsBucketAclResource", {
bucket: "string",
accountPermissions: [{
accountId: "string",
accessToAcls: ["string"],
accessToBuckets: ["string"],
}],
logDeliveryUserPermission: {
accessToAcls: ["string"],
accessToBuckets: ["string"],
},
obsBucketAclId: "string",
ownerPermission: {
accessToAcls: ["string"],
accessToBuckets: ["string"],
},
publicPermission: {
accessToAcls: ["string"],
accessToBuckets: ["string"],
},
});
type: opentelekomcloud:ObsBucketAcl
properties:
accountPermissions:
- accessToAcls:
- string
accessToBuckets:
- string
accountId: string
bucket: string
logDeliveryUserPermission:
accessToAcls:
- string
accessToBuckets:
- string
obsBucketAclId: string
ownerPermission:
accessToAcls:
- string
accessToBuckets:
- string
publicPermission:
accessToAcls:
- string
accessToBuckets:
- string
ObsBucketAcl Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ObsBucketAcl resource accepts the following input properties:
- Bucket string
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- Account
Permissions List<ObsBucket Acl Account Permission> Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- Log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- Obs
Bucket stringAcl Id - The name of the bucket.
- Owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- Bucket string
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- Account
Permissions []ObsBucket Acl Account Permission Args Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- Log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission Args - Specifies the log delivery user permission. The permission_struct structure is documented below.
- Obs
Bucket stringAcl Id - The name of the bucket.
- Owner
Permission ObsBucket Acl Owner Permission Args - 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 ObsBucket Acl Public Permission Args - Specifies the public permission. The permission_struct structure is documented below.
- bucket String
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- account
Permissions List<ObsBucket Acl Account Permission> Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket StringAcl Id - The name of the bucket.
- owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- bucket string
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- account
Permissions ObsBucket Acl Account Permission[] Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket stringAcl Id - The name of the bucket.
- owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- bucket str
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- account_
permissions Sequence[ObsBucket Acl Account Permission Args] Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- log_
delivery_ Obsuser_ permission Bucket Acl Log Delivery User Permission Args - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs_
bucket_ stracl_ id - The name of the bucket.
- owner_
permission ObsBucket Acl Owner Permission Args - 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 ObsBucket Acl Public Permission Args - Specifies the public permission. The permission_struct structure is documented below.
- bucket String
Specifies the name of the bucket to which to set the acl.
Changing this parameter will create a new resource.
- account
Permissions List<Property Map> Specifies the account permissions. The account_permission_struct structure is documented below.
The
permission_struct
block supports:- log
Delivery Property MapUser Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket StringAcl Id - The name of the bucket.
- owner
Permission 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.
- public
Permission Property Map - Specifies the public permission. The permission_struct structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObsBucketAcl resource produces the following output properties:
Look up Existing ObsBucketAcl Resource
Get an existing ObsBucketAcl resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ObsBucketAclState, opts?: CustomResourceOptions): ObsBucketAcl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_permissions: Optional[Sequence[ObsBucketAclAccountPermissionArgs]] = None,
bucket: Optional[str] = None,
log_delivery_user_permission: Optional[ObsBucketAclLogDeliveryUserPermissionArgs] = None,
obs_bucket_acl_id: Optional[str] = None,
owner_permission: Optional[ObsBucketAclOwnerPermissionArgs] = None,
public_permission: Optional[ObsBucketAclPublicPermissionArgs] = None,
region: Optional[str] = None) -> ObsBucketAcl
func GetObsBucketAcl(ctx *Context, name string, id IDInput, state *ObsBucketAclState, opts ...ResourceOption) (*ObsBucketAcl, error)
public static ObsBucketAcl Get(string name, Input<string> id, ObsBucketAclState? state, CustomResourceOptions? opts = null)
public static ObsBucketAcl get(String name, Output<String> id, ObsBucketAclState state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:ObsBucketAcl get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Permissions List<ObsBucket Acl Account Permission> 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.
- Log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- Obs
Bucket stringAcl Id - The name of the bucket.
- Owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- Region string
- The region in which resource is created.
- Account
Permissions []ObsBucket Acl Account Permission Args 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.
- Log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission Args - Specifies the log delivery user permission. The permission_struct structure is documented below.
- Obs
Bucket stringAcl Id - The name of the bucket.
- Owner
Permission ObsBucket Acl Owner Permission Args - 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 ObsBucket Acl Public Permission Args - Specifies the public permission. The permission_struct structure is documented below.
- Region string
- The region in which resource is created.
- account
Permissions List<ObsBucket Acl Account Permission> 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.
- log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket StringAcl Id - The name of the bucket.
- owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- region String
- The region in which resource is created.
- account
Permissions ObsBucket Acl Account Permission[] 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.
- log
Delivery ObsUser Permission Bucket Acl Log Delivery User Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket stringAcl Id - The name of the bucket.
- owner
Permission ObsBucket Acl Owner Permission - 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 ObsBucket Acl Public Permission - Specifies the public permission. The permission_struct structure is documented below.
- region string
- The region in which resource is created.
- account_
permissions Sequence[ObsBucket Acl Account Permission Args] 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_ Obsuser_ permission Bucket Acl Log Delivery User Permission Args - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs_
bucket_ stracl_ id - The name of the bucket.
- owner_
permission ObsBucket Acl Owner Permission Args - 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 ObsBucket Acl Public Permission Args - Specifies the public permission. The permission_struct structure is documented below.
- region str
- The region in which resource is created.
- account
Permissions 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.
- log
Delivery Property MapUser Permission - Specifies the log delivery user permission. The permission_struct structure is documented below.
- obs
Bucket StringAcl Id - The name of the bucket.
- owner
Permission 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.
- public
Permission Property Map - Specifies the public permission. The permission_struct structure is documented below.
- region String
- The region in which resource is created.
Supporting Types
ObsBucketAclAccountPermission, ObsBucketAclAccountPermissionArgs
- Account
Id string - Specifies the account id to authorize. The account id cannot be the bucket 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>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- Account
Id string - Specifies the account id to authorize. The account id cannot be the bucket owner, and must be unique.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringBuckets - Specifies the access to bucket. Valid values are READ and WRITE.
- account
Id String - Specifies the account id to authorize. The account id cannot be the bucket 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>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- account
Id string - Specifies the account id to authorize. The account id cannot be the bucket 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[]Buckets - 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_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- account
Id String - Specifies the account id to authorize. The account id cannot be the bucket 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>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
ObsBucketAclLogDeliveryUserPermission, ObsBucketAclLogDeliveryUserPermissionArgs
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringBuckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access_
to_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
ObsBucketAclOwnerPermission, ObsBucketAclOwnerPermissionArgs
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringBuckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access_
to_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
ObsBucketAclPublicPermission, ObsBucketAclPublicPermissionArgs
- Access
To List<string>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To List<string>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- Access
To []stringAcls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- Access
To []stringBuckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To string[]Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To string[]Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access_
to_ Sequence[str]acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access_
to_ Sequence[str]buckets - Specifies the access to bucket. Valid values are READ and WRITE.
- access
To List<String>Acls - Specifies the access to acl. Valid values are READ_ACP and WRITE_ACP.
- access
To List<String>Buckets - Specifies the access to bucket. Valid values are READ and WRITE.
Import
The obs bucket acl can be imported using the bucket
, e.g.
bash
$ pulumi import opentelekomcloud:index/obsBucketAcl:ObsBucketAcl test <bucket-name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.