rdc

package
v3.54.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOrganizationsArgs

type GetOrganizationsArgs struct {
	// A list of Organization IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Organization name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
	RealPk *string `pulumi:"realPk"`
}

A collection of arguments for invoking getOrganizations.

type GetOrganizationsOrganization

type GetOrganizationsOrganization struct {
	// The ID of the Organization.
	Id string `pulumi:"id"`
	// The first ID of the resource.
	OrganizationId string `pulumi:"organizationId"`
	// Company name.
	OrganizationName string `pulumi:"organizationName"`
}

type GetOrganizationsOrganizationArgs

type GetOrganizationsOrganizationArgs struct {
	// The ID of the Organization.
	Id pulumi.StringInput `pulumi:"id"`
	// The first ID of the resource.
	OrganizationId pulumi.StringInput `pulumi:"organizationId"`
	// Company name.
	OrganizationName pulumi.StringInput `pulumi:"organizationName"`
}

func (GetOrganizationsOrganizationArgs) ElementType

func (GetOrganizationsOrganizationArgs) ToGetOrganizationsOrganizationOutput

func (i GetOrganizationsOrganizationArgs) ToGetOrganizationsOrganizationOutput() GetOrganizationsOrganizationOutput

func (GetOrganizationsOrganizationArgs) ToGetOrganizationsOrganizationOutputWithContext

func (i GetOrganizationsOrganizationArgs) ToGetOrganizationsOrganizationOutputWithContext(ctx context.Context) GetOrganizationsOrganizationOutput

type GetOrganizationsOrganizationArray

type GetOrganizationsOrganizationArray []GetOrganizationsOrganizationInput

func (GetOrganizationsOrganizationArray) ElementType

func (GetOrganizationsOrganizationArray) ToGetOrganizationsOrganizationArrayOutput

func (i GetOrganizationsOrganizationArray) ToGetOrganizationsOrganizationArrayOutput() GetOrganizationsOrganizationArrayOutput

func (GetOrganizationsOrganizationArray) ToGetOrganizationsOrganizationArrayOutputWithContext

func (i GetOrganizationsOrganizationArray) ToGetOrganizationsOrganizationArrayOutputWithContext(ctx context.Context) GetOrganizationsOrganizationArrayOutput

type GetOrganizationsOrganizationArrayInput

type GetOrganizationsOrganizationArrayInput interface {
	pulumi.Input

	ToGetOrganizationsOrganizationArrayOutput() GetOrganizationsOrganizationArrayOutput
	ToGetOrganizationsOrganizationArrayOutputWithContext(context.Context) GetOrganizationsOrganizationArrayOutput
}

GetOrganizationsOrganizationArrayInput is an input type that accepts GetOrganizationsOrganizationArray and GetOrganizationsOrganizationArrayOutput values. You can construct a concrete instance of `GetOrganizationsOrganizationArrayInput` via:

GetOrganizationsOrganizationArray{ GetOrganizationsOrganizationArgs{...} }

type GetOrganizationsOrganizationArrayOutput

type GetOrganizationsOrganizationArrayOutput struct{ *pulumi.OutputState }

func (GetOrganizationsOrganizationArrayOutput) ElementType

func (GetOrganizationsOrganizationArrayOutput) Index

func (GetOrganizationsOrganizationArrayOutput) ToGetOrganizationsOrganizationArrayOutput

func (o GetOrganizationsOrganizationArrayOutput) ToGetOrganizationsOrganizationArrayOutput() GetOrganizationsOrganizationArrayOutput

func (GetOrganizationsOrganizationArrayOutput) ToGetOrganizationsOrganizationArrayOutputWithContext

func (o GetOrganizationsOrganizationArrayOutput) ToGetOrganizationsOrganizationArrayOutputWithContext(ctx context.Context) GetOrganizationsOrganizationArrayOutput

type GetOrganizationsOrganizationInput

type GetOrganizationsOrganizationInput interface {
	pulumi.Input

	ToGetOrganizationsOrganizationOutput() GetOrganizationsOrganizationOutput
	ToGetOrganizationsOrganizationOutputWithContext(context.Context) GetOrganizationsOrganizationOutput
}

GetOrganizationsOrganizationInput is an input type that accepts GetOrganizationsOrganizationArgs and GetOrganizationsOrganizationOutput values. You can construct a concrete instance of `GetOrganizationsOrganizationInput` via:

GetOrganizationsOrganizationArgs{...}

type GetOrganizationsOrganizationOutput

type GetOrganizationsOrganizationOutput struct{ *pulumi.OutputState }

func (GetOrganizationsOrganizationOutput) ElementType

func (GetOrganizationsOrganizationOutput) Id

The ID of the Organization.

func (GetOrganizationsOrganizationOutput) OrganizationId

The first ID of the resource.

func (GetOrganizationsOrganizationOutput) OrganizationName

Company name.

func (GetOrganizationsOrganizationOutput) ToGetOrganizationsOrganizationOutput

func (o GetOrganizationsOrganizationOutput) ToGetOrganizationsOrganizationOutput() GetOrganizationsOrganizationOutput

func (GetOrganizationsOrganizationOutput) ToGetOrganizationsOrganizationOutputWithContext

func (o GetOrganizationsOrganizationOutput) ToGetOrganizationsOrganizationOutputWithContext(ctx context.Context) GetOrganizationsOrganizationOutput

type GetOrganizationsOutputArgs added in v3.9.0

type GetOrganizationsOutputArgs struct {
	// A list of Organization IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Organization name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
	RealPk pulumi.StringPtrInput `pulumi:"realPk"`
}

A collection of arguments for invoking getOrganizations.

func (GetOrganizationsOutputArgs) ElementType added in v3.9.0

func (GetOrganizationsOutputArgs) ElementType() reflect.Type

type GetOrganizationsResult

type GetOrganizationsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id            string                         `pulumi:"id"`
	Ids           []string                       `pulumi:"ids"`
	NameRegex     *string                        `pulumi:"nameRegex"`
	Names         []string                       `pulumi:"names"`
	Organizations []GetOrganizationsOrganization `pulumi:"organizations"`
	OutputFile    *string                        `pulumi:"outputFile"`
	RealPk        *string                        `pulumi:"realPk"`
}

A collection of values returned by getOrganizations.

func GetOrganizations

func GetOrganizations(ctx *pulumi.Context, args *GetOrganizationsArgs, opts ...pulumi.InvokeOption) (*GetOrganizationsResult, error)

This data source provides the Rdc Organizations of the current Alibaba Cloud user.

> **NOTE:** Available in v1.137.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/rdc"
"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, "")
		name := "tf-testAccOrganizations-Organizations"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := rdc.NewOrganization(ctx, "default", &rdc.OrganizationArgs{
			OrganizationName: pulumi.String(name),
			Source:           pulumi.String(name),
		})
		if err != nil {
			return err
		}
		ids := rdc.GetOrganizationsOutput(ctx, rdc.GetOrganizationsOutputArgs{
			Ids: pulumi.StringArray{
				_default.ID(),
			},
		}, nil)
		ctx.Export("rdcOrganizationId1", ids.ApplyT(func(ids rdc.GetOrganizationsResult) (*string, error) {
			return &ids.Id, nil
		}).(pulumi.StringPtrOutput))
		nameRegex, err := rdc.GetOrganizations(ctx, &rdc.GetOrganizationsArgs{
			NameRegex: pulumi.StringRef("^my-Organization"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("rdcOrganizationId2", nameRegex.Id)
		return nil
	})
}

```

type GetOrganizationsResultOutput added in v3.9.0

type GetOrganizationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getOrganizations.

func GetOrganizationsOutput added in v3.9.0

func (GetOrganizationsResultOutput) ElementType added in v3.9.0

func (GetOrganizationsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetOrganizationsResultOutput) Ids added in v3.9.0

func (GetOrganizationsResultOutput) NameRegex added in v3.9.0

func (GetOrganizationsResultOutput) Names added in v3.9.0

func (GetOrganizationsResultOutput) Organizations added in v3.9.0

func (GetOrganizationsResultOutput) OutputFile added in v3.9.0

func (GetOrganizationsResultOutput) RealPk added in v3.9.0

func (GetOrganizationsResultOutput) ToGetOrganizationsResultOutput added in v3.9.0

func (o GetOrganizationsResultOutput) ToGetOrganizationsResultOutput() GetOrganizationsResultOutput

func (GetOrganizationsResultOutput) ToGetOrganizationsResultOutputWithContext added in v3.9.0

func (o GetOrganizationsResultOutput) ToGetOrganizationsResultOutputWithContext(ctx context.Context) GetOrganizationsResultOutput

type Organization

type Organization struct {
	pulumi.CustomResourceState

	// The desired member count.
	DesiredMemberCount pulumi.IntPtrOutput `pulumi:"desiredMemberCount"`
	// Company name.
	OrganizationName pulumi.StringOutput `pulumi:"organizationName"`
	// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
	RealPk pulumi.StringPtrOutput `pulumi:"realPk"`
	// This is organization source information
	Source pulumi.StringOutput `pulumi:"source"`
}

Provides a RDC Organization resource.

For information about RDC Organization and how to use it, see [What is Organization](https://help.aliyun.com/product/51588.html).

> **NOTE:** Available in v1.137.0+.

## Example Usage

Basic Usage

```go 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
	})
}

```

## Import

RDC Organization can be imported using the id, e.g.

```sh $ pulumi import alicloud:rdc/organization:Organization example <id> ```

func GetOrganization

func GetOrganization(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *OrganizationState, opts ...pulumi.ResourceOption) (*Organization, error)

GetOrganization gets an existing Organization resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewOrganization

func NewOrganization(ctx *pulumi.Context,
	name string, args *OrganizationArgs, opts ...pulumi.ResourceOption) (*Organization, error)

NewOrganization registers a new resource with the given unique name, arguments, and options.

func (*Organization) ElementType

func (*Organization) ElementType() reflect.Type

func (*Organization) ToOrganizationOutput

func (i *Organization) ToOrganizationOutput() OrganizationOutput

func (*Organization) ToOrganizationOutputWithContext

func (i *Organization) ToOrganizationOutputWithContext(ctx context.Context) OrganizationOutput

type OrganizationArgs

type OrganizationArgs struct {
	// The desired member count.
	DesiredMemberCount pulumi.IntPtrInput
	// Company name.
	OrganizationName pulumi.StringInput
	// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
	RealPk pulumi.StringPtrInput
	// This is organization source information
	Source pulumi.StringInput
}

The set of arguments for constructing a Organization resource.

func (OrganizationArgs) ElementType

func (OrganizationArgs) ElementType() reflect.Type

type OrganizationArray

type OrganizationArray []OrganizationInput

func (OrganizationArray) ElementType

func (OrganizationArray) ElementType() reflect.Type

func (OrganizationArray) ToOrganizationArrayOutput

func (i OrganizationArray) ToOrganizationArrayOutput() OrganizationArrayOutput

func (OrganizationArray) ToOrganizationArrayOutputWithContext

func (i OrganizationArray) ToOrganizationArrayOutputWithContext(ctx context.Context) OrganizationArrayOutput

type OrganizationArrayInput

type OrganizationArrayInput interface {
	pulumi.Input

	ToOrganizationArrayOutput() OrganizationArrayOutput
	ToOrganizationArrayOutputWithContext(context.Context) OrganizationArrayOutput
}

OrganizationArrayInput is an input type that accepts OrganizationArray and OrganizationArrayOutput values. You can construct a concrete instance of `OrganizationArrayInput` via:

OrganizationArray{ OrganizationArgs{...} }

type OrganizationArrayOutput

type OrganizationArrayOutput struct{ *pulumi.OutputState }

func (OrganizationArrayOutput) ElementType

func (OrganizationArrayOutput) ElementType() reflect.Type

func (OrganizationArrayOutput) Index

func (OrganizationArrayOutput) ToOrganizationArrayOutput

func (o OrganizationArrayOutput) ToOrganizationArrayOutput() OrganizationArrayOutput

func (OrganizationArrayOutput) ToOrganizationArrayOutputWithContext

func (o OrganizationArrayOutput) ToOrganizationArrayOutputWithContext(ctx context.Context) OrganizationArrayOutput

type OrganizationInput

type OrganizationInput interface {
	pulumi.Input

	ToOrganizationOutput() OrganizationOutput
	ToOrganizationOutputWithContext(ctx context.Context) OrganizationOutput
}

type OrganizationMap

type OrganizationMap map[string]OrganizationInput

func (OrganizationMap) ElementType

func (OrganizationMap) ElementType() reflect.Type

func (OrganizationMap) ToOrganizationMapOutput

func (i OrganizationMap) ToOrganizationMapOutput() OrganizationMapOutput

func (OrganizationMap) ToOrganizationMapOutputWithContext

func (i OrganizationMap) ToOrganizationMapOutputWithContext(ctx context.Context) OrganizationMapOutput

type OrganizationMapInput

type OrganizationMapInput interface {
	pulumi.Input

	ToOrganizationMapOutput() OrganizationMapOutput
	ToOrganizationMapOutputWithContext(context.Context) OrganizationMapOutput
}

OrganizationMapInput is an input type that accepts OrganizationMap and OrganizationMapOutput values. You can construct a concrete instance of `OrganizationMapInput` via:

OrganizationMap{ "key": OrganizationArgs{...} }

type OrganizationMapOutput

type OrganizationMapOutput struct{ *pulumi.OutputState }

func (OrganizationMapOutput) ElementType

func (OrganizationMapOutput) ElementType() reflect.Type

func (OrganizationMapOutput) MapIndex

func (OrganizationMapOutput) ToOrganizationMapOutput

func (o OrganizationMapOutput) ToOrganizationMapOutput() OrganizationMapOutput

func (OrganizationMapOutput) ToOrganizationMapOutputWithContext

func (o OrganizationMapOutput) ToOrganizationMapOutputWithContext(ctx context.Context) OrganizationMapOutput

type OrganizationOutput

type OrganizationOutput struct{ *pulumi.OutputState }

func (OrganizationOutput) DesiredMemberCount added in v3.27.0

func (o OrganizationOutput) DesiredMemberCount() pulumi.IntPtrOutput

The desired member count.

func (OrganizationOutput) ElementType

func (OrganizationOutput) ElementType() reflect.Type

func (OrganizationOutput) OrganizationName added in v3.27.0

func (o OrganizationOutput) OrganizationName() pulumi.StringOutput

Company name.

func (OrganizationOutput) RealPk added in v3.27.0

User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk

func (OrganizationOutput) Source added in v3.27.0

This is organization source information

func (OrganizationOutput) ToOrganizationOutput

func (o OrganizationOutput) ToOrganizationOutput() OrganizationOutput

func (OrganizationOutput) ToOrganizationOutputWithContext

func (o OrganizationOutput) ToOrganizationOutputWithContext(ctx context.Context) OrganizationOutput

type OrganizationState

type OrganizationState struct {
	// The desired member count.
	DesiredMemberCount pulumi.IntPtrInput
	// Company name.
	OrganizationName pulumi.StringPtrInput
	// User pk, not required, only required when the ak used by the calling interface is inconsistent with the user pk
	RealPk pulumi.StringPtrInput
	// This is organization source information
	Source pulumi.StringPtrInput
}

func (OrganizationState) ElementType

func (OrganizationState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL