opentelekomcloud.ObsBucketObjectAcl
Explore with Pulumi AI
Up-to-date reference of API arguments for OBS bucket object you can get at documentation portal
Manages an OBS bucket object acl resource within OpenTelekomCloud.
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
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
configuration:
bucket:
type: dynamic
key:
type: dynamic
account1:
type: dynamic
account2:
type: dynamic
resources:
test:
type: opentelekomcloud:ObsBucketAcl
properties:
bucket: ${bucket}
key: ${key}
accountPermissions:
- accessToObject:
- READ
accessToAcls:
- READ_ACP
- WRITE_ACP
accountId: ${account1}
- accessToObject:
- 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)
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: opentelekomcloud: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 Opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource", new()
{
Bucket = "string",
Key = "string",
AccountPermissions = new[]
{
new Opentelekomcloud.Inputs.ObsBucketObjectAclAccountPermissionArgs
{
AccountId = "string",
AccessToAcls = new[]
{
"string",
},
AccessToObjects = new[]
{
"string",
},
},
},
ObsBucketObjectAclId = "string",
PublicPermission = new Opentelekomcloud.Inputs.ObsBucketObjectAclPublicPermissionArgs
{
AccessToAcls = new[]
{
"string",
},
AccessToObjects = new[]
{
"string",
},
},
});
example, err := opentelekomcloud.NewObsBucketObjectAcl(ctx, "obsBucketObjectAclResource", &opentelekomcloud.ObsBucketObjectAclArgs{
Bucket: pulumi.String("string"),
Key: pulumi.String("string"),
AccountPermissions: opentelekomcloud.ObsBucketObjectAclAccountPermissionArray{
&opentelekomcloud.ObsBucketObjectAclAccountPermissionArgs{
AccountId: pulumi.String("string"),
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToObjects: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ObsBucketObjectAclId: pulumi.String("string"),
PublicPermission: &opentelekomcloud.ObsBucketObjectAclPublicPermissionArgs{
AccessToAcls: pulumi.StringArray{
pulumi.String("string"),
},
AccessToObjects: pulumi.StringArray{
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())
.build());
obs_bucket_object_acl_resource = opentelekomcloud.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"],
})
const obsBucketObjectAclResource = new opentelekomcloud.ObsBucketObjectAcl("obsBucketObjectAclResource", {
bucket: "string",
key: "string",
accountPermissions: [{
accountId: "string",
accessToAcls: ["string"],
accessToObjects: ["string"],
}],
obsBucketObjectAclId: "string",
publicPermission: {
accessToAcls: ["string"],
accessToObjects: ["string"],
},
});
type: opentelekomcloud:ObsBucketObjectAcl
properties:
accountPermissions:
- accessToAcls:
- string
accessToObjects:
- string
accountId: string
bucket: string
key: string
obsBucketObjectAclId: string
publicPermission:
accessToAcls:
- string
accessToObjects:
- 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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- 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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- 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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- 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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- 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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- 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_struct structure is documented below.
The
permission_struct
block supports:- obs
Bucket StringObject Acl Id - The name of the bucket object key.
- public
Permission Property Map - Specifies the object public permission. The permission_struct structure is documented below.
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.
- Region string
- The region of the bucket.
- 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.
- Region string
- The region of the bucket.
- 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.
- region String
- The region of the bucket.
- 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.
- region string
- The region of the bucket.
- 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.
- region str
- The region of the bucket.
- 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.
- region String
- The region of the bucket.
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: opentelekomcloud: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_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- Region string
- The region of the bucket.
- Account
Permissions []ObsBucket Object Acl Account Permission Args Specifies the object account permissions. The account_permission_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- Region string
- The region of the bucket.
- account
Permissions List<ObsBucket Object Acl Account Permission> Specifies the object account permissions. The account_permission_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- region String
- The region of the bucket.
- account
Permissions ObsBucket Object Acl Account Permission[] Specifies the object account permissions. The account_permission_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- region string
- The region of the bucket.
- account_
permissions Sequence[ObsBucket Object Acl Account Permission Args] Specifies the object account permissions. The account_permission_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- region str
- The region of the bucket.
- account
Permissions List<Property Map> Specifies the object account permissions. The account_permission_struct structure is documented below.
The
permission_struct
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 permission_struct structure is documented below.
- region String
- The region of the bucket.
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 opentelekomcloud:index/obsBucketObjectAcl:ObsBucketObjectAcl test <bucket>/<key>
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.