alicloud.rdc.Organization
Explore with Pulumi AI
Provides a RDC Organization resource.
For information about RDC Organization and how to use it, see What is Organization.
NOTE: Available in v1.137.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.rdc.Organization("example", {
organizationName: "example_value",
source: "example_value",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.rdc.Organization("example",
organization_name="example_value",
source="example_value")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rdc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdc.NewOrganization(ctx, "example", &rdc.OrganizationArgs{
OrganizationName: pulumi.String("example_value"),
Source: pulumi.String("example_value"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Rdc.Organization("example", new()
{
OrganizationName = "example_value",
Source = "example_value",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.rdc.Organization;
import com.pulumi.alicloud.rdc.OrganizationArgs;
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 example = new Organization("example", OrganizationArgs.builder()
.organizationName("example_value")
.source("example_value")
.build());
}
}
resources:
example:
type: alicloud:rdc:Organization
properties:
organizationName: example_value
source: example_value
Create Organization Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Organization(name: string, args: OrganizationArgs, opts?: CustomResourceOptions);
@overload
def Organization(resource_name: str,
args: OrganizationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Organization(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_name: Optional[str] = None,
source: Optional[str] = None,
desired_member_count: Optional[int] = None,
real_pk: Optional[str] = None)
func NewOrganization(ctx *Context, name string, args OrganizationArgs, opts ...ResourceOption) (*Organization, error)
public Organization(string name, OrganizationArgs args, CustomResourceOptions? opts = null)
public Organization(String name, OrganizationArgs args)
public Organization(String name, OrganizationArgs args, CustomResourceOptions options)
type: alicloud:rdc:Organization
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 OrganizationArgs
- 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 OrganizationArgs
- 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 OrganizationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationArgs
- 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 organizationResource = new AliCloud.Rdc.Organization("organizationResource", new()
{
OrganizationName = "string",
Source = "string",
DesiredMemberCount = 0,
RealPk = "string",
});
example, err := rdc.NewOrganization(ctx, "organizationResource", &rdc.OrganizationArgs{
OrganizationName: pulumi.String("string"),
Source: pulumi.String("string"),
DesiredMemberCount: pulumi.Int(0),
RealPk: pulumi.String("string"),
})
var organizationResource = new Organization("organizationResource", OrganizationArgs.builder()
.organizationName("string")
.source("string")
.desiredMemberCount(0)
.realPk("string")
.build());
organization_resource = alicloud.rdc.Organization("organizationResource",
organization_name="string",
source="string",
desired_member_count=0,
real_pk="string")
const organizationResource = new alicloud.rdc.Organization("organizationResource", {
organizationName: "string",
source: "string",
desiredMemberCount: 0,
realPk: "string",
});
type: alicloud:rdc:Organization
properties:
desiredMemberCount: 0
organizationName: string
realPk: string
source: string
Organization 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 Organization resource accepts the following input properties:
- Organization
Name string - Company name.
- Source string
- This is organization source information
- Desired
Member intCount - The desired member count.
- Real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- Organization
Name string - Company name.
- Source string
- This is organization source information
- Desired
Member intCount - The desired member count.
- Real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- organization
Name String - Company name.
- source String
- This is organization source information
- desired
Member IntegerCount - The desired member count.
- real
Pk String - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- organization
Name string - Company name.
- source string
- This is organization source information
- desired
Member numberCount - The desired member count.
- real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- organization_
name str - Company name.
- source str
- This is organization source information
- desired_
member_ intcount - The desired member count.
- real_
pk str - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- organization
Name String - Company name.
- source String
- This is organization source information
- desired
Member NumberCount - The desired member count.
- real
Pk String - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
Outputs
All input properties are implicitly available as output properties. Additionally, the Organization resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Organization Resource
Get an existing Organization 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?: OrganizationState, opts?: CustomResourceOptions): Organization
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
desired_member_count: Optional[int] = None,
organization_name: Optional[str] = None,
real_pk: Optional[str] = None,
source: Optional[str] = None) -> Organization
func GetOrganization(ctx *Context, name string, id IDInput, state *OrganizationState, opts ...ResourceOption) (*Organization, error)
public static Organization Get(string name, Input<string> id, OrganizationState? state, CustomResourceOptions? opts = null)
public static Organization get(String name, Output<String> id, OrganizationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Desired
Member intCount - The desired member count.
- Organization
Name string - Company name.
- Real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- Source string
- This is organization source information
- Desired
Member intCount - The desired member count.
- Organization
Name string - Company name.
- Real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- Source string
- This is organization source information
- desired
Member IntegerCount - The desired member count.
- organization
Name String - Company name.
- real
Pk String - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- source String
- This is organization source information
- desired
Member numberCount - The desired member count.
- organization
Name string - Company name.
- real
Pk string - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- source string
- This is organization source information
- desired_
member_ intcount - The desired member count.
- organization_
name str - Company name.
- real_
pk str - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- source str
- This is organization source information
- desired
Member NumberCount - The desired member count.
- organization
Name String - Company name.
- real
Pk String - User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
- source String
- This is organization source information
Import
RDC Organization can be imported using the id, e.g.
$ pulumi import alicloud:rdc/organization:Organization example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.