tencentcloud.OrganizationOrgShareUnitResource
Explore with Pulumi AI
Provides a resource to create a organization organization_org_share_unit_resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const organizationOrgShareUnitResource = new tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", {
area: "ap-guangzhou",
productResourceId: "xxxxxx",
type: "secret",
unitId: "xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
organization_org_share_unit_resource = tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource",
area="ap-guangzhou",
product_resource_id="xxxxxx",
type="secret",
unit_id="xxxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewOrganizationOrgShareUnitResource(ctx, "organizationOrgShareUnitResource", &tencentcloud.OrganizationOrgShareUnitResourceArgs{
Area: pulumi.String("ap-guangzhou"),
ProductResourceId: pulumi.String("xxxxxx"),
Type: pulumi.String("secret"),
UnitId: pulumi.String("xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var organizationOrgShareUnitResource = new Tencentcloud.OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", new()
{
Area = "ap-guangzhou",
ProductResourceId = "xxxxxx",
Type = "secret",
UnitId = "xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.OrganizationOrgShareUnitResource;
import com.pulumi.tencentcloud.OrganizationOrgShareUnitResourceArgs;
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) {
var organizationOrgShareUnitResource = new OrganizationOrgShareUnitResource("organizationOrgShareUnitResource", OrganizationOrgShareUnitResourceArgs.builder()
.area("ap-guangzhou")
.productResourceId("xxxxxx")
.type("secret")
.unitId("xxxxxx")
.build());
}
}
resources:
organizationOrgShareUnitResource:
type: tencentcloud:OrganizationOrgShareUnitResource
properties:
area: ap-guangzhou
productResourceId: xxxxxx
type: secret
unitId: xxxxxx
Create OrganizationOrgShareUnitResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationOrgShareUnitResource(name: string, args: OrganizationOrgShareUnitResourceArgs, opts?: CustomResourceOptions);
@overload
def OrganizationOrgShareUnitResource(resource_name: str,
args: OrganizationOrgShareUnitResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationOrgShareUnitResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
product_resource_id: Optional[str] = None,
type: Optional[str] = None,
unit_id: Optional[str] = None,
organization_org_share_unit_resource_id: Optional[str] = None)
func NewOrganizationOrgShareUnitResource(ctx *Context, name string, args OrganizationOrgShareUnitResourceArgs, opts ...ResourceOption) (*OrganizationOrgShareUnitResource, error)
public OrganizationOrgShareUnitResource(string name, OrganizationOrgShareUnitResourceArgs args, CustomResourceOptions? opts = null)
public OrganizationOrgShareUnitResource(String name, OrganizationOrgShareUnitResourceArgs args)
public OrganizationOrgShareUnitResource(String name, OrganizationOrgShareUnitResourceArgs args, CustomResourceOptions options)
type: tencentcloud:OrganizationOrgShareUnitResource
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 OrganizationOrgShareUnitResourceArgs
- 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 OrganizationOrgShareUnitResourceArgs
- 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 OrganizationOrgShareUnitResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationOrgShareUnitResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationOrgShareUnitResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OrganizationOrgShareUnitResource 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 OrganizationOrgShareUnitResource resource accepts the following input properties:
- Area string
- Shared unit area.
- Product
Resource stringId - Product Resource ID.
- Type string
- Shared resource type.
- Unit
Id string - Shared unit ID.
- string
- ID of the resource.
- Area string
- Shared unit area.
- Product
Resource stringId - Product Resource ID.
- Type string
- Shared resource type.
- Unit
Id string - Shared unit ID.
- string
- ID of the resource.
- area String
- Shared unit area.
- product
Resource StringId - Product Resource ID.
- type String
- Shared resource type.
- unit
Id String - Shared unit ID.
- String
- ID of the resource.
- area string
- Shared unit area.
- product
Resource stringId - Product Resource ID.
- type string
- Shared resource type.
- unit
Id string - Shared unit ID.
- string
- ID of the resource.
- area str
- Shared unit area.
- product_
resource_ strid - Product Resource ID.
- type str
- Shared resource type.
- unit_
id str - Shared unit ID.
- str
- ID of the resource.
- area String
- Shared unit area.
- product
Resource StringId - Product Resource ID.
- type String
- Shared resource type.
- unit
Id String - Shared unit ID.
- String
- ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationOrgShareUnitResource resource produces the following output properties:
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Shared resource ID.
- double
- Sharing administrator OwnerUin.
- double
- Number of shared unit members.
- double
- Number of shared unit members in use.
- Create
Time string - Create time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - Shared resource ID.
- float64
- Sharing administrator OwnerUin.
- float64
- Number of shared unit members.
- float64
- Number of shared unit members in use.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Shared resource ID.
- Double
- Sharing administrator OwnerUin.
- Double
- Number of shared unit members.
- Double
- Number of shared unit members in use.
- create
Time string - Create time.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - Shared resource ID.
- number
- Sharing administrator OwnerUin.
- number
- Number of shared unit members.
- number
- Number of shared unit members in use.
- create_
time str - Create time.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - Shared resource ID.
- float
- Sharing administrator OwnerUin.
- float
- Number of shared unit members.
- float
- Number of shared unit members in use.
- create
Time String - Create time.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - Shared resource ID.
- Number
- Sharing administrator OwnerUin.
- Number
- Number of shared unit members.
- Number
- Number of shared unit members in use.
Look up Existing OrganizationOrgShareUnitResource Resource
Get an existing OrganizationOrgShareUnitResource 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?: OrganizationOrgShareUnitResourceState, opts?: CustomResourceOptions): OrganizationOrgShareUnitResource
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
create_time: Optional[str] = None,
organization_org_share_unit_resource_id: Optional[str] = None,
product_resource_id: Optional[str] = None,
resource_id: Optional[str] = None,
share_manager_uin: Optional[float] = None,
shared_member_num: Optional[float] = None,
shared_member_use_num: Optional[float] = None,
type: Optional[str] = None,
unit_id: Optional[str] = None) -> OrganizationOrgShareUnitResource
func GetOrganizationOrgShareUnitResource(ctx *Context, name string, id IDInput, state *OrganizationOrgShareUnitResourceState, opts ...ResourceOption) (*OrganizationOrgShareUnitResource, error)
public static OrganizationOrgShareUnitResource Get(string name, Input<string> id, OrganizationOrgShareUnitResourceState? state, CustomResourceOptions? opts = null)
public static OrganizationOrgShareUnitResource get(String name, Output<String> id, OrganizationOrgShareUnitResourceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:OrganizationOrgShareUnitResource 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.
- Area string
- Shared unit area.
- Create
Time string - Create time.
- string
- ID of the resource.
- Product
Resource stringId - Product Resource ID.
- Resource
Id string - Shared resource ID.
- double
- Sharing administrator OwnerUin.
- double
- Number of shared unit members.
- double
- Number of shared unit members in use.
- Type string
- Shared resource type.
- Unit
Id string - Shared unit ID.
- Area string
- Shared unit area.
- Create
Time string - Create time.
- string
- ID of the resource.
- Product
Resource stringId - Product Resource ID.
- Resource
Id string - Shared resource ID.
- float64
- Sharing administrator OwnerUin.
- float64
- Number of shared unit members.
- float64
- Number of shared unit members in use.
- Type string
- Shared resource type.
- Unit
Id string - Shared unit ID.
- area String
- Shared unit area.
- create
Time String - Create time.
- String
- ID of the resource.
- product
Resource StringId - Product Resource ID.
- resource
Id String - Shared resource ID.
- Double
- Sharing administrator OwnerUin.
- Double
- Number of shared unit members.
- Double
- Number of shared unit members in use.
- type String
- Shared resource type.
- unit
Id String - Shared unit ID.
- area string
- Shared unit area.
- create
Time string - Create time.
- string
- ID of the resource.
- product
Resource stringId - Product Resource ID.
- resource
Id string - Shared resource ID.
- number
- Sharing administrator OwnerUin.
- number
- Number of shared unit members.
- number
- Number of shared unit members in use.
- type string
- Shared resource type.
- unit
Id string - Shared unit ID.
- area str
- Shared unit area.
- create_
time str - Create time.
- str
- ID of the resource.
- product_
resource_ strid - Product Resource ID.
- resource_
id str - Shared resource ID.
- float
- Sharing administrator OwnerUin.
- float
- Number of shared unit members.
- float
- Number of shared unit members in use.
- type str
- Shared resource type.
- unit_
id str - Shared unit ID.
- area String
- Shared unit area.
- create
Time String - Create time.
- String
- ID of the resource.
- product
Resource StringId - Product Resource ID.
- resource
Id String - Shared resource ID.
- Number
- Sharing administrator OwnerUin.
- Number
- Number of shared unit members.
- Number
- Number of shared unit members in use.
- type String
- Shared resource type.
- unit
Id String - Shared unit ID.
Import
organization organization_org_share_unit_resource can be imported using the id, e.g.
$ pulumi import tencentcloud:index/organizationOrgShareUnitResource:OrganizationOrgShareUnitResource organization_org_share_unit_resource ${unit_id}#${area}#${share_resource_type}#${product_resource_id}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.