resourcemanager

package
v3.55.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 Account

type Account struct {
	pulumi.CustomResourceState

	// The IDs of the check items that you can choose to ignore for the member deletion.
	// If you want to delete the account, please use datasource `resourcemanager.getAccountDeletionCheckTask`
	// to get check ids and set them.
	AbandonAbleCheckIds pulumi.StringArrayOutput `pulumi:"abandonAbleCheckIds"`
	// The name prefix of account.
	AccountNamePrefix pulumi.StringPtrOutput `pulumi:"accountNamePrefix"`
	// Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// The ID of the parent folder.
	FolderId pulumi.StringOutput `pulumi:"folderId"`
	// Ways for members to join the resource directory. Valid values: `invited`, `created`.
	JoinMethod pulumi.StringOutput `pulumi:"joinMethod"`
	// The time when the member joined the resource directory.
	JoinTime pulumi.StringOutput `pulumi:"joinTime"`
	// The modification time of the invitation.
	ModifyTime pulumi.StringOutput `pulumi:"modifyTime"`
	// The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
	PayerAccountId pulumi.StringPtrOutput `pulumi:"payerAccountId"`
	// Resource directory ID.
	ResourceDirectoryId pulumi.StringOutput `pulumi:"resourceDirectoryId"`
	// Member joining status. Valid values: `CreateSuccess`,`CreateVerifying`,`CreateFailed`,`CreateExpired`,`CreateCancelled`,`PromoteVerifying`,`PromoteFailed`,`PromoteExpired`,`PromoteCancelled`,`PromoteSuccess`,`InviteSuccess`,`Removed`.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	//
	// > **NOTE:** The member name must be unique within the resource directory.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// Member type. The value of `ResourceAccount` indicates the resource account.
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a Resource Manager Account resource. Member accounts are containers for resources in a resource directory. These accounts isolate resources and serve as organizational units in the resource directory. You can create member accounts in a folder and then manage them in a unified manner. For information about Resource Manager Account and how to use it, see [What is Resource Manager Account](https://www.alibabacloud.com/help/en/doc-detail/111231.htm).

> **NOTE:** Available since v1.83.0.

> **NOTE:** From version 1.188.0, the resource can be destroyed. The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial. see [how to destroy it](https://www.alibabacloud.com/help/en/resource-management/latest/delete-account).

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		displayName := "EAccount"
		if param := cfg.Get("displayName"); param != "" {
			displayName = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		example, err := resourcemanager.GetFolders(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewAccount(ctx, "example", &resourcemanager.AccountArgs{
			DisplayName: pulumi.String(fmt.Sprintf("%v-%v", displayName, _default.Result)),
			FolderId:    pulumi.String(example.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Deleting `resourcemanager.Account` or removing it from your configuration

Deleting the resource manager account or removing it from your configuration will remove it from your state file and management, but may not destroy the account. If there are some dependent resource in the account, the deleting account will enter a silence period of 45 days. After the silence period ends, the system automatically starts to delete the member. [See More Details](https://www.alibabacloud.com/help/en/resource-management/latest/delete-resource-account).

## Import

Resource Manager Account can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/account:Account example 13148890145***** ```

func GetAccount

func GetAccount(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error)

GetAccount gets an existing Account 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 NewAccount

func NewAccount(ctx *pulumi.Context,
	name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error)

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

func (*Account) ElementType

func (*Account) ElementType() reflect.Type

func (*Account) ToAccountOutput

func (i *Account) ToAccountOutput() AccountOutput

func (*Account) ToAccountOutputWithContext

func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput

type AccountArgs

type AccountArgs struct {
	// The IDs of the check items that you can choose to ignore for the member deletion.
	// If you want to delete the account, please use datasource `resourcemanager.getAccountDeletionCheckTask`
	// to get check ids and set them.
	AbandonAbleCheckIds pulumi.StringArrayInput
	// The name prefix of account.
	AccountNamePrefix pulumi.StringPtrInput
	// Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
	DisplayName pulumi.StringInput
	// The ID of the parent folder.
	FolderId pulumi.StringPtrInput
	// The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
	PayerAccountId pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	//
	// > **NOTE:** The member name must be unique within the resource directory.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Account resource.

func (AccountArgs) ElementType

func (AccountArgs) ElementType() reflect.Type

type AccountArray

type AccountArray []AccountInput

func (AccountArray) ElementType

func (AccountArray) ElementType() reflect.Type

func (AccountArray) ToAccountArrayOutput

func (i AccountArray) ToAccountArrayOutput() AccountArrayOutput

func (AccountArray) ToAccountArrayOutputWithContext

func (i AccountArray) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountArrayInput

type AccountArrayInput interface {
	pulumi.Input

	ToAccountArrayOutput() AccountArrayOutput
	ToAccountArrayOutputWithContext(context.Context) AccountArrayOutput
}

AccountArrayInput is an input type that accepts AccountArray and AccountArrayOutput values. You can construct a concrete instance of `AccountArrayInput` via:

AccountArray{ AccountArgs{...} }

type AccountArrayOutput

type AccountArrayOutput struct{ *pulumi.OutputState }

func (AccountArrayOutput) ElementType

func (AccountArrayOutput) ElementType() reflect.Type

func (AccountArrayOutput) Index

func (AccountArrayOutput) ToAccountArrayOutput

func (o AccountArrayOutput) ToAccountArrayOutput() AccountArrayOutput

func (AccountArrayOutput) ToAccountArrayOutputWithContext

func (o AccountArrayOutput) ToAccountArrayOutputWithContext(ctx context.Context) AccountArrayOutput

type AccountInput

type AccountInput interface {
	pulumi.Input

	ToAccountOutput() AccountOutput
	ToAccountOutputWithContext(ctx context.Context) AccountOutput
}

type AccountMap

type AccountMap map[string]AccountInput

func (AccountMap) ElementType

func (AccountMap) ElementType() reflect.Type

func (AccountMap) ToAccountMapOutput

func (i AccountMap) ToAccountMapOutput() AccountMapOutput

func (AccountMap) ToAccountMapOutputWithContext

func (i AccountMap) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountMapInput

type AccountMapInput interface {
	pulumi.Input

	ToAccountMapOutput() AccountMapOutput
	ToAccountMapOutputWithContext(context.Context) AccountMapOutput
}

AccountMapInput is an input type that accepts AccountMap and AccountMapOutput values. You can construct a concrete instance of `AccountMapInput` via:

AccountMap{ "key": AccountArgs{...} }

type AccountMapOutput

type AccountMapOutput struct{ *pulumi.OutputState }

func (AccountMapOutput) ElementType

func (AccountMapOutput) ElementType() reflect.Type

func (AccountMapOutput) MapIndex

func (AccountMapOutput) ToAccountMapOutput

func (o AccountMapOutput) ToAccountMapOutput() AccountMapOutput

func (AccountMapOutput) ToAccountMapOutputWithContext

func (o AccountMapOutput) ToAccountMapOutputWithContext(ctx context.Context) AccountMapOutput

type AccountOutput

type AccountOutput struct{ *pulumi.OutputState }

func (AccountOutput) AbandonAbleCheckIds added in v3.29.0

func (o AccountOutput) AbandonAbleCheckIds() pulumi.StringArrayOutput

The IDs of the check items that you can choose to ignore for the member deletion. If you want to delete the account, please use datasource `resourcemanager.getAccountDeletionCheckTask` to get check ids and set them.

func (AccountOutput) AccountNamePrefix added in v3.27.0

func (o AccountOutput) AccountNamePrefix() pulumi.StringPtrOutput

The name prefix of account.

func (AccountOutput) DisplayName added in v3.27.0

func (o AccountOutput) DisplayName() pulumi.StringOutput

Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).

func (AccountOutput) ElementType

func (AccountOutput) ElementType() reflect.Type

func (AccountOutput) FolderId added in v3.27.0

func (o AccountOutput) FolderId() pulumi.StringOutput

The ID of the parent folder.

func (AccountOutput) JoinMethod added in v3.27.0

func (o AccountOutput) JoinMethod() pulumi.StringOutput

Ways for members to join the resource directory. Valid values: `invited`, `created`.

func (AccountOutput) JoinTime added in v3.27.0

func (o AccountOutput) JoinTime() pulumi.StringOutput

The time when the member joined the resource directory.

func (AccountOutput) ModifyTime added in v3.27.0

func (o AccountOutput) ModifyTime() pulumi.StringOutput

The modification time of the invitation.

func (AccountOutput) PayerAccountId added in v3.27.0

func (o AccountOutput) PayerAccountId() pulumi.StringPtrOutput

The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.

func (AccountOutput) ResourceDirectoryId added in v3.27.0

func (o AccountOutput) ResourceDirectoryId() pulumi.StringOutput

Resource directory ID.

func (AccountOutput) Status added in v3.27.0

func (o AccountOutput) Status() pulumi.StringOutput

Member joining status. Valid values: `CreateSuccess`,`CreateVerifying`,`CreateFailed`,`CreateExpired`,`CreateCancelled`,`PromoteVerifying`,`PromoteFailed`,`PromoteExpired`,`PromoteCancelled`,`PromoteSuccess`,`InviteSuccess`,`Removed`.

func (AccountOutput) Tags added in v3.28.0

func (o AccountOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

> **NOTE:** The member name must be unique within the resource directory.

func (AccountOutput) ToAccountOutput

func (o AccountOutput) ToAccountOutput() AccountOutput

func (AccountOutput) ToAccountOutputWithContext

func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput

func (AccountOutput) Type added in v3.27.0

Member type. The value of `ResourceAccount` indicates the resource account.

type AccountState

type AccountState struct {
	// The IDs of the check items that you can choose to ignore for the member deletion.
	// If you want to delete the account, please use datasource `resourcemanager.getAccountDeletionCheckTask`
	// to get check ids and set them.
	AbandonAbleCheckIds pulumi.StringArrayInput
	// The name prefix of account.
	AccountNamePrefix pulumi.StringPtrInput
	// Member name. The length is 2 ~ 50 characters or Chinese characters, which can include Chinese characters, English letters, numbers, underscores (_), dots (.) And dashes (-).
	DisplayName pulumi.StringPtrInput
	// The ID of the parent folder.
	FolderId pulumi.StringPtrInput
	// Ways for members to join the resource directory. Valid values: `invited`, `created`.
	JoinMethod pulumi.StringPtrInput
	// The time when the member joined the resource directory.
	JoinTime pulumi.StringPtrInput
	// The modification time of the invitation.
	ModifyTime pulumi.StringPtrInput
	// The ID of the billing account. If you leave this parameter empty, the current account is used as the billing account.
	PayerAccountId pulumi.StringPtrInput
	// Resource directory ID.
	ResourceDirectoryId pulumi.StringPtrInput
	// Member joining status. Valid values: `CreateSuccess`,`CreateVerifying`,`CreateFailed`,`CreateExpired`,`CreateCancelled`,`PromoteVerifying`,`PromoteFailed`,`PromoteExpired`,`PromoteCancelled`,`PromoteSuccess`,`InviteSuccess`,`Removed`.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	//
	// > **NOTE:** The member name must be unique within the resource directory.
	Tags pulumi.MapInput
	// Member type. The value of `ResourceAccount` indicates the resource account.
	Type pulumi.StringPtrInput
}

func (AccountState) ElementType

func (AccountState) ElementType() reflect.Type

type ControlPolicy

type ControlPolicy struct {
	pulumi.CustomResourceState

	// The name of control policy.
	ControlPolicyName pulumi.StringOutput `pulumi:"controlPolicyName"`
	// The description of control policy.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The effect scope. Valid values `RAM`.
	EffectScope pulumi.StringOutput `pulumi:"effectScope"`
	// The policy document of control policy.
	PolicyDocument pulumi.StringOutput `pulumi:"policyDocument"`
}

Provides a Resource Manager Control Policy resource.

For information about Resource Manager Control Policy and how to use it, see [What is Control Policy](https://www.alibabacloud.com/help/en/resource-management/latest/api-resourcedirectorymaster-2022-04-19-createcontrolpolicy).

> **NOTE:** Available since v1.120.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.NewControlPolicy(ctx, "example", &resourcemanager.ControlPolicyArgs{
			ControlPolicyName: pulumi.String(name),
			Description:       pulumi.String(name),
			EffectScope:       pulumi.String("RAM"),
			PolicyDocument: pulumi.String(`  {
    "Version": "1",
    "Statement": [
      {
        "Effect": "Deny",
        "Action": [
          "ram:UpdateRole",
          "ram:DeleteRole",
          "ram:AttachPolicyToRole",
          "ram:DetachPolicyFromRole"
        ],
        "Resource": "acs:ram:*:*:role/ResourceDirectoryAccountAccessRole"
      }
    ]
  }

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Control Policy can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/controlPolicy:ControlPolicy example <id> ```

func GetControlPolicy

func GetControlPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ControlPolicyState, opts ...pulumi.ResourceOption) (*ControlPolicy, error)

GetControlPolicy gets an existing ControlPolicy 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 NewControlPolicy

func NewControlPolicy(ctx *pulumi.Context,
	name string, args *ControlPolicyArgs, opts ...pulumi.ResourceOption) (*ControlPolicy, error)

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

func (*ControlPolicy) ElementType

func (*ControlPolicy) ElementType() reflect.Type

func (*ControlPolicy) ToControlPolicyOutput

func (i *ControlPolicy) ToControlPolicyOutput() ControlPolicyOutput

func (*ControlPolicy) ToControlPolicyOutputWithContext

func (i *ControlPolicy) ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput

type ControlPolicyArgs

type ControlPolicyArgs struct {
	// The name of control policy.
	ControlPolicyName pulumi.StringInput
	// The description of control policy.
	Description pulumi.StringPtrInput
	// The effect scope. Valid values `RAM`.
	EffectScope pulumi.StringInput
	// The policy document of control policy.
	PolicyDocument pulumi.StringInput
}

The set of arguments for constructing a ControlPolicy resource.

func (ControlPolicyArgs) ElementType

func (ControlPolicyArgs) ElementType() reflect.Type

type ControlPolicyArray

type ControlPolicyArray []ControlPolicyInput

func (ControlPolicyArray) ElementType

func (ControlPolicyArray) ElementType() reflect.Type

func (ControlPolicyArray) ToControlPolicyArrayOutput

func (i ControlPolicyArray) ToControlPolicyArrayOutput() ControlPolicyArrayOutput

func (ControlPolicyArray) ToControlPolicyArrayOutputWithContext

func (i ControlPolicyArray) ToControlPolicyArrayOutputWithContext(ctx context.Context) ControlPolicyArrayOutput

type ControlPolicyArrayInput

type ControlPolicyArrayInput interface {
	pulumi.Input

	ToControlPolicyArrayOutput() ControlPolicyArrayOutput
	ToControlPolicyArrayOutputWithContext(context.Context) ControlPolicyArrayOutput
}

ControlPolicyArrayInput is an input type that accepts ControlPolicyArray and ControlPolicyArrayOutput values. You can construct a concrete instance of `ControlPolicyArrayInput` via:

ControlPolicyArray{ ControlPolicyArgs{...} }

type ControlPolicyArrayOutput

type ControlPolicyArrayOutput struct{ *pulumi.OutputState }

func (ControlPolicyArrayOutput) ElementType

func (ControlPolicyArrayOutput) ElementType() reflect.Type

func (ControlPolicyArrayOutput) Index

func (ControlPolicyArrayOutput) ToControlPolicyArrayOutput

func (o ControlPolicyArrayOutput) ToControlPolicyArrayOutput() ControlPolicyArrayOutput

func (ControlPolicyArrayOutput) ToControlPolicyArrayOutputWithContext

func (o ControlPolicyArrayOutput) ToControlPolicyArrayOutputWithContext(ctx context.Context) ControlPolicyArrayOutput

type ControlPolicyAttachment

type ControlPolicyAttachment struct {
	pulumi.CustomResourceState

	// The ID of control policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// The ID of target.
	TargetId pulumi.StringOutput `pulumi:"targetId"`
}

Provides a Resource Manager Control Policy Attachment resource.

For information about Resource Manager Control Policy Attachment and how to use it, see [What is Control Policy Attachment](https://www.alibabacloud.com/help/en/resource-management/latest/api-resourcedirectorymaster-2022-04-19-attachcontrolpolicy).

> **NOTE:** Available since v1.120.0.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		example, err := resourcemanager.NewControlPolicy(ctx, "example", &resourcemanager.ControlPolicyArgs{
			ControlPolicyName: pulumi.String(name),
			Description:       pulumi.String(name),
			EffectScope:       pulumi.String("RAM"),
			PolicyDocument: pulumi.String(`  {
    "Version": "1",
    "Statement": [
      {
        "Effect": "Deny",
        "Action": [
          "ram:UpdateRole",
          "ram:DeleteRole",
          "ram:AttachPolicyToRole",
          "ram:DetachPolicyFromRole"
        ],
        "Resource": "acs:ram:*:*:role/ResourceDirectoryAccountAccessRole"
      }
    ]
  }

`),

		})
		if err != nil {
			return err
		}
		exampleFolder, err := resourcemanager.NewFolder(ctx, "example", &resourcemanager.FolderArgs{
			FolderName: pulumi.String(fmt.Sprintf("%v-%v", name, _default.Result)),
		})
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewControlPolicyAttachment(ctx, "example", &resourcemanager.ControlPolicyAttachmentArgs{
			PolicyId: example.ID(),
			TargetId: exampleFolder.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Control Policy Attachment can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/controlPolicyAttachment:ControlPolicyAttachment example <policy_id>:<target_id> ```

func GetControlPolicyAttachment

func GetControlPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ControlPolicyAttachmentState, opts ...pulumi.ResourceOption) (*ControlPolicyAttachment, error)

GetControlPolicyAttachment gets an existing ControlPolicyAttachment 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 NewControlPolicyAttachment

func NewControlPolicyAttachment(ctx *pulumi.Context,
	name string, args *ControlPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*ControlPolicyAttachment, error)

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

func (*ControlPolicyAttachment) ElementType

func (*ControlPolicyAttachment) ElementType() reflect.Type

func (*ControlPolicyAttachment) ToControlPolicyAttachmentOutput

func (i *ControlPolicyAttachment) ToControlPolicyAttachmentOutput() ControlPolicyAttachmentOutput

func (*ControlPolicyAttachment) ToControlPolicyAttachmentOutputWithContext

func (i *ControlPolicyAttachment) ToControlPolicyAttachmentOutputWithContext(ctx context.Context) ControlPolicyAttachmentOutput

type ControlPolicyAttachmentArgs

type ControlPolicyAttachmentArgs struct {
	// The ID of control policy.
	PolicyId pulumi.StringInput
	// The ID of target.
	TargetId pulumi.StringInput
}

The set of arguments for constructing a ControlPolicyAttachment resource.

func (ControlPolicyAttachmentArgs) ElementType

type ControlPolicyAttachmentArray

type ControlPolicyAttachmentArray []ControlPolicyAttachmentInput

func (ControlPolicyAttachmentArray) ElementType

func (ControlPolicyAttachmentArray) ToControlPolicyAttachmentArrayOutput

func (i ControlPolicyAttachmentArray) ToControlPolicyAttachmentArrayOutput() ControlPolicyAttachmentArrayOutput

func (ControlPolicyAttachmentArray) ToControlPolicyAttachmentArrayOutputWithContext

func (i ControlPolicyAttachmentArray) ToControlPolicyAttachmentArrayOutputWithContext(ctx context.Context) ControlPolicyAttachmentArrayOutput

type ControlPolicyAttachmentArrayInput

type ControlPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToControlPolicyAttachmentArrayOutput() ControlPolicyAttachmentArrayOutput
	ToControlPolicyAttachmentArrayOutputWithContext(context.Context) ControlPolicyAttachmentArrayOutput
}

ControlPolicyAttachmentArrayInput is an input type that accepts ControlPolicyAttachmentArray and ControlPolicyAttachmentArrayOutput values. You can construct a concrete instance of `ControlPolicyAttachmentArrayInput` via:

ControlPolicyAttachmentArray{ ControlPolicyAttachmentArgs{...} }

type ControlPolicyAttachmentArrayOutput

type ControlPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (ControlPolicyAttachmentArrayOutput) ElementType

func (ControlPolicyAttachmentArrayOutput) Index

func (ControlPolicyAttachmentArrayOutput) ToControlPolicyAttachmentArrayOutput

func (o ControlPolicyAttachmentArrayOutput) ToControlPolicyAttachmentArrayOutput() ControlPolicyAttachmentArrayOutput

func (ControlPolicyAttachmentArrayOutput) ToControlPolicyAttachmentArrayOutputWithContext

func (o ControlPolicyAttachmentArrayOutput) ToControlPolicyAttachmentArrayOutputWithContext(ctx context.Context) ControlPolicyAttachmentArrayOutput

type ControlPolicyAttachmentInput

type ControlPolicyAttachmentInput interface {
	pulumi.Input

	ToControlPolicyAttachmentOutput() ControlPolicyAttachmentOutput
	ToControlPolicyAttachmentOutputWithContext(ctx context.Context) ControlPolicyAttachmentOutput
}

type ControlPolicyAttachmentMap

type ControlPolicyAttachmentMap map[string]ControlPolicyAttachmentInput

func (ControlPolicyAttachmentMap) ElementType

func (ControlPolicyAttachmentMap) ElementType() reflect.Type

func (ControlPolicyAttachmentMap) ToControlPolicyAttachmentMapOutput

func (i ControlPolicyAttachmentMap) ToControlPolicyAttachmentMapOutput() ControlPolicyAttachmentMapOutput

func (ControlPolicyAttachmentMap) ToControlPolicyAttachmentMapOutputWithContext

func (i ControlPolicyAttachmentMap) ToControlPolicyAttachmentMapOutputWithContext(ctx context.Context) ControlPolicyAttachmentMapOutput

type ControlPolicyAttachmentMapInput

type ControlPolicyAttachmentMapInput interface {
	pulumi.Input

	ToControlPolicyAttachmentMapOutput() ControlPolicyAttachmentMapOutput
	ToControlPolicyAttachmentMapOutputWithContext(context.Context) ControlPolicyAttachmentMapOutput
}

ControlPolicyAttachmentMapInput is an input type that accepts ControlPolicyAttachmentMap and ControlPolicyAttachmentMapOutput values. You can construct a concrete instance of `ControlPolicyAttachmentMapInput` via:

ControlPolicyAttachmentMap{ "key": ControlPolicyAttachmentArgs{...} }

type ControlPolicyAttachmentMapOutput

type ControlPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (ControlPolicyAttachmentMapOutput) ElementType

func (ControlPolicyAttachmentMapOutput) MapIndex

func (ControlPolicyAttachmentMapOutput) ToControlPolicyAttachmentMapOutput

func (o ControlPolicyAttachmentMapOutput) ToControlPolicyAttachmentMapOutput() ControlPolicyAttachmentMapOutput

func (ControlPolicyAttachmentMapOutput) ToControlPolicyAttachmentMapOutputWithContext

func (o ControlPolicyAttachmentMapOutput) ToControlPolicyAttachmentMapOutputWithContext(ctx context.Context) ControlPolicyAttachmentMapOutput

type ControlPolicyAttachmentOutput

type ControlPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (ControlPolicyAttachmentOutput) ElementType

func (ControlPolicyAttachmentOutput) PolicyId added in v3.27.0

The ID of control policy.

func (ControlPolicyAttachmentOutput) TargetId added in v3.27.0

The ID of target.

func (ControlPolicyAttachmentOutput) ToControlPolicyAttachmentOutput

func (o ControlPolicyAttachmentOutput) ToControlPolicyAttachmentOutput() ControlPolicyAttachmentOutput

func (ControlPolicyAttachmentOutput) ToControlPolicyAttachmentOutputWithContext

func (o ControlPolicyAttachmentOutput) ToControlPolicyAttachmentOutputWithContext(ctx context.Context) ControlPolicyAttachmentOutput

type ControlPolicyAttachmentState

type ControlPolicyAttachmentState struct {
	// The ID of control policy.
	PolicyId pulumi.StringPtrInput
	// The ID of target.
	TargetId pulumi.StringPtrInput
}

func (ControlPolicyAttachmentState) ElementType

type ControlPolicyInput

type ControlPolicyInput interface {
	pulumi.Input

	ToControlPolicyOutput() ControlPolicyOutput
	ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput
}

type ControlPolicyMap

type ControlPolicyMap map[string]ControlPolicyInput

func (ControlPolicyMap) ElementType

func (ControlPolicyMap) ElementType() reflect.Type

func (ControlPolicyMap) ToControlPolicyMapOutput

func (i ControlPolicyMap) ToControlPolicyMapOutput() ControlPolicyMapOutput

func (ControlPolicyMap) ToControlPolicyMapOutputWithContext

func (i ControlPolicyMap) ToControlPolicyMapOutputWithContext(ctx context.Context) ControlPolicyMapOutput

type ControlPolicyMapInput

type ControlPolicyMapInput interface {
	pulumi.Input

	ToControlPolicyMapOutput() ControlPolicyMapOutput
	ToControlPolicyMapOutputWithContext(context.Context) ControlPolicyMapOutput
}

ControlPolicyMapInput is an input type that accepts ControlPolicyMap and ControlPolicyMapOutput values. You can construct a concrete instance of `ControlPolicyMapInput` via:

ControlPolicyMap{ "key": ControlPolicyArgs{...} }

type ControlPolicyMapOutput

type ControlPolicyMapOutput struct{ *pulumi.OutputState }

func (ControlPolicyMapOutput) ElementType

func (ControlPolicyMapOutput) ElementType() reflect.Type

func (ControlPolicyMapOutput) MapIndex

func (ControlPolicyMapOutput) ToControlPolicyMapOutput

func (o ControlPolicyMapOutput) ToControlPolicyMapOutput() ControlPolicyMapOutput

func (ControlPolicyMapOutput) ToControlPolicyMapOutputWithContext

func (o ControlPolicyMapOutput) ToControlPolicyMapOutputWithContext(ctx context.Context) ControlPolicyMapOutput

type ControlPolicyOutput

type ControlPolicyOutput struct{ *pulumi.OutputState }

func (ControlPolicyOutput) ControlPolicyName added in v3.27.0

func (o ControlPolicyOutput) ControlPolicyName() pulumi.StringOutput

The name of control policy.

func (ControlPolicyOutput) Description added in v3.27.0

func (o ControlPolicyOutput) Description() pulumi.StringPtrOutput

The description of control policy.

func (ControlPolicyOutput) EffectScope added in v3.27.0

func (o ControlPolicyOutput) EffectScope() pulumi.StringOutput

The effect scope. Valid values `RAM`.

func (ControlPolicyOutput) ElementType

func (ControlPolicyOutput) ElementType() reflect.Type

func (ControlPolicyOutput) PolicyDocument added in v3.27.0

func (o ControlPolicyOutput) PolicyDocument() pulumi.StringOutput

The policy document of control policy.

func (ControlPolicyOutput) ToControlPolicyOutput

func (o ControlPolicyOutput) ToControlPolicyOutput() ControlPolicyOutput

func (ControlPolicyOutput) ToControlPolicyOutputWithContext

func (o ControlPolicyOutput) ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput

type ControlPolicyState

type ControlPolicyState struct {
	// The name of control policy.
	ControlPolicyName pulumi.StringPtrInput
	// The description of control policy.
	Description pulumi.StringPtrInput
	// The effect scope. Valid values `RAM`.
	EffectScope pulumi.StringPtrInput
	// The policy document of control policy.
	PolicyDocument pulumi.StringPtrInput
}

func (ControlPolicyState) ElementType

func (ControlPolicyState) ElementType() reflect.Type

type DelegatedAdministrator added in v3.28.0

type DelegatedAdministrator struct {
	pulumi.CustomResourceState

	// The ID of the member account in the resource directory.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// The identification of the trusted service. **NOTE:** Only some trusted services support delegated administrator accounts. For more information, see [Supported trusted services](https://www.alibabacloud.com/help/en/resource-management/latest/manage-trusted-services-overview).
	ServicePrincipal pulumi.StringOutput `pulumi:"servicePrincipal"`
}

Provides a Resource Manager Delegated Administrator resource.

For information about Resource Manager Delegated Administrator and how to use it, see [What is Delegated Administrator](https://www.alibabacloud.com/help/en/resource-management/latest/registerdelegatedadministrator#doc-api-ResourceManager-RegisterDelegatedAdministrator).

> **NOTE:** Available since v1.181.0.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		displayName := "EAccount"
		if param := cfg.Get("displayName"); param != "" {
			displayName = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		example, err := resourcemanager.NewFolder(ctx, "example", &resourcemanager.FolderArgs{
			FolderName: pulumi.String(fmt.Sprintf("%v-%v", name, _default.Result)),
		})
		if err != nil {
			return err
		}
		exampleAccount, err := resourcemanager.NewAccount(ctx, "example", &resourcemanager.AccountArgs{
			DisplayName: pulumi.String(fmt.Sprintf("%v-%v", displayName, _default.Result)),
			FolderId:    example.ID(),
		})
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewDelegatedAdministrator(ctx, "example", &resourcemanager.DelegatedAdministratorArgs{
			AccountId:        exampleAccount.ID(),
			ServicePrincipal: pulumi.String("cloudfw.aliyuncs.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Delegated Administrator can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/delegatedAdministrator:DelegatedAdministrator example <account_id>:<service_principal> ```

func GetDelegatedAdministrator added in v3.28.0

func GetDelegatedAdministrator(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DelegatedAdministratorState, opts ...pulumi.ResourceOption) (*DelegatedAdministrator, error)

GetDelegatedAdministrator gets an existing DelegatedAdministrator 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 NewDelegatedAdministrator added in v3.28.0

func NewDelegatedAdministrator(ctx *pulumi.Context,
	name string, args *DelegatedAdministratorArgs, opts ...pulumi.ResourceOption) (*DelegatedAdministrator, error)

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

func (*DelegatedAdministrator) ElementType added in v3.28.0

func (*DelegatedAdministrator) ElementType() reflect.Type

func (*DelegatedAdministrator) ToDelegatedAdministratorOutput added in v3.28.0

func (i *DelegatedAdministrator) ToDelegatedAdministratorOutput() DelegatedAdministratorOutput

func (*DelegatedAdministrator) ToDelegatedAdministratorOutputWithContext added in v3.28.0

func (i *DelegatedAdministrator) ToDelegatedAdministratorOutputWithContext(ctx context.Context) DelegatedAdministratorOutput

type DelegatedAdministratorArgs added in v3.28.0

type DelegatedAdministratorArgs struct {
	// The ID of the member account in the resource directory.
	AccountId pulumi.StringInput
	// The identification of the trusted service. **NOTE:** Only some trusted services support delegated administrator accounts. For more information, see [Supported trusted services](https://www.alibabacloud.com/help/en/resource-management/latest/manage-trusted-services-overview).
	ServicePrincipal pulumi.StringInput
}

The set of arguments for constructing a DelegatedAdministrator resource.

func (DelegatedAdministratorArgs) ElementType added in v3.28.0

func (DelegatedAdministratorArgs) ElementType() reflect.Type

type DelegatedAdministratorArray added in v3.28.0

type DelegatedAdministratorArray []DelegatedAdministratorInput

func (DelegatedAdministratorArray) ElementType added in v3.28.0

func (DelegatedAdministratorArray) ToDelegatedAdministratorArrayOutput added in v3.28.0

func (i DelegatedAdministratorArray) ToDelegatedAdministratorArrayOutput() DelegatedAdministratorArrayOutput

func (DelegatedAdministratorArray) ToDelegatedAdministratorArrayOutputWithContext added in v3.28.0

func (i DelegatedAdministratorArray) ToDelegatedAdministratorArrayOutputWithContext(ctx context.Context) DelegatedAdministratorArrayOutput

type DelegatedAdministratorArrayInput added in v3.28.0

type DelegatedAdministratorArrayInput interface {
	pulumi.Input

	ToDelegatedAdministratorArrayOutput() DelegatedAdministratorArrayOutput
	ToDelegatedAdministratorArrayOutputWithContext(context.Context) DelegatedAdministratorArrayOutput
}

DelegatedAdministratorArrayInput is an input type that accepts DelegatedAdministratorArray and DelegatedAdministratorArrayOutput values. You can construct a concrete instance of `DelegatedAdministratorArrayInput` via:

DelegatedAdministratorArray{ DelegatedAdministratorArgs{...} }

type DelegatedAdministratorArrayOutput added in v3.28.0

type DelegatedAdministratorArrayOutput struct{ *pulumi.OutputState }

func (DelegatedAdministratorArrayOutput) ElementType added in v3.28.0

func (DelegatedAdministratorArrayOutput) Index added in v3.28.0

func (DelegatedAdministratorArrayOutput) ToDelegatedAdministratorArrayOutput added in v3.28.0

func (o DelegatedAdministratorArrayOutput) ToDelegatedAdministratorArrayOutput() DelegatedAdministratorArrayOutput

func (DelegatedAdministratorArrayOutput) ToDelegatedAdministratorArrayOutputWithContext added in v3.28.0

func (o DelegatedAdministratorArrayOutput) ToDelegatedAdministratorArrayOutputWithContext(ctx context.Context) DelegatedAdministratorArrayOutput

type DelegatedAdministratorInput added in v3.28.0

type DelegatedAdministratorInput interface {
	pulumi.Input

	ToDelegatedAdministratorOutput() DelegatedAdministratorOutput
	ToDelegatedAdministratorOutputWithContext(ctx context.Context) DelegatedAdministratorOutput
}

type DelegatedAdministratorMap added in v3.28.0

type DelegatedAdministratorMap map[string]DelegatedAdministratorInput

func (DelegatedAdministratorMap) ElementType added in v3.28.0

func (DelegatedAdministratorMap) ElementType() reflect.Type

func (DelegatedAdministratorMap) ToDelegatedAdministratorMapOutput added in v3.28.0

func (i DelegatedAdministratorMap) ToDelegatedAdministratorMapOutput() DelegatedAdministratorMapOutput

func (DelegatedAdministratorMap) ToDelegatedAdministratorMapOutputWithContext added in v3.28.0

func (i DelegatedAdministratorMap) ToDelegatedAdministratorMapOutputWithContext(ctx context.Context) DelegatedAdministratorMapOutput

type DelegatedAdministratorMapInput added in v3.28.0

type DelegatedAdministratorMapInput interface {
	pulumi.Input

	ToDelegatedAdministratorMapOutput() DelegatedAdministratorMapOutput
	ToDelegatedAdministratorMapOutputWithContext(context.Context) DelegatedAdministratorMapOutput
}

DelegatedAdministratorMapInput is an input type that accepts DelegatedAdministratorMap and DelegatedAdministratorMapOutput values. You can construct a concrete instance of `DelegatedAdministratorMapInput` via:

DelegatedAdministratorMap{ "key": DelegatedAdministratorArgs{...} }

type DelegatedAdministratorMapOutput added in v3.28.0

type DelegatedAdministratorMapOutput struct{ *pulumi.OutputState }

func (DelegatedAdministratorMapOutput) ElementType added in v3.28.0

func (DelegatedAdministratorMapOutput) MapIndex added in v3.28.0

func (DelegatedAdministratorMapOutput) ToDelegatedAdministratorMapOutput added in v3.28.0

func (o DelegatedAdministratorMapOutput) ToDelegatedAdministratorMapOutput() DelegatedAdministratorMapOutput

func (DelegatedAdministratorMapOutput) ToDelegatedAdministratorMapOutputWithContext added in v3.28.0

func (o DelegatedAdministratorMapOutput) ToDelegatedAdministratorMapOutputWithContext(ctx context.Context) DelegatedAdministratorMapOutput

type DelegatedAdministratorOutput added in v3.28.0

type DelegatedAdministratorOutput struct{ *pulumi.OutputState }

func (DelegatedAdministratorOutput) AccountId added in v3.28.0

The ID of the member account in the resource directory.

func (DelegatedAdministratorOutput) ElementType added in v3.28.0

func (DelegatedAdministratorOutput) ServicePrincipal added in v3.28.0

func (o DelegatedAdministratorOutput) ServicePrincipal() pulumi.StringOutput

The identification of the trusted service. **NOTE:** Only some trusted services support delegated administrator accounts. For more information, see [Supported trusted services](https://www.alibabacloud.com/help/en/resource-management/latest/manage-trusted-services-overview).

func (DelegatedAdministratorOutput) ToDelegatedAdministratorOutput added in v3.28.0

func (o DelegatedAdministratorOutput) ToDelegatedAdministratorOutput() DelegatedAdministratorOutput

func (DelegatedAdministratorOutput) ToDelegatedAdministratorOutputWithContext added in v3.28.0

func (o DelegatedAdministratorOutput) ToDelegatedAdministratorOutputWithContext(ctx context.Context) DelegatedAdministratorOutput

type DelegatedAdministratorState added in v3.28.0

type DelegatedAdministratorState struct {
	// The ID of the member account in the resource directory.
	AccountId pulumi.StringPtrInput
	// The identification of the trusted service. **NOTE:** Only some trusted services support delegated administrator accounts. For more information, see [Supported trusted services](https://www.alibabacloud.com/help/en/resource-management/latest/manage-trusted-services-overview).
	ServicePrincipal pulumi.StringPtrInput
}

func (DelegatedAdministratorState) ElementType added in v3.28.0

type Folder

type Folder struct {
	pulumi.CustomResourceState

	// The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).
	FolderName pulumi.StringOutput `pulumi:"folderName"`
	// The ID of the parent folder. If not set, the system default value will be used.
	ParentFolderId pulumi.StringOutput `pulumi:"parentFolderId"`
}

Provides a Resource Manager Folder resource. A folder is an organizational unit in a resource directory. You can use folders to build an organizational structure for resources. For information about Resource Manager Foler and how to use it, see [What is Resource Manager Folder](https://www.alibabacloud.com/help/en/doc-detail/111221.htm).

> **NOTE:** Available since v1.82.0.

> **NOTE:** A maximum of five levels of folders can be created under the root folder.

## Example Usage

Basic Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Min: 10000,
			Max: 99999,
		})
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewFolder(ctx, "example", &resourcemanager.FolderArgs{
			FolderName: pulumi.String(fmt.Sprintf("%v-%v", name, _default.Result)),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Folder can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/folder:Folder example fd-u8B321**** ```

func GetFolder

func GetFolder(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FolderState, opts ...pulumi.ResourceOption) (*Folder, error)

GetFolder gets an existing Folder 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 NewFolder

func NewFolder(ctx *pulumi.Context,
	name string, args *FolderArgs, opts ...pulumi.ResourceOption) (*Folder, error)

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

func (*Folder) ElementType

func (*Folder) ElementType() reflect.Type

func (*Folder) ToFolderOutput

func (i *Folder) ToFolderOutput() FolderOutput

func (*Folder) ToFolderOutputWithContext

func (i *Folder) ToFolderOutputWithContext(ctx context.Context) FolderOutput

type FolderArgs

type FolderArgs struct {
	// The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).
	FolderName pulumi.StringInput
	// The ID of the parent folder. If not set, the system default value will be used.
	ParentFolderId pulumi.StringPtrInput
}

The set of arguments for constructing a Folder resource.

func (FolderArgs) ElementType

func (FolderArgs) ElementType() reflect.Type

type FolderArray

type FolderArray []FolderInput

func (FolderArray) ElementType

func (FolderArray) ElementType() reflect.Type

func (FolderArray) ToFolderArrayOutput

func (i FolderArray) ToFolderArrayOutput() FolderArrayOutput

func (FolderArray) ToFolderArrayOutputWithContext

func (i FolderArray) ToFolderArrayOutputWithContext(ctx context.Context) FolderArrayOutput

type FolderArrayInput

type FolderArrayInput interface {
	pulumi.Input

	ToFolderArrayOutput() FolderArrayOutput
	ToFolderArrayOutputWithContext(context.Context) FolderArrayOutput
}

FolderArrayInput is an input type that accepts FolderArray and FolderArrayOutput values. You can construct a concrete instance of `FolderArrayInput` via:

FolderArray{ FolderArgs{...} }

type FolderArrayOutput

type FolderArrayOutput struct{ *pulumi.OutputState }

func (FolderArrayOutput) ElementType

func (FolderArrayOutput) ElementType() reflect.Type

func (FolderArrayOutput) Index

func (FolderArrayOutput) ToFolderArrayOutput

func (o FolderArrayOutput) ToFolderArrayOutput() FolderArrayOutput

func (FolderArrayOutput) ToFolderArrayOutputWithContext

func (o FolderArrayOutput) ToFolderArrayOutputWithContext(ctx context.Context) FolderArrayOutput

type FolderInput

type FolderInput interface {
	pulumi.Input

	ToFolderOutput() FolderOutput
	ToFolderOutputWithContext(ctx context.Context) FolderOutput
}

type FolderMap

type FolderMap map[string]FolderInput

func (FolderMap) ElementType

func (FolderMap) ElementType() reflect.Type

func (FolderMap) ToFolderMapOutput

func (i FolderMap) ToFolderMapOutput() FolderMapOutput

func (FolderMap) ToFolderMapOutputWithContext

func (i FolderMap) ToFolderMapOutputWithContext(ctx context.Context) FolderMapOutput

type FolderMapInput

type FolderMapInput interface {
	pulumi.Input

	ToFolderMapOutput() FolderMapOutput
	ToFolderMapOutputWithContext(context.Context) FolderMapOutput
}

FolderMapInput is an input type that accepts FolderMap and FolderMapOutput values. You can construct a concrete instance of `FolderMapInput` via:

FolderMap{ "key": FolderArgs{...} }

type FolderMapOutput

type FolderMapOutput struct{ *pulumi.OutputState }

func (FolderMapOutput) ElementType

func (FolderMapOutput) ElementType() reflect.Type

func (FolderMapOutput) MapIndex

func (FolderMapOutput) ToFolderMapOutput

func (o FolderMapOutput) ToFolderMapOutput() FolderMapOutput

func (FolderMapOutput) ToFolderMapOutputWithContext

func (o FolderMapOutput) ToFolderMapOutputWithContext(ctx context.Context) FolderMapOutput

type FolderOutput

type FolderOutput struct{ *pulumi.OutputState }

func (FolderOutput) ElementType

func (FolderOutput) ElementType() reflect.Type

func (FolderOutput) FolderName added in v3.27.0

func (o FolderOutput) FolderName() pulumi.StringOutput

The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).

func (FolderOutput) ParentFolderId added in v3.27.0

func (o FolderOutput) ParentFolderId() pulumi.StringOutput

The ID of the parent folder. If not set, the system default value will be used.

func (FolderOutput) ToFolderOutput

func (o FolderOutput) ToFolderOutput() FolderOutput

func (FolderOutput) ToFolderOutputWithContext

func (o FolderOutput) ToFolderOutputWithContext(ctx context.Context) FolderOutput

type FolderState

type FolderState struct {
	// The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).
	FolderName pulumi.StringPtrInput
	// The ID of the parent folder. If not set, the system default value will be used.
	ParentFolderId pulumi.StringPtrInput
}

func (FolderState) ElementType

func (FolderState) ElementType() reflect.Type

type GetAccountDeletionCheckTaskAbandonAbleCheck added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheck struct {
	// The ID of the check item.
	CheckId string `pulumi:"checkId"`
	// The name of the cloud service to which the check item belongs.
	CheckName string `pulumi:"checkName"`
	// The description of the check item.
	Description string `pulumi:"description"`
}

type GetAccountDeletionCheckTaskAbandonAbleCheckArgs added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckArgs struct {
	// The ID of the check item.
	CheckId pulumi.StringInput `pulumi:"checkId"`
	// The name of the cloud service to which the check item belongs.
	CheckName pulumi.StringInput `pulumi:"checkName"`
	// The description of the check item.
	Description pulumi.StringInput `pulumi:"description"`
}

func (GetAccountDeletionCheckTaskAbandonAbleCheckArgs) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckArgs) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutput added in v3.29.0

func (i GetAccountDeletionCheckTaskAbandonAbleCheckArgs) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutput() GetAccountDeletionCheckTaskAbandonAbleCheckOutput

func (GetAccountDeletionCheckTaskAbandonAbleCheckArgs) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutputWithContext added in v3.29.0

func (i GetAccountDeletionCheckTaskAbandonAbleCheckArgs) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckOutput

type GetAccountDeletionCheckTaskAbandonAbleCheckArray added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckArray []GetAccountDeletionCheckTaskAbandonAbleCheckInput

func (GetAccountDeletionCheckTaskAbandonAbleCheckArray) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckArray) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput added in v3.29.0

func (i GetAccountDeletionCheckTaskAbandonAbleCheckArray) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput() GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput

func (GetAccountDeletionCheckTaskAbandonAbleCheckArray) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutputWithContext added in v3.29.0

func (i GetAccountDeletionCheckTaskAbandonAbleCheckArray) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput

type GetAccountDeletionCheckTaskAbandonAbleCheckArrayInput added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckArrayInput interface {
	pulumi.Input

	ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput() GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput
	ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutputWithContext(context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput
}

GetAccountDeletionCheckTaskAbandonAbleCheckArrayInput is an input type that accepts GetAccountDeletionCheckTaskAbandonAbleCheckArray and GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput values. You can construct a concrete instance of `GetAccountDeletionCheckTaskAbandonAbleCheckArrayInput` via:

GetAccountDeletionCheckTaskAbandonAbleCheckArray{ GetAccountDeletionCheckTaskAbandonAbleCheckArgs{...} }

type GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput struct{ *pulumi.OutputState }

func (GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput) Index added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutputWithContext added in v3.29.0

func (o GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckArrayOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckArrayOutput

type GetAccountDeletionCheckTaskAbandonAbleCheckInput added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckInput interface {
	pulumi.Input

	ToGetAccountDeletionCheckTaskAbandonAbleCheckOutput() GetAccountDeletionCheckTaskAbandonAbleCheckOutput
	ToGetAccountDeletionCheckTaskAbandonAbleCheckOutputWithContext(context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckOutput
}

GetAccountDeletionCheckTaskAbandonAbleCheckInput is an input type that accepts GetAccountDeletionCheckTaskAbandonAbleCheckArgs and GetAccountDeletionCheckTaskAbandonAbleCheckOutput values. You can construct a concrete instance of `GetAccountDeletionCheckTaskAbandonAbleCheckInput` via:

GetAccountDeletionCheckTaskAbandonAbleCheckArgs{...}

type GetAccountDeletionCheckTaskAbandonAbleCheckOutput added in v3.29.0

type GetAccountDeletionCheckTaskAbandonAbleCheckOutput struct{ *pulumi.OutputState }

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) CheckId added in v3.29.0

The ID of the check item.

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) CheckName added in v3.29.0

The name of the cloud service to which the check item belongs.

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) Description added in v3.29.0

The description of the check item.

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutput added in v3.29.0

func (o GetAccountDeletionCheckTaskAbandonAbleCheckOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutput() GetAccountDeletionCheckTaskAbandonAbleCheckOutput

func (GetAccountDeletionCheckTaskAbandonAbleCheckOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutputWithContext added in v3.29.0

func (o GetAccountDeletionCheckTaskAbandonAbleCheckOutput) ToGetAccountDeletionCheckTaskAbandonAbleCheckOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskAbandonAbleCheckOutput

type GetAccountDeletionCheckTaskArgs added in v3.29.0

type GetAccountDeletionCheckTaskArgs struct {
	// The ID of the member that you want to delete.
	AccountId string `pulumi:"accountId"`
}

A collection of arguments for invoking getAccountDeletionCheckTask.

type GetAccountDeletionCheckTaskNotAllowReason added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReason struct {
	// The ID of the check item.
	CheckId string `pulumi:"checkId"`
	// The name of the cloud service to which the check item belongs.
	CheckName string `pulumi:"checkName"`
	// The description of the check item.
	Description string `pulumi:"description"`
}

type GetAccountDeletionCheckTaskNotAllowReasonArgs added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonArgs struct {
	// The ID of the check item.
	CheckId pulumi.StringInput `pulumi:"checkId"`
	// The name of the cloud service to which the check item belongs.
	CheckName pulumi.StringInput `pulumi:"checkName"`
	// The description of the check item.
	Description pulumi.StringInput `pulumi:"description"`
}

func (GetAccountDeletionCheckTaskNotAllowReasonArgs) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonArgs) ToGetAccountDeletionCheckTaskNotAllowReasonOutput added in v3.29.0

func (i GetAccountDeletionCheckTaskNotAllowReasonArgs) ToGetAccountDeletionCheckTaskNotAllowReasonOutput() GetAccountDeletionCheckTaskNotAllowReasonOutput

func (GetAccountDeletionCheckTaskNotAllowReasonArgs) ToGetAccountDeletionCheckTaskNotAllowReasonOutputWithContext added in v3.29.0

func (i GetAccountDeletionCheckTaskNotAllowReasonArgs) ToGetAccountDeletionCheckTaskNotAllowReasonOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskNotAllowReasonOutput

type GetAccountDeletionCheckTaskNotAllowReasonArray added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonArray []GetAccountDeletionCheckTaskNotAllowReasonInput

func (GetAccountDeletionCheckTaskNotAllowReasonArray) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonArray) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutput added in v3.29.0

func (i GetAccountDeletionCheckTaskNotAllowReasonArray) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutput() GetAccountDeletionCheckTaskNotAllowReasonArrayOutput

func (GetAccountDeletionCheckTaskNotAllowReasonArray) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutputWithContext added in v3.29.0

func (i GetAccountDeletionCheckTaskNotAllowReasonArray) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskNotAllowReasonArrayOutput

type GetAccountDeletionCheckTaskNotAllowReasonArrayInput added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonArrayInput interface {
	pulumi.Input

	ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutput() GetAccountDeletionCheckTaskNotAllowReasonArrayOutput
	ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutputWithContext(context.Context) GetAccountDeletionCheckTaskNotAllowReasonArrayOutput
}

GetAccountDeletionCheckTaskNotAllowReasonArrayInput is an input type that accepts GetAccountDeletionCheckTaskNotAllowReasonArray and GetAccountDeletionCheckTaskNotAllowReasonArrayOutput values. You can construct a concrete instance of `GetAccountDeletionCheckTaskNotAllowReasonArrayInput` via:

GetAccountDeletionCheckTaskNotAllowReasonArray{ GetAccountDeletionCheckTaskNotAllowReasonArgs{...} }

type GetAccountDeletionCheckTaskNotAllowReasonArrayOutput added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonArrayOutput struct{ *pulumi.OutputState }

func (GetAccountDeletionCheckTaskNotAllowReasonArrayOutput) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonArrayOutput) Index added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonArrayOutput) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutput added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonArrayOutput) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutputWithContext added in v3.29.0

func (o GetAccountDeletionCheckTaskNotAllowReasonArrayOutput) ToGetAccountDeletionCheckTaskNotAllowReasonArrayOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskNotAllowReasonArrayOutput

type GetAccountDeletionCheckTaskNotAllowReasonInput added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonInput interface {
	pulumi.Input

	ToGetAccountDeletionCheckTaskNotAllowReasonOutput() GetAccountDeletionCheckTaskNotAllowReasonOutput
	ToGetAccountDeletionCheckTaskNotAllowReasonOutputWithContext(context.Context) GetAccountDeletionCheckTaskNotAllowReasonOutput
}

GetAccountDeletionCheckTaskNotAllowReasonInput is an input type that accepts GetAccountDeletionCheckTaskNotAllowReasonArgs and GetAccountDeletionCheckTaskNotAllowReasonOutput values. You can construct a concrete instance of `GetAccountDeletionCheckTaskNotAllowReasonInput` via:

GetAccountDeletionCheckTaskNotAllowReasonArgs{...}

type GetAccountDeletionCheckTaskNotAllowReasonOutput added in v3.29.0

type GetAccountDeletionCheckTaskNotAllowReasonOutput struct{ *pulumi.OutputState }

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) CheckId added in v3.29.0

The ID of the check item.

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) CheckName added in v3.29.0

The name of the cloud service to which the check item belongs.

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) Description added in v3.29.0

The description of the check item.

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) ToGetAccountDeletionCheckTaskNotAllowReasonOutput added in v3.29.0

func (o GetAccountDeletionCheckTaskNotAllowReasonOutput) ToGetAccountDeletionCheckTaskNotAllowReasonOutput() GetAccountDeletionCheckTaskNotAllowReasonOutput

func (GetAccountDeletionCheckTaskNotAllowReasonOutput) ToGetAccountDeletionCheckTaskNotAllowReasonOutputWithContext added in v3.29.0

func (o GetAccountDeletionCheckTaskNotAllowReasonOutput) ToGetAccountDeletionCheckTaskNotAllowReasonOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskNotAllowReasonOutput

type GetAccountDeletionCheckTaskOutputArgs added in v3.29.0

type GetAccountDeletionCheckTaskOutputArgs struct {
	// The ID of the member that you want to delete.
	AccountId pulumi.StringInput `pulumi:"accountId"`
}

A collection of arguments for invoking getAccountDeletionCheckTask.

func (GetAccountDeletionCheckTaskOutputArgs) ElementType added in v3.29.0

type GetAccountDeletionCheckTaskResult added in v3.29.0

type GetAccountDeletionCheckTaskResult struct {
	// The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
	AbandonAbleChecks []GetAccountDeletionCheckTaskAbandonAbleCheck `pulumi:"abandonAbleChecks"`
	AccountId         string                                        `pulumi:"accountId"`
	// Indicates whether the member can be deleted.
	AllowDelete bool `pulumi:"allowDelete"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The reasons why the member cannot be deleted. Each element contains the following attributes:
	NotAllowReasons []GetAccountDeletionCheckTaskNotAllowReason `pulumi:"notAllowReasons"`
	// The status of the check.
	Status string `pulumi:"status"`
}

A collection of values returned by getAccountDeletionCheckTask.

func GetAccountDeletionCheckTask added in v3.29.0

func GetAccountDeletionCheckTask(ctx *pulumi.Context, args *GetAccountDeletionCheckTaskArgs, opts ...pulumi.InvokeOption) (*GetAccountDeletionCheckTaskResult, error)

Using this data source can open Resource Manager Account Deletion Check Task.

For information about Resource Manager Account Deletion Check Task and how to use it, see [What is Resource Manager Account Deletion Check Task](https://www.alibabacloud.com/help/en/resource-management/latest/check-account-delete).

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

> **NOTE:** The member deletion feature is in invitational preview. You can contact the service manager of Alibaba Cloud to apply for a trial.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		task, err := resourcemanager.GetAccountDeletionCheckTask(ctx, &resourcemanager.GetAccountDeletionCheckTaskArgs{
			AccountId: "your_account_id",
		}, nil)
		if err != nil {
			return err
		}
		var splat0 []*string
		for _, val0 := range task.AbandonAbleChecks {
			splat0 = append(splat0, val0.CheckId)
		}
		ctx.Export("abandonAbleChecksIds", splat0)
		return nil
	})
}

```

type GetAccountDeletionCheckTaskResultOutput added in v3.29.0

type GetAccountDeletionCheckTaskResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccountDeletionCheckTask.

func (GetAccountDeletionCheckTaskResultOutput) AbandonAbleChecks added in v3.29.0

The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:

func (GetAccountDeletionCheckTaskResultOutput) AccountId added in v3.29.0

func (GetAccountDeletionCheckTaskResultOutput) AllowDelete added in v3.29.0

Indicates whether the member can be deleted.

func (GetAccountDeletionCheckTaskResultOutput) ElementType added in v3.29.0

func (GetAccountDeletionCheckTaskResultOutput) Id added in v3.29.0

The provider-assigned unique ID for this managed resource.

func (GetAccountDeletionCheckTaskResultOutput) NotAllowReasons added in v3.29.0

The reasons why the member cannot be deleted. Each element contains the following attributes:

func (GetAccountDeletionCheckTaskResultOutput) Status added in v3.29.0

The status of the check.

func (GetAccountDeletionCheckTaskResultOutput) ToGetAccountDeletionCheckTaskResultOutput added in v3.29.0

func (o GetAccountDeletionCheckTaskResultOutput) ToGetAccountDeletionCheckTaskResultOutput() GetAccountDeletionCheckTaskResultOutput

func (GetAccountDeletionCheckTaskResultOutput) ToGetAccountDeletionCheckTaskResultOutputWithContext added in v3.29.0

func (o GetAccountDeletionCheckTaskResultOutput) ToGetAccountDeletionCheckTaskResultOutputWithContext(ctx context.Context) GetAccountDeletionCheckTaskResultOutput

type GetAccountsAccount

type GetAccountsAccount struct {
	// The ID of the account.
	AccountId string `pulumi:"accountId"`
	// (Available in v1.125.0+) The Alibaba Cloud account name of the member account.
	AccountName string `pulumi:"accountName"`
	// The name of the member account.
	DisplayName string `pulumi:"displayName"`
	// The ID of the folder.
	FolderId string `pulumi:"folderId"`
	// The ID of the resource.
	Id string `pulumi:"id"`
	// The way in which the member account joined the resource directory.
	JoinMethod string `pulumi:"joinMethod"`
	// The time when the member account joined the resource directory.
	JoinTime string `pulumi:"joinTime"`
	// The time when the member account was modified.
	ModifyTime string `pulumi:"modifyTime"`
	// (Available in v1.124.3+) Settlement account ID. If the value is empty, the current account will be used for settlement.
	PayerAccountId string `pulumi:"payerAccountId"`
	// The ID of the resource directory.
	ResourceDirectoryId string `pulumi:"resourceDirectoryId"`
	// The status of account, valid values: `CreateCancelled`, `CreateExpired`, `CreateFailed`, `CreateSuccess`, `CreateVerifying`, `InviteSuccess`, `PromoteCancelled`, `PromoteExpired`, `PromoteFailed`, `PromoteSuccess`, and `PromoteVerifying`.
	Status string `pulumi:"status"`
	// The type of the member account.
	Type string `pulumi:"type"`
}

type GetAccountsAccountArgs

type GetAccountsAccountArgs struct {
	// The ID of the account.
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// (Available in v1.125.0+) The Alibaba Cloud account name of the member account.
	AccountName pulumi.StringInput `pulumi:"accountName"`
	// The name of the member account.
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// The ID of the folder.
	FolderId pulumi.StringInput `pulumi:"folderId"`
	// The ID of the resource.
	Id pulumi.StringInput `pulumi:"id"`
	// The way in which the member account joined the resource directory.
	JoinMethod pulumi.StringInput `pulumi:"joinMethod"`
	// The time when the member account joined the resource directory.
	JoinTime pulumi.StringInput `pulumi:"joinTime"`
	// The time when the member account was modified.
	ModifyTime pulumi.StringInput `pulumi:"modifyTime"`
	// (Available in v1.124.3+) Settlement account ID. If the value is empty, the current account will be used for settlement.
	PayerAccountId pulumi.StringInput `pulumi:"payerAccountId"`
	// The ID of the resource directory.
	ResourceDirectoryId pulumi.StringInput `pulumi:"resourceDirectoryId"`
	// The status of account, valid values: `CreateCancelled`, `CreateExpired`, `CreateFailed`, `CreateSuccess`, `CreateVerifying`, `InviteSuccess`, `PromoteCancelled`, `PromoteExpired`, `PromoteFailed`, `PromoteSuccess`, and `PromoteVerifying`.
	Status pulumi.StringInput `pulumi:"status"`
	// The type of the member account.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetAccountsAccountArgs) ElementType

func (GetAccountsAccountArgs) ElementType() reflect.Type

func (GetAccountsAccountArgs) ToGetAccountsAccountOutput

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext

func (i GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

type GetAccountsAccountArray

type GetAccountsAccountArray []GetAccountsAccountInput

func (GetAccountsAccountArray) ElementType

func (GetAccountsAccountArray) ElementType() reflect.Type

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutput

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext

func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountArrayInput

type GetAccountsAccountArrayInput interface {
	pulumi.Input

	ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
	ToGetAccountsAccountArrayOutputWithContext(context.Context) GetAccountsAccountArrayOutput
}

GetAccountsAccountArrayInput is an input type that accepts GetAccountsAccountArray and GetAccountsAccountArrayOutput values. You can construct a concrete instance of `GetAccountsAccountArrayInput` via:

GetAccountsAccountArray{ GetAccountsAccountArgs{...} }

type GetAccountsAccountArrayOutput

type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountArrayOutput) ElementType

func (GetAccountsAccountArrayOutput) Index

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput

func (GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext

func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput

type GetAccountsAccountInput

type GetAccountsAccountInput interface {
	pulumi.Input

	ToGetAccountsAccountOutput() GetAccountsAccountOutput
	ToGetAccountsAccountOutputWithContext(context.Context) GetAccountsAccountOutput
}

GetAccountsAccountInput is an input type that accepts GetAccountsAccountArgs and GetAccountsAccountOutput values. You can construct a concrete instance of `GetAccountsAccountInput` via:

GetAccountsAccountArgs{...}

type GetAccountsAccountOutput

type GetAccountsAccountOutput struct{ *pulumi.OutputState }

func (GetAccountsAccountOutput) AccountId

The ID of the account.

func (GetAccountsAccountOutput) AccountName added in v3.3.0

(Available in v1.125.0+) The Alibaba Cloud account name of the member account.

func (GetAccountsAccountOutput) DisplayName

The name of the member account.

func (GetAccountsAccountOutput) ElementType

func (GetAccountsAccountOutput) ElementType() reflect.Type

func (GetAccountsAccountOutput) FolderId

The ID of the folder.

func (GetAccountsAccountOutput) Id

The ID of the resource.

func (GetAccountsAccountOutput) JoinMethod

The way in which the member account joined the resource directory.

func (GetAccountsAccountOutput) JoinTime

The time when the member account joined the resource directory.

func (GetAccountsAccountOutput) ModifyTime

The time when the member account was modified.

func (GetAccountsAccountOutput) PayerAccountId added in v3.3.0

func (o GetAccountsAccountOutput) PayerAccountId() pulumi.StringOutput

(Available in v1.124.3+) Settlement account ID. If the value is empty, the current account will be used for settlement.

func (GetAccountsAccountOutput) ResourceDirectoryId

func (o GetAccountsAccountOutput) ResourceDirectoryId() pulumi.StringOutput

The ID of the resource directory.

func (GetAccountsAccountOutput) Status

The status of account, valid values: `CreateCancelled`, `CreateExpired`, `CreateFailed`, `CreateSuccess`, `CreateVerifying`, `InviteSuccess`, `PromoteCancelled`, `PromoteExpired`, `PromoteFailed`, `PromoteSuccess`, and `PromoteVerifying`.

func (GetAccountsAccountOutput) ToGetAccountsAccountOutput

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput

func (GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext

func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput

func (GetAccountsAccountOutput) Type

The type of the member account.

type GetAccountsArgs

type GetAccountsArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of account IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of account, valid values: `CreateCancelled`, `CreateExpired`, `CreateFailed`, `CreateSuccess`, `CreateVerifying`, `InviteSuccess`, `PromoteCancelled`, `PromoteExpired`, `PromoteFailed`, `PromoteSuccess`, and `PromoteVerifying`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getAccounts.

type GetAccountsOutputArgs added in v3.9.0

type GetAccountsOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of account IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of account, valid values: `CreateCancelled`, `CreateExpired`, `CreateFailed`, `CreateSuccess`, `CreateVerifying`, `InviteSuccess`, `PromoteCancelled`, `PromoteExpired`, `PromoteFailed`, `PromoteSuccess`, and `PromoteVerifying`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getAccounts.

func (GetAccountsOutputArgs) ElementType added in v3.9.0

func (GetAccountsOutputArgs) ElementType() reflect.Type

type GetAccountsResult

type GetAccountsResult struct {
	// A list of accounts. Each element contains the following attributes:
	Accounts      []GetAccountsAccount `pulumi:"accounts"`
	EnableDetails *bool                `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of account IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the member account.
	Status *string `pulumi:"status"`
}

A collection of values returned by getAccounts.

func GetAccounts

func GetAccounts(ctx *pulumi.Context, args *GetAccountsArgs, opts ...pulumi.InvokeOption) (*GetAccountsResult, error)

This data source provides the Resource Manager Accounts of the current Alibaba Cloud user.

> **NOTE:** Available in 1.86.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := resourcemanager.GetAccounts(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstAccountId", _default.Accounts[0].Id)
		return nil
	})
}

```

type GetAccountsResultOutput added in v3.9.0

type GetAccountsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAccounts.

func GetAccountsOutput added in v3.9.0

func GetAccountsOutput(ctx *pulumi.Context, args GetAccountsOutputArgs, opts ...pulumi.InvokeOption) GetAccountsResultOutput

func (GetAccountsResultOutput) Accounts added in v3.9.0

A list of accounts. Each element contains the following attributes:

func (GetAccountsResultOutput) ElementType added in v3.9.0

func (GetAccountsResultOutput) ElementType() reflect.Type

func (GetAccountsResultOutput) EnableDetails added in v3.9.0

func (o GetAccountsResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetAccountsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetAccountsResultOutput) Ids added in v3.9.0

A list of account IDs.

func (GetAccountsResultOutput) OutputFile added in v3.9.0

func (GetAccountsResultOutput) Status added in v3.9.0

The status of the member account.

func (GetAccountsResultOutput) ToGetAccountsResultOutput added in v3.9.0

func (o GetAccountsResultOutput) ToGetAccountsResultOutput() GetAccountsResultOutput

func (GetAccountsResultOutput) ToGetAccountsResultOutputWithContext added in v3.9.0

func (o GetAccountsResultOutput) ToGetAccountsResultOutputWithContext(ctx context.Context) GetAccountsResultOutput

type GetControlPoliciesArgs

type GetControlPoliciesArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Control Policy IDs.
	Ids []string `pulumi:"ids"`
	// The language. Valid value `zh-CN`, `en`, and `ja`. Default value `zh-CN`.
	Language *string `pulumi:"language"`
	// A regex string to filter results by Control Policy name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The type of policy.
	PolicyType *string `pulumi:"policyType"`
}

A collection of arguments for invoking getControlPolicies.

type GetControlPoliciesOutputArgs added in v3.9.0

type GetControlPoliciesOutputArgs struct {
	// Default to `false`. Set it to `true` can output more details about resource attributes.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Control Policy IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// The language. Valid value `zh-CN`, `en`, and `ja`. Default value `zh-CN`.
	Language pulumi.StringPtrInput `pulumi:"language"`
	// A regex string to filter results by Control Policy name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The type of policy.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
}

A collection of arguments for invoking getControlPolicies.

func (GetControlPoliciesOutputArgs) ElementType added in v3.9.0

type GetControlPoliciesPolicy

type GetControlPoliciesPolicy struct {
	// The count of policy attachment.
	AttachmentCount int `pulumi:"attachmentCount"`
	// The name of policy.
	ControlPolicyName string `pulumi:"controlPolicyName"`
	// The description of policy.
	Description string `pulumi:"description"`
	// The effect scope.
	EffectScope string `pulumi:"effectScope"`
	// The ID of the Control Policy.
	Id string `pulumi:"id"`
	// The policy document.
	PolicyDocument string `pulumi:"policyDocument"`
	// The ID of policy.
	PolicyId string `pulumi:"policyId"`
	// The type of policy.
	PolicyType string `pulumi:"policyType"`
}

type GetControlPoliciesPolicyArgs

type GetControlPoliciesPolicyArgs struct {
	// The count of policy attachment.
	AttachmentCount pulumi.IntInput `pulumi:"attachmentCount"`
	// The name of policy.
	ControlPolicyName pulumi.StringInput `pulumi:"controlPolicyName"`
	// The description of policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The effect scope.
	EffectScope pulumi.StringInput `pulumi:"effectScope"`
	// The ID of the Control Policy.
	Id pulumi.StringInput `pulumi:"id"`
	// The policy document.
	PolicyDocument pulumi.StringInput `pulumi:"policyDocument"`
	// The ID of policy.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// The type of policy.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

func (GetControlPoliciesPolicyArgs) ElementType

func (GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutput

func (i GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput

func (GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutputWithContext

func (i GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutputWithContext(ctx context.Context) GetControlPoliciesPolicyOutput

type GetControlPoliciesPolicyArray

type GetControlPoliciesPolicyArray []GetControlPoliciesPolicyInput

func (GetControlPoliciesPolicyArray) ElementType

func (GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutput

func (i GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput

func (GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutputWithContext

func (i GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyArrayInput

type GetControlPoliciesPolicyArrayInput interface {
	pulumi.Input

	ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput
	ToGetControlPoliciesPolicyArrayOutputWithContext(context.Context) GetControlPoliciesPolicyArrayOutput
}

GetControlPoliciesPolicyArrayInput is an input type that accepts GetControlPoliciesPolicyArray and GetControlPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetControlPoliciesPolicyArrayInput` via:

GetControlPoliciesPolicyArray{ GetControlPoliciesPolicyArgs{...} }

type GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetControlPoliciesPolicyArrayOutput) ElementType

func (GetControlPoliciesPolicyArrayOutput) Index

func (GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutput

func (o GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput

func (GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutputWithContext

func (o GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyInput

type GetControlPoliciesPolicyInput interface {
	pulumi.Input

	ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput
	ToGetControlPoliciesPolicyOutputWithContext(context.Context) GetControlPoliciesPolicyOutput
}

GetControlPoliciesPolicyInput is an input type that accepts GetControlPoliciesPolicyArgs and GetControlPoliciesPolicyOutput values. You can construct a concrete instance of `GetControlPoliciesPolicyInput` via:

GetControlPoliciesPolicyArgs{...}

type GetControlPoliciesPolicyOutput

type GetControlPoliciesPolicyOutput struct{ *pulumi.OutputState }

func (GetControlPoliciesPolicyOutput) AttachmentCount

func (o GetControlPoliciesPolicyOutput) AttachmentCount() pulumi.IntOutput

The count of policy attachment.

func (GetControlPoliciesPolicyOutput) ControlPolicyName

func (o GetControlPoliciesPolicyOutput) ControlPolicyName() pulumi.StringOutput

The name of policy.

func (GetControlPoliciesPolicyOutput) Description

The description of policy.

func (GetControlPoliciesPolicyOutput) EffectScope

The effect scope.

func (GetControlPoliciesPolicyOutput) ElementType

func (GetControlPoliciesPolicyOutput) Id

The ID of the Control Policy.

func (GetControlPoliciesPolicyOutput) PolicyDocument

The policy document.

func (GetControlPoliciesPolicyOutput) PolicyId

The ID of policy.

func (GetControlPoliciesPolicyOutput) PolicyType

The type of policy.

func (GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutput

func (o GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput

func (GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutputWithContext

func (o GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutputWithContext(ctx context.Context) GetControlPoliciesPolicyOutput

type GetControlPoliciesResult

type GetControlPoliciesResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	Language   *string                    `pulumi:"language"`
	NameRegex  *string                    `pulumi:"nameRegex"`
	Names      []string                   `pulumi:"names"`
	OutputFile *string                    `pulumi:"outputFile"`
	Policies   []GetControlPoliciesPolicy `pulumi:"policies"`
	PolicyType *string                    `pulumi:"policyType"`
}

A collection of values returned by getControlPolicies.

func GetControlPolicies

func GetControlPolicies(ctx *pulumi.Context, args *GetControlPoliciesArgs, opts ...pulumi.InvokeOption) (*GetControlPoliciesResult, error)

This data source provides the Resource Manager Control Policies of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetControlPolicies(ctx, &resourcemanager.GetControlPoliciesArgs{
			Ids: []string{
				"example_value",
			},
			NameRegex: pulumi.StringRef("the_resource_name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstResourceManagerControlPolicyId", example.Policies[0].Id)
		return nil
	})
}

```

type GetControlPoliciesResultOutput added in v3.9.0

type GetControlPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getControlPolicies.

func GetControlPoliciesOutput added in v3.9.0

func (GetControlPoliciesResultOutput) ElementType added in v3.9.0

func (GetControlPoliciesResultOutput) EnableDetails added in v3.9.0

func (GetControlPoliciesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetControlPoliciesResultOutput) Ids added in v3.9.0

func (GetControlPoliciesResultOutput) Language added in v3.9.0

func (GetControlPoliciesResultOutput) NameRegex added in v3.9.0

func (GetControlPoliciesResultOutput) Names added in v3.9.0

func (GetControlPoliciesResultOutput) OutputFile added in v3.9.0

func (GetControlPoliciesResultOutput) Policies added in v3.9.0

func (GetControlPoliciesResultOutput) PolicyType added in v3.9.0

func (GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutput added in v3.9.0

func (o GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutput() GetControlPoliciesResultOutput

func (GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutputWithContext added in v3.9.0

func (o GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutputWithContext(ctx context.Context) GetControlPoliciesResultOutput

type GetControlPolicyAttachmentsArgs

type GetControlPolicyAttachmentsArgs struct {
	// The language. Valid value `zh-CN`, `en`, and `ja`. Default value `zh-CN`
	Language *string `pulumi:"language"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The type of policy.
	PolicyType *string `pulumi:"policyType"`
	// The Id of target.
	TargetId string `pulumi:"targetId"`
}

A collection of arguments for invoking getControlPolicyAttachments.

type GetControlPolicyAttachmentsAttachment

type GetControlPolicyAttachmentsAttachment struct {
	// The attach date.
	AttachDate string `pulumi:"attachDate"`
	// The description of policy.
	Description string `pulumi:"description"`
	// The ID of the Control Policy Attachment.
	Id string `pulumi:"id"`
	// The ID of policy.
	PolicyId string `pulumi:"policyId"`
	// The name of policy.
	PolicyName string `pulumi:"policyName"`
	// The type of policy.
	PolicyType string `pulumi:"policyType"`
}

type GetControlPolicyAttachmentsAttachmentArgs

type GetControlPolicyAttachmentsAttachmentArgs struct {
	// The attach date.
	AttachDate pulumi.StringInput `pulumi:"attachDate"`
	// The description of policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Control Policy Attachment.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of policy.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// The name of policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// The type of policy.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

func (GetControlPolicyAttachmentsAttachmentArgs) ElementType

func (GetControlPolicyAttachmentsAttachmentArgs) ToGetControlPolicyAttachmentsAttachmentOutput

func (i GetControlPolicyAttachmentsAttachmentArgs) ToGetControlPolicyAttachmentsAttachmentOutput() GetControlPolicyAttachmentsAttachmentOutput

func (GetControlPolicyAttachmentsAttachmentArgs) ToGetControlPolicyAttachmentsAttachmentOutputWithContext

func (i GetControlPolicyAttachmentsAttachmentArgs) ToGetControlPolicyAttachmentsAttachmentOutputWithContext(ctx context.Context) GetControlPolicyAttachmentsAttachmentOutput

type GetControlPolicyAttachmentsAttachmentArray

type GetControlPolicyAttachmentsAttachmentArray []GetControlPolicyAttachmentsAttachmentInput

func (GetControlPolicyAttachmentsAttachmentArray) ElementType

func (GetControlPolicyAttachmentsAttachmentArray) ToGetControlPolicyAttachmentsAttachmentArrayOutput

func (i GetControlPolicyAttachmentsAttachmentArray) ToGetControlPolicyAttachmentsAttachmentArrayOutput() GetControlPolicyAttachmentsAttachmentArrayOutput

func (GetControlPolicyAttachmentsAttachmentArray) ToGetControlPolicyAttachmentsAttachmentArrayOutputWithContext

func (i GetControlPolicyAttachmentsAttachmentArray) ToGetControlPolicyAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetControlPolicyAttachmentsAttachmentArrayOutput

type GetControlPolicyAttachmentsAttachmentArrayInput

type GetControlPolicyAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetControlPolicyAttachmentsAttachmentArrayOutput() GetControlPolicyAttachmentsAttachmentArrayOutput
	ToGetControlPolicyAttachmentsAttachmentArrayOutputWithContext(context.Context) GetControlPolicyAttachmentsAttachmentArrayOutput
}

GetControlPolicyAttachmentsAttachmentArrayInput is an input type that accepts GetControlPolicyAttachmentsAttachmentArray and GetControlPolicyAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetControlPolicyAttachmentsAttachmentArrayInput` via:

GetControlPolicyAttachmentsAttachmentArray{ GetControlPolicyAttachmentsAttachmentArgs{...} }

type GetControlPolicyAttachmentsAttachmentArrayOutput

type GetControlPolicyAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetControlPolicyAttachmentsAttachmentArrayOutput) ElementType

func (GetControlPolicyAttachmentsAttachmentArrayOutput) Index

func (GetControlPolicyAttachmentsAttachmentArrayOutput) ToGetControlPolicyAttachmentsAttachmentArrayOutput

func (o GetControlPolicyAttachmentsAttachmentArrayOutput) ToGetControlPolicyAttachmentsAttachmentArrayOutput() GetControlPolicyAttachmentsAttachmentArrayOutput

func (GetControlPolicyAttachmentsAttachmentArrayOutput) ToGetControlPolicyAttachmentsAttachmentArrayOutputWithContext

func (o GetControlPolicyAttachmentsAttachmentArrayOutput) ToGetControlPolicyAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetControlPolicyAttachmentsAttachmentArrayOutput

type GetControlPolicyAttachmentsAttachmentInput

type GetControlPolicyAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetControlPolicyAttachmentsAttachmentOutput() GetControlPolicyAttachmentsAttachmentOutput
	ToGetControlPolicyAttachmentsAttachmentOutputWithContext(context.Context) GetControlPolicyAttachmentsAttachmentOutput
}

GetControlPolicyAttachmentsAttachmentInput is an input type that accepts GetControlPolicyAttachmentsAttachmentArgs and GetControlPolicyAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetControlPolicyAttachmentsAttachmentInput` via:

GetControlPolicyAttachmentsAttachmentArgs{...}

type GetControlPolicyAttachmentsAttachmentOutput

type GetControlPolicyAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetControlPolicyAttachmentsAttachmentOutput) AttachDate

The attach date.

func (GetControlPolicyAttachmentsAttachmentOutput) Description

The description of policy.

func (GetControlPolicyAttachmentsAttachmentOutput) ElementType

func (GetControlPolicyAttachmentsAttachmentOutput) Id

The ID of the Control Policy Attachment.

func (GetControlPolicyAttachmentsAttachmentOutput) PolicyId

The ID of policy.

func (GetControlPolicyAttachmentsAttachmentOutput) PolicyName

The name of policy.

func (GetControlPolicyAttachmentsAttachmentOutput) PolicyType

The type of policy.

func (GetControlPolicyAttachmentsAttachmentOutput) ToGetControlPolicyAttachmentsAttachmentOutput

func (o GetControlPolicyAttachmentsAttachmentOutput) ToGetControlPolicyAttachmentsAttachmentOutput() GetControlPolicyAttachmentsAttachmentOutput

func (GetControlPolicyAttachmentsAttachmentOutput) ToGetControlPolicyAttachmentsAttachmentOutputWithContext

func (o GetControlPolicyAttachmentsAttachmentOutput) ToGetControlPolicyAttachmentsAttachmentOutputWithContext(ctx context.Context) GetControlPolicyAttachmentsAttachmentOutput

type GetControlPolicyAttachmentsOutputArgs added in v3.9.0

type GetControlPolicyAttachmentsOutputArgs struct {
	// The language. Valid value `zh-CN`, `en`, and `ja`. Default value `zh-CN`
	Language pulumi.StringPtrInput `pulumi:"language"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The type of policy.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
	// The Id of target.
	TargetId pulumi.StringInput `pulumi:"targetId"`
}

A collection of arguments for invoking getControlPolicyAttachments.

func (GetControlPolicyAttachmentsOutputArgs) ElementType added in v3.9.0

type GetControlPolicyAttachmentsResult

type GetControlPolicyAttachmentsResult struct {
	Attachments []GetControlPolicyAttachmentsAttachment `pulumi:"attachments"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	Language   *string  `pulumi:"language"`
	OutputFile *string  `pulumi:"outputFile"`
	PolicyType *string  `pulumi:"policyType"`
	TargetId   string   `pulumi:"targetId"`
}

A collection of values returned by getControlPolicyAttachments.

func GetControlPolicyAttachments

func GetControlPolicyAttachments(ctx *pulumi.Context, args *GetControlPolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetControlPolicyAttachmentsResult, error)

This data source provides the Resource Manager Control Policy Attachments of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetControlPolicyAttachments(ctx, &resourcemanager.GetControlPolicyAttachmentsArgs{
			TargetId: "example_value",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstResourceManagerControlPolicyAttachmentId", example.Attachments[0].Id)
		return nil
	})
}

```

type GetControlPolicyAttachmentsResultOutput added in v3.9.0

type GetControlPolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getControlPolicyAttachments.

func (GetControlPolicyAttachmentsResultOutput) Attachments added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) ElementType added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetControlPolicyAttachmentsResultOutput) Ids added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) Language added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) OutputFile added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) PolicyType added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) TargetId added in v3.9.0

func (GetControlPolicyAttachmentsResultOutput) ToGetControlPolicyAttachmentsResultOutput added in v3.9.0

func (o GetControlPolicyAttachmentsResultOutput) ToGetControlPolicyAttachmentsResultOutput() GetControlPolicyAttachmentsResultOutput

func (GetControlPolicyAttachmentsResultOutput) ToGetControlPolicyAttachmentsResultOutputWithContext added in v3.9.0

func (o GetControlPolicyAttachmentsResultOutput) ToGetControlPolicyAttachmentsResultOutputWithContext(ctx context.Context) GetControlPolicyAttachmentsResultOutput

type GetDelegatedAdministratorsAdministrator added in v3.28.0

type GetDelegatedAdministratorsAdministrator struct {
	// The ID of the member account.
	AccountId string `pulumi:"accountId"`
	// The time when the member was specified as a delegated administrator account.
	DelegationEnabledTime string `pulumi:"delegationEnabledTime"`
	// The ID of the Delegated Administrator.
	Id string `pulumi:"id"`
	// The identity of the trusted service.
	ServicePrincipal string `pulumi:"servicePrincipal"`
}

type GetDelegatedAdministratorsAdministratorArgs added in v3.28.0

type GetDelegatedAdministratorsAdministratorArgs struct {
	// The ID of the member account.
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// The time when the member was specified as a delegated administrator account.
	DelegationEnabledTime pulumi.StringInput `pulumi:"delegationEnabledTime"`
	// The ID of the Delegated Administrator.
	Id pulumi.StringInput `pulumi:"id"`
	// The identity of the trusted service.
	ServicePrincipal pulumi.StringInput `pulumi:"servicePrincipal"`
}

func (GetDelegatedAdministratorsAdministratorArgs) ElementType added in v3.28.0

func (GetDelegatedAdministratorsAdministratorArgs) ToGetDelegatedAdministratorsAdministratorOutput added in v3.28.0

func (i GetDelegatedAdministratorsAdministratorArgs) ToGetDelegatedAdministratorsAdministratorOutput() GetDelegatedAdministratorsAdministratorOutput

func (GetDelegatedAdministratorsAdministratorArgs) ToGetDelegatedAdministratorsAdministratorOutputWithContext added in v3.28.0

func (i GetDelegatedAdministratorsAdministratorArgs) ToGetDelegatedAdministratorsAdministratorOutputWithContext(ctx context.Context) GetDelegatedAdministratorsAdministratorOutput

type GetDelegatedAdministratorsAdministratorArray added in v3.28.0

type GetDelegatedAdministratorsAdministratorArray []GetDelegatedAdministratorsAdministratorInput

func (GetDelegatedAdministratorsAdministratorArray) ElementType added in v3.28.0

func (GetDelegatedAdministratorsAdministratorArray) ToGetDelegatedAdministratorsAdministratorArrayOutput added in v3.28.0

func (i GetDelegatedAdministratorsAdministratorArray) ToGetDelegatedAdministratorsAdministratorArrayOutput() GetDelegatedAdministratorsAdministratorArrayOutput

func (GetDelegatedAdministratorsAdministratorArray) ToGetDelegatedAdministratorsAdministratorArrayOutputWithContext added in v3.28.0

func (i GetDelegatedAdministratorsAdministratorArray) ToGetDelegatedAdministratorsAdministratorArrayOutputWithContext(ctx context.Context) GetDelegatedAdministratorsAdministratorArrayOutput

type GetDelegatedAdministratorsAdministratorArrayInput added in v3.28.0

type GetDelegatedAdministratorsAdministratorArrayInput interface {
	pulumi.Input

	ToGetDelegatedAdministratorsAdministratorArrayOutput() GetDelegatedAdministratorsAdministratorArrayOutput
	ToGetDelegatedAdministratorsAdministratorArrayOutputWithContext(context.Context) GetDelegatedAdministratorsAdministratorArrayOutput
}

GetDelegatedAdministratorsAdministratorArrayInput is an input type that accepts GetDelegatedAdministratorsAdministratorArray and GetDelegatedAdministratorsAdministratorArrayOutput values. You can construct a concrete instance of `GetDelegatedAdministratorsAdministratorArrayInput` via:

GetDelegatedAdministratorsAdministratorArray{ GetDelegatedAdministratorsAdministratorArgs{...} }

type GetDelegatedAdministratorsAdministratorArrayOutput added in v3.28.0

type GetDelegatedAdministratorsAdministratorArrayOutput struct{ *pulumi.OutputState }

func (GetDelegatedAdministratorsAdministratorArrayOutput) ElementType added in v3.28.0

func (GetDelegatedAdministratorsAdministratorArrayOutput) Index added in v3.28.0

func (GetDelegatedAdministratorsAdministratorArrayOutput) ToGetDelegatedAdministratorsAdministratorArrayOutput added in v3.28.0

func (o GetDelegatedAdministratorsAdministratorArrayOutput) ToGetDelegatedAdministratorsAdministratorArrayOutput() GetDelegatedAdministratorsAdministratorArrayOutput

func (GetDelegatedAdministratorsAdministratorArrayOutput) ToGetDelegatedAdministratorsAdministratorArrayOutputWithContext added in v3.28.0

func (o GetDelegatedAdministratorsAdministratorArrayOutput) ToGetDelegatedAdministratorsAdministratorArrayOutputWithContext(ctx context.Context) GetDelegatedAdministratorsAdministratorArrayOutput

type GetDelegatedAdministratorsAdministratorInput added in v3.28.0

type GetDelegatedAdministratorsAdministratorInput interface {
	pulumi.Input

	ToGetDelegatedAdministratorsAdministratorOutput() GetDelegatedAdministratorsAdministratorOutput
	ToGetDelegatedAdministratorsAdministratorOutputWithContext(context.Context) GetDelegatedAdministratorsAdministratorOutput
}

GetDelegatedAdministratorsAdministratorInput is an input type that accepts GetDelegatedAdministratorsAdministratorArgs and GetDelegatedAdministratorsAdministratorOutput values. You can construct a concrete instance of `GetDelegatedAdministratorsAdministratorInput` via:

GetDelegatedAdministratorsAdministratorArgs{...}

type GetDelegatedAdministratorsAdministratorOutput added in v3.28.0

type GetDelegatedAdministratorsAdministratorOutput struct{ *pulumi.OutputState }

func (GetDelegatedAdministratorsAdministratorOutput) AccountId added in v3.28.0

The ID of the member account.

func (GetDelegatedAdministratorsAdministratorOutput) DelegationEnabledTime added in v3.28.0

The time when the member was specified as a delegated administrator account.

func (GetDelegatedAdministratorsAdministratorOutput) ElementType added in v3.28.0

func (GetDelegatedAdministratorsAdministratorOutput) Id added in v3.28.0

The ID of the Delegated Administrator.

func (GetDelegatedAdministratorsAdministratorOutput) ServicePrincipal added in v3.28.0

The identity of the trusted service.

func (GetDelegatedAdministratorsAdministratorOutput) ToGetDelegatedAdministratorsAdministratorOutput added in v3.28.0

func (o GetDelegatedAdministratorsAdministratorOutput) ToGetDelegatedAdministratorsAdministratorOutput() GetDelegatedAdministratorsAdministratorOutput

func (GetDelegatedAdministratorsAdministratorOutput) ToGetDelegatedAdministratorsAdministratorOutputWithContext added in v3.28.0

func (o GetDelegatedAdministratorsAdministratorOutput) ToGetDelegatedAdministratorsAdministratorOutputWithContext(ctx context.Context) GetDelegatedAdministratorsAdministratorOutput

type GetDelegatedAdministratorsArgs added in v3.28.0

type GetDelegatedAdministratorsArgs struct {
	// A list of Delegated Administrator IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	PageNumber *int    `pulumi:"pageNumber"`
	PageSize   *int    `pulumi:"pageSize"`
	// The identity of the trusted service.
	ServicePrincipal *string `pulumi:"servicePrincipal"`
}

A collection of arguments for invoking getDelegatedAdministrators.

type GetDelegatedAdministratorsOutputArgs added in v3.28.0

type GetDelegatedAdministratorsOutputArgs struct {
	// A list of Delegated Administrator IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	PageNumber pulumi.IntPtrInput    `pulumi:"pageNumber"`
	PageSize   pulumi.IntPtrInput    `pulumi:"pageSize"`
	// The identity of the trusted service.
	ServicePrincipal pulumi.StringPtrInput `pulumi:"servicePrincipal"`
}

A collection of arguments for invoking getDelegatedAdministrators.

func (GetDelegatedAdministratorsOutputArgs) ElementType added in v3.28.0

type GetDelegatedAdministratorsResult added in v3.28.0

type GetDelegatedAdministratorsResult struct {
	Administrators []GetDelegatedAdministratorsAdministrator `pulumi:"administrators"`
	// The provider-assigned unique ID for this managed resource.
	Id               string   `pulumi:"id"`
	Ids              []string `pulumi:"ids"`
	OutputFile       *string  `pulumi:"outputFile"`
	PageNumber       *int     `pulumi:"pageNumber"`
	PageSize         *int     `pulumi:"pageSize"`
	ServicePrincipal *string  `pulumi:"servicePrincipal"`
}

A collection of values returned by getDelegatedAdministrators.

func GetDelegatedAdministrators added in v3.28.0

func GetDelegatedAdministrators(ctx *pulumi.Context, args *GetDelegatedAdministratorsArgs, opts ...pulumi.InvokeOption) (*GetDelegatedAdministratorsResult, error)

This data source provides the Resource Manager Delegated Administrators of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := resourcemanager.GetDelegatedAdministrators(ctx, &resourcemanager.GetDelegatedAdministratorsArgs{
			Ids: []string{
				"example_value",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("resourceManagerDelegatedAdministratorId1", ids.Administrators[0].Id)
		return nil
	})
}

```

type GetDelegatedAdministratorsResultOutput added in v3.28.0

type GetDelegatedAdministratorsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDelegatedAdministrators.

func (GetDelegatedAdministratorsResultOutput) Administrators added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) ElementType added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) Id added in v3.28.0

The provider-assigned unique ID for this managed resource.

func (GetDelegatedAdministratorsResultOutput) Ids added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) OutputFile added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) PageNumber added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) PageSize added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) ServicePrincipal added in v3.28.0

func (GetDelegatedAdministratorsResultOutput) ToGetDelegatedAdministratorsResultOutput added in v3.28.0

func (o GetDelegatedAdministratorsResultOutput) ToGetDelegatedAdministratorsResultOutput() GetDelegatedAdministratorsResultOutput

func (GetDelegatedAdministratorsResultOutput) ToGetDelegatedAdministratorsResultOutputWithContext added in v3.28.0

func (o GetDelegatedAdministratorsResultOutput) ToGetDelegatedAdministratorsResultOutputWithContext(ctx context.Context) GetDelegatedAdministratorsResultOutput

type GetFoldersArgs

type GetFoldersArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of resource manager folders IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by folder name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the parent folder.
	ParentFolderId *string `pulumi:"parentFolderId"`
	// The query keyword.
	QueryKeyword *string `pulumi:"queryKeyword"`
}

A collection of arguments for invoking getFolders.

type GetFoldersFolder

type GetFoldersFolder struct {
	// The ID of the folder.
	FolderId string `pulumi:"folderId"`
	// The name of the folder.
	FolderName string `pulumi:"folderName"`
	// The ID of the folder.
	Id string `pulumi:"id"`
	// The ID of the parent folder.
	ParentFolderId string `pulumi:"parentFolderId"`
}

type GetFoldersFolderArgs

type GetFoldersFolderArgs struct {
	// The ID of the folder.
	FolderId pulumi.StringInput `pulumi:"folderId"`
	// The name of the folder.
	FolderName pulumi.StringInput `pulumi:"folderName"`
	// The ID of the folder.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the parent folder.
	ParentFolderId pulumi.StringInput `pulumi:"parentFolderId"`
}

func (GetFoldersFolderArgs) ElementType

func (GetFoldersFolderArgs) ElementType() reflect.Type

func (GetFoldersFolderArgs) ToGetFoldersFolderOutput

func (i GetFoldersFolderArgs) ToGetFoldersFolderOutput() GetFoldersFolderOutput

func (GetFoldersFolderArgs) ToGetFoldersFolderOutputWithContext

func (i GetFoldersFolderArgs) ToGetFoldersFolderOutputWithContext(ctx context.Context) GetFoldersFolderOutput

type GetFoldersFolderArray

type GetFoldersFolderArray []GetFoldersFolderInput

func (GetFoldersFolderArray) ElementType

func (GetFoldersFolderArray) ElementType() reflect.Type

func (GetFoldersFolderArray) ToGetFoldersFolderArrayOutput

func (i GetFoldersFolderArray) ToGetFoldersFolderArrayOutput() GetFoldersFolderArrayOutput

func (GetFoldersFolderArray) ToGetFoldersFolderArrayOutputWithContext

func (i GetFoldersFolderArray) ToGetFoldersFolderArrayOutputWithContext(ctx context.Context) GetFoldersFolderArrayOutput

type GetFoldersFolderArrayInput

type GetFoldersFolderArrayInput interface {
	pulumi.Input

	ToGetFoldersFolderArrayOutput() GetFoldersFolderArrayOutput
	ToGetFoldersFolderArrayOutputWithContext(context.Context) GetFoldersFolderArrayOutput
}

GetFoldersFolderArrayInput is an input type that accepts GetFoldersFolderArray and GetFoldersFolderArrayOutput values. You can construct a concrete instance of `GetFoldersFolderArrayInput` via:

GetFoldersFolderArray{ GetFoldersFolderArgs{...} }

type GetFoldersFolderArrayOutput

type GetFoldersFolderArrayOutput struct{ *pulumi.OutputState }

func (GetFoldersFolderArrayOutput) ElementType

func (GetFoldersFolderArrayOutput) Index

func (GetFoldersFolderArrayOutput) ToGetFoldersFolderArrayOutput

func (o GetFoldersFolderArrayOutput) ToGetFoldersFolderArrayOutput() GetFoldersFolderArrayOutput

func (GetFoldersFolderArrayOutput) ToGetFoldersFolderArrayOutputWithContext

func (o GetFoldersFolderArrayOutput) ToGetFoldersFolderArrayOutputWithContext(ctx context.Context) GetFoldersFolderArrayOutput

type GetFoldersFolderInput

type GetFoldersFolderInput interface {
	pulumi.Input

	ToGetFoldersFolderOutput() GetFoldersFolderOutput
	ToGetFoldersFolderOutputWithContext(context.Context) GetFoldersFolderOutput
}

GetFoldersFolderInput is an input type that accepts GetFoldersFolderArgs and GetFoldersFolderOutput values. You can construct a concrete instance of `GetFoldersFolderInput` via:

GetFoldersFolderArgs{...}

type GetFoldersFolderOutput

type GetFoldersFolderOutput struct{ *pulumi.OutputState }

func (GetFoldersFolderOutput) ElementType

func (GetFoldersFolderOutput) ElementType() reflect.Type

func (GetFoldersFolderOutput) FolderId

The ID of the folder.

func (GetFoldersFolderOutput) FolderName

The name of the folder.

func (GetFoldersFolderOutput) Id

The ID of the folder.

func (GetFoldersFolderOutput) ParentFolderId

func (o GetFoldersFolderOutput) ParentFolderId() pulumi.StringOutput

The ID of the parent folder.

func (GetFoldersFolderOutput) ToGetFoldersFolderOutput

func (o GetFoldersFolderOutput) ToGetFoldersFolderOutput() GetFoldersFolderOutput

func (GetFoldersFolderOutput) ToGetFoldersFolderOutputWithContext

func (o GetFoldersFolderOutput) ToGetFoldersFolderOutputWithContext(ctx context.Context) GetFoldersFolderOutput

type GetFoldersOutputArgs added in v3.9.0

type GetFoldersOutputArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of resource manager folders IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by folder name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The ID of the parent folder.
	ParentFolderId pulumi.StringPtrInput `pulumi:"parentFolderId"`
	// The query keyword.
	QueryKeyword pulumi.StringPtrInput `pulumi:"queryKeyword"`
}

A collection of arguments for invoking getFolders.

func (GetFoldersOutputArgs) ElementType added in v3.9.0

func (GetFoldersOutputArgs) ElementType() reflect.Type

type GetFoldersResult

type GetFoldersResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of folders. Each element contains the following attributes:
	Folders []GetFoldersFolder `pulumi:"folders"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of folder IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of folder names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// (Available in v1.114.0+)The ID of the parent folder.
	ParentFolderId *string `pulumi:"parentFolderId"`
	QueryKeyword   *string `pulumi:"queryKeyword"`
}

A collection of values returned by getFolders.

func GetFolders

func GetFolders(ctx *pulumi.Context, args *GetFoldersArgs, opts ...pulumi.InvokeOption) (*GetFoldersResult, error)

This data source provides the resource manager folders of the current Alibaba Cloud user.

> **NOTE:** Available in 1.84.0+.

> **NOTE:** You can view only the information of the first-level child folders of the specified folder.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetFolders(ctx, &resourcemanager.GetFoldersArgs{
			NameRegex: pulumi.StringRef("tftest"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstFolderId", example.Folders[0].Id)
		return nil
	})
}

```

type GetFoldersResultOutput added in v3.9.0

type GetFoldersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFolders.

func GetFoldersOutput added in v3.9.0

func GetFoldersOutput(ctx *pulumi.Context, args GetFoldersOutputArgs, opts ...pulumi.InvokeOption) GetFoldersResultOutput

func (GetFoldersResultOutput) ElementType added in v3.9.0

func (GetFoldersResultOutput) ElementType() reflect.Type

func (GetFoldersResultOutput) EnableDetails added in v3.9.0

func (o GetFoldersResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetFoldersResultOutput) Folders added in v3.9.0

A list of folders. Each element contains the following attributes:

func (GetFoldersResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetFoldersResultOutput) Ids added in v3.9.0

A list of folder IDs.

func (GetFoldersResultOutput) NameRegex added in v3.9.0

func (GetFoldersResultOutput) Names added in v3.9.0

A list of folder names.

func (GetFoldersResultOutput) OutputFile added in v3.9.0

func (GetFoldersResultOutput) ParentFolderId added in v3.9.0

func (o GetFoldersResultOutput) ParentFolderId() pulumi.StringPtrOutput

(Available in v1.114.0+)The ID of the parent folder.

func (GetFoldersResultOutput) QueryKeyword added in v3.9.0

func (GetFoldersResultOutput) ToGetFoldersResultOutput added in v3.9.0

func (o GetFoldersResultOutput) ToGetFoldersResultOutput() GetFoldersResultOutput

func (GetFoldersResultOutput) ToGetFoldersResultOutputWithContext added in v3.9.0

func (o GetFoldersResultOutput) ToGetFoldersResultOutputWithContext(ctx context.Context) GetFoldersResultOutput

type GetHandshakesArgs

type GetHandshakesArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Resource Manager Handshake IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of handshake, valid values: `Accepted`, `Cancelled`, `Declined`, `Deleted`, `Expired` and `Pending`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getHandshakes.

type GetHandshakesHandshake

type GetHandshakesHandshake struct {
	// The time when the invitation expires.
	ExpireTime string `pulumi:"expireTime"`
	// The ID of the invitation.
	HandshakeId string `pulumi:"handshakeId"`
	// The ID of the resource.
	Id string `pulumi:"id"`
	// (Available in v1.114.0+) The real name of the invited account.
	InvitedAccountRealName string `pulumi:"invitedAccountRealName"`
	// The ID of the master account of the resource directory.
	MasterAccountId string `pulumi:"masterAccountId"`
	// The name of the master account of the resource directory.
	MasterAccountName string `pulumi:"masterAccountName"`
	// (Available in v1.114.0+) The real name of the master account of the resource directory.
	MasterAccountRealName string `pulumi:"masterAccountRealName"`
	// The time when the invitation was modified.
	ModifyTime string `pulumi:"modifyTime"`
	// The invitation note.
	Note string `pulumi:"note"`
	// The ID of the resource directory.
	ResourceDirectoryId string `pulumi:"resourceDirectoryId"`
	// The status of handshake, valid values: `Accepted`, `Cancelled`, `Declined`, `Deleted`, `Expired` and `Pending`.
	Status string `pulumi:"status"`
	// The ID or logon email address of the invited account.
	TargetEntity string `pulumi:"targetEntity"`
	// The type of the invited account.
	TargetType string `pulumi:"targetType"`
}

type GetHandshakesHandshakeArgs

type GetHandshakesHandshakeArgs struct {
	// The time when the invitation expires.
	ExpireTime pulumi.StringInput `pulumi:"expireTime"`
	// The ID of the invitation.
	HandshakeId pulumi.StringInput `pulumi:"handshakeId"`
	// The ID of the resource.
	Id pulumi.StringInput `pulumi:"id"`
	// (Available in v1.114.0+) The real name of the invited account.
	InvitedAccountRealName pulumi.StringInput `pulumi:"invitedAccountRealName"`
	// The ID of the master account of the resource directory.
	MasterAccountId pulumi.StringInput `pulumi:"masterAccountId"`
	// The name of the master account of the resource directory.
	MasterAccountName pulumi.StringInput `pulumi:"masterAccountName"`
	// (Available in v1.114.0+) The real name of the master account of the resource directory.
	MasterAccountRealName pulumi.StringInput `pulumi:"masterAccountRealName"`
	// The time when the invitation was modified.
	ModifyTime pulumi.StringInput `pulumi:"modifyTime"`
	// The invitation note.
	Note pulumi.StringInput `pulumi:"note"`
	// The ID of the resource directory.
	ResourceDirectoryId pulumi.StringInput `pulumi:"resourceDirectoryId"`
	// The status of handshake, valid values: `Accepted`, `Cancelled`, `Declined`, `Deleted`, `Expired` and `Pending`.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID or logon email address of the invited account.
	TargetEntity pulumi.StringInput `pulumi:"targetEntity"`
	// The type of the invited account.
	TargetType pulumi.StringInput `pulumi:"targetType"`
}

func (GetHandshakesHandshakeArgs) ElementType

func (GetHandshakesHandshakeArgs) ElementType() reflect.Type

func (GetHandshakesHandshakeArgs) ToGetHandshakesHandshakeOutput

func (i GetHandshakesHandshakeArgs) ToGetHandshakesHandshakeOutput() GetHandshakesHandshakeOutput

func (GetHandshakesHandshakeArgs) ToGetHandshakesHandshakeOutputWithContext

func (i GetHandshakesHandshakeArgs) ToGetHandshakesHandshakeOutputWithContext(ctx context.Context) GetHandshakesHandshakeOutput

type GetHandshakesHandshakeArray

type GetHandshakesHandshakeArray []GetHandshakesHandshakeInput

func (GetHandshakesHandshakeArray) ElementType

func (GetHandshakesHandshakeArray) ToGetHandshakesHandshakeArrayOutput

func (i GetHandshakesHandshakeArray) ToGetHandshakesHandshakeArrayOutput() GetHandshakesHandshakeArrayOutput

func (GetHandshakesHandshakeArray) ToGetHandshakesHandshakeArrayOutputWithContext

func (i GetHandshakesHandshakeArray) ToGetHandshakesHandshakeArrayOutputWithContext(ctx context.Context) GetHandshakesHandshakeArrayOutput

type GetHandshakesHandshakeArrayInput

type GetHandshakesHandshakeArrayInput interface {
	pulumi.Input

	ToGetHandshakesHandshakeArrayOutput() GetHandshakesHandshakeArrayOutput
	ToGetHandshakesHandshakeArrayOutputWithContext(context.Context) GetHandshakesHandshakeArrayOutput
}

GetHandshakesHandshakeArrayInput is an input type that accepts GetHandshakesHandshakeArray and GetHandshakesHandshakeArrayOutput values. You can construct a concrete instance of `GetHandshakesHandshakeArrayInput` via:

GetHandshakesHandshakeArray{ GetHandshakesHandshakeArgs{...} }

type GetHandshakesHandshakeArrayOutput

type GetHandshakesHandshakeArrayOutput struct{ *pulumi.OutputState }

func (GetHandshakesHandshakeArrayOutput) ElementType

func (GetHandshakesHandshakeArrayOutput) Index

func (GetHandshakesHandshakeArrayOutput) ToGetHandshakesHandshakeArrayOutput

func (o GetHandshakesHandshakeArrayOutput) ToGetHandshakesHandshakeArrayOutput() GetHandshakesHandshakeArrayOutput

func (GetHandshakesHandshakeArrayOutput) ToGetHandshakesHandshakeArrayOutputWithContext

func (o GetHandshakesHandshakeArrayOutput) ToGetHandshakesHandshakeArrayOutputWithContext(ctx context.Context) GetHandshakesHandshakeArrayOutput

type GetHandshakesHandshakeInput

type GetHandshakesHandshakeInput interface {
	pulumi.Input

	ToGetHandshakesHandshakeOutput() GetHandshakesHandshakeOutput
	ToGetHandshakesHandshakeOutputWithContext(context.Context) GetHandshakesHandshakeOutput
}

GetHandshakesHandshakeInput is an input type that accepts GetHandshakesHandshakeArgs and GetHandshakesHandshakeOutput values. You can construct a concrete instance of `GetHandshakesHandshakeInput` via:

GetHandshakesHandshakeArgs{...}

type GetHandshakesHandshakeOutput

type GetHandshakesHandshakeOutput struct{ *pulumi.OutputState }

func (GetHandshakesHandshakeOutput) ElementType

func (GetHandshakesHandshakeOutput) ExpireTime

The time when the invitation expires.

func (GetHandshakesHandshakeOutput) HandshakeId

The ID of the invitation.

func (GetHandshakesHandshakeOutput) Id

The ID of the resource.

func (GetHandshakesHandshakeOutput) InvitedAccountRealName

func (o GetHandshakesHandshakeOutput) InvitedAccountRealName() pulumi.StringOutput

(Available in v1.114.0+) The real name of the invited account.

func (GetHandshakesHandshakeOutput) MasterAccountId

func (o GetHandshakesHandshakeOutput) MasterAccountId() pulumi.StringOutput

The ID of the master account of the resource directory.

func (GetHandshakesHandshakeOutput) MasterAccountName

func (o GetHandshakesHandshakeOutput) MasterAccountName() pulumi.StringOutput

The name of the master account of the resource directory.

func (GetHandshakesHandshakeOutput) MasterAccountRealName

func (o GetHandshakesHandshakeOutput) MasterAccountRealName() pulumi.StringOutput

(Available in v1.114.0+) The real name of the master account of the resource directory.

func (GetHandshakesHandshakeOutput) ModifyTime

The time when the invitation was modified.

func (GetHandshakesHandshakeOutput) Note

The invitation note.

func (GetHandshakesHandshakeOutput) ResourceDirectoryId

func (o GetHandshakesHandshakeOutput) ResourceDirectoryId() pulumi.StringOutput

The ID of the resource directory.

func (GetHandshakesHandshakeOutput) Status

The status of handshake, valid values: `Accepted`, `Cancelled`, `Declined`, `Deleted`, `Expired` and `Pending`.

func (GetHandshakesHandshakeOutput) TargetEntity

The ID or logon email address of the invited account.

func (GetHandshakesHandshakeOutput) TargetType

The type of the invited account.

func (GetHandshakesHandshakeOutput) ToGetHandshakesHandshakeOutput

func (o GetHandshakesHandshakeOutput) ToGetHandshakesHandshakeOutput() GetHandshakesHandshakeOutput

func (GetHandshakesHandshakeOutput) ToGetHandshakesHandshakeOutputWithContext

func (o GetHandshakesHandshakeOutput) ToGetHandshakesHandshakeOutputWithContext(ctx context.Context) GetHandshakesHandshakeOutput

type GetHandshakesOutputArgs added in v3.9.0

type GetHandshakesOutputArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Resource Manager Handshake IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of handshake, valid values: `Accepted`, `Cancelled`, `Declined`, `Deleted`, `Expired` and `Pending`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getHandshakes.

func (GetHandshakesOutputArgs) ElementType added in v3.9.0

func (GetHandshakesOutputArgs) ElementType() reflect.Type

type GetHandshakesResult

type GetHandshakesResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Resource Manager Handshakes. Each element contains the following attributes:
	Handshakes []GetHandshakesHandshake `pulumi:"handshakes"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Resource Manager Handshake IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the invitation.
	Status *string `pulumi:"status"`
}

A collection of values returned by getHandshakes.

func GetHandshakes

func GetHandshakes(ctx *pulumi.Context, args *GetHandshakesArgs, opts ...pulumi.InvokeOption) (*GetHandshakesResult, error)

This data source provides the Resource Manager Handshakes of the current Alibaba Cloud user.

> **NOTE:** Available in 1.86.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetHandshakes(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstHandshakeId", example.Handshakes[0].Id)
		return nil
	})
}

```

type GetHandshakesResultOutput added in v3.9.0

type GetHandshakesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getHandshakes.

func GetHandshakesOutput added in v3.9.0

func GetHandshakesOutput(ctx *pulumi.Context, args GetHandshakesOutputArgs, opts ...pulumi.InvokeOption) GetHandshakesResultOutput

func (GetHandshakesResultOutput) ElementType added in v3.9.0

func (GetHandshakesResultOutput) ElementType() reflect.Type

func (GetHandshakesResultOutput) EnableDetails added in v3.9.0

func (GetHandshakesResultOutput) Handshakes added in v3.9.0

A list of Resource Manager Handshakes. Each element contains the following attributes:

func (GetHandshakesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetHandshakesResultOutput) Ids added in v3.9.0

A list of Resource Manager Handshake IDs.

func (GetHandshakesResultOutput) OutputFile added in v3.9.0

func (GetHandshakesResultOutput) Status added in v3.9.0

The status of the invitation.

func (GetHandshakesResultOutput) ToGetHandshakesResultOutput added in v3.9.0

func (o GetHandshakesResultOutput) ToGetHandshakesResultOutput() GetHandshakesResultOutput

func (GetHandshakesResultOutput) ToGetHandshakesResultOutputWithContext added in v3.9.0

func (o GetHandshakesResultOutput) ToGetHandshakesResultOutputWithContext(ctx context.Context) GetHandshakesResultOutput

type GetPoliciesArgs

type GetPoliciesArgs struct {
	// A list of Resource Manager Policy IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by policy name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: `Custom` and `System`.
	PolicyType *string `pulumi:"policyType"`
}

A collection of arguments for invoking getPolicies.

type GetPoliciesOutputArgs added in v3.9.0

type GetPoliciesOutputArgs struct {
	// A list of Resource Manager Policy IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by policy name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: `Custom` and `System`.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
}

A collection of arguments for invoking getPolicies.

func (GetPoliciesOutputArgs) ElementType added in v3.9.0

func (GetPoliciesOutputArgs) ElementType() reflect.Type

type GetPoliciesPolicy

type GetPoliciesPolicy struct {
	// The number of times the policy is referenced.
	AttachmentCount int `pulumi:"attachmentCount"`
	// The default version of the policy.
	DefaultVersion string `pulumi:"defaultVersion"`
	// The description of the policy.
	Description string `pulumi:"description"`
	// The ID of the policy.
	Id string `pulumi:"id"`
	// The name of the policy.
	PolicyName string `pulumi:"policyName"`
	// The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: `Custom` and `System`.
	PolicyType string `pulumi:"policyType"`
	// The time when the policy was updated.
	UpdateDate string `pulumi:"updateDate"`
}

type GetPoliciesPolicyArgs

type GetPoliciesPolicyArgs struct {
	// The number of times the policy is referenced.
	AttachmentCount pulumi.IntInput `pulumi:"attachmentCount"`
	// The default version of the policy.
	DefaultVersion pulumi.StringInput `pulumi:"defaultVersion"`
	// The description of the policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the policy.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: `Custom` and `System`.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
	// The time when the policy was updated.
	UpdateDate pulumi.StringInput `pulumi:"updateDate"`
}

func (GetPoliciesPolicyArgs) ElementType

func (GetPoliciesPolicyArgs) ElementType() reflect.Type

func (GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutput

func (i GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput

func (GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutputWithContext

func (i GetPoliciesPolicyArgs) ToGetPoliciesPolicyOutputWithContext(ctx context.Context) GetPoliciesPolicyOutput

type GetPoliciesPolicyArray

type GetPoliciesPolicyArray []GetPoliciesPolicyInput

func (GetPoliciesPolicyArray) ElementType

func (GetPoliciesPolicyArray) ElementType() reflect.Type

func (GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutput

func (i GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput

func (GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutputWithContext

func (i GetPoliciesPolicyArray) ToGetPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyArrayOutput

type GetPoliciesPolicyArrayInput

type GetPoliciesPolicyArrayInput interface {
	pulumi.Input

	ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput
	ToGetPoliciesPolicyArrayOutputWithContext(context.Context) GetPoliciesPolicyArrayOutput
}

GetPoliciesPolicyArrayInput is an input type that accepts GetPoliciesPolicyArray and GetPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetPoliciesPolicyArrayInput` via:

GetPoliciesPolicyArray{ GetPoliciesPolicyArgs{...} }

type GetPoliciesPolicyArrayOutput

type GetPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetPoliciesPolicyArrayOutput) ElementType

func (GetPoliciesPolicyArrayOutput) Index

func (GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutput

func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutput() GetPoliciesPolicyArrayOutput

func (GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutputWithContext

func (o GetPoliciesPolicyArrayOutput) ToGetPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetPoliciesPolicyArrayOutput

type GetPoliciesPolicyInput

type GetPoliciesPolicyInput interface {
	pulumi.Input

	ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput
	ToGetPoliciesPolicyOutputWithContext(context.Context) GetPoliciesPolicyOutput
}

GetPoliciesPolicyInput is an input type that accepts GetPoliciesPolicyArgs and GetPoliciesPolicyOutput values. You can construct a concrete instance of `GetPoliciesPolicyInput` via:

GetPoliciesPolicyArgs{...}

type GetPoliciesPolicyOutput

type GetPoliciesPolicyOutput struct{ *pulumi.OutputState }

func (GetPoliciesPolicyOutput) AttachmentCount

func (o GetPoliciesPolicyOutput) AttachmentCount() pulumi.IntOutput

The number of times the policy is referenced.

func (GetPoliciesPolicyOutput) DefaultVersion

func (o GetPoliciesPolicyOutput) DefaultVersion() pulumi.StringOutput

The default version of the policy.

func (GetPoliciesPolicyOutput) Description

The description of the policy.

func (GetPoliciesPolicyOutput) ElementType

func (GetPoliciesPolicyOutput) ElementType() reflect.Type

func (GetPoliciesPolicyOutput) Id

The ID of the policy.

func (GetPoliciesPolicyOutput) PolicyName

The name of the policy.

func (GetPoliciesPolicyOutput) PolicyType

The type of the policy. If you do not specify this parameter, the system lists all types of policies. Valid values: `Custom` and `System`.

func (GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutput

func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutput() GetPoliciesPolicyOutput

func (GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutputWithContext

func (o GetPoliciesPolicyOutput) ToGetPoliciesPolicyOutputWithContext(ctx context.Context) GetPoliciesPolicyOutput

func (GetPoliciesPolicyOutput) UpdateDate

The time when the policy was updated.

type GetPoliciesResult

type GetPoliciesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of policy IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of policy names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of policies. Each element contains the following attributes:
	Policies []GetPoliciesPolicy `pulumi:"policies"`
	// The type of the policy.
	PolicyType *string `pulumi:"policyType"`
}

A collection of values returned by getPolicies.

func GetPolicies

func GetPolicies(ctx *pulumi.Context, args *GetPoliciesArgs, opts ...pulumi.InvokeOption) (*GetPoliciesResult, error)

This data source provides the Resource Manager Policies of the current Alibaba Cloud user.

> **NOTE:** Available in 1.86.0+.

type GetPoliciesResultOutput added in v3.9.0

type GetPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicies.

func GetPoliciesOutput added in v3.9.0

func GetPoliciesOutput(ctx *pulumi.Context, args GetPoliciesOutputArgs, opts ...pulumi.InvokeOption) GetPoliciesResultOutput

func (GetPoliciesResultOutput) ElementType added in v3.9.0

func (GetPoliciesResultOutput) ElementType() reflect.Type

func (GetPoliciesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetPoliciesResultOutput) Ids added in v3.9.0

A list of policy IDs.

func (GetPoliciesResultOutput) NameRegex added in v3.9.0

func (GetPoliciesResultOutput) Names added in v3.9.0

A list of policy names.

func (GetPoliciesResultOutput) OutputFile added in v3.9.0

func (GetPoliciesResultOutput) Policies added in v3.9.0

A list of policies. Each element contains the following attributes:

func (GetPoliciesResultOutput) PolicyType added in v3.9.0

The type of the policy.

func (GetPoliciesResultOutput) ToGetPoliciesResultOutput added in v3.9.0

func (o GetPoliciesResultOutput) ToGetPoliciesResultOutput() GetPoliciesResultOutput

func (GetPoliciesResultOutput) ToGetPoliciesResultOutputWithContext added in v3.9.0

func (o GetPoliciesResultOutput) ToGetPoliciesResultOutputWithContext(ctx context.Context) GetPoliciesResultOutput

type GetPolicyAttachmentsArgs

type GetPolicyAttachmentsArgs struct {
	// The language that is used to return the description of the system policy. Valid values:`en`: English, `zh-CN`: Chinese, `ja`: Japanese.
	Language *string `pulumi:"language"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The name of the policy. The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName *string `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom` and `System`.
	PolicyType *string `pulumi:"policyType"`
	// The name of the object to which the policy is attached.
	PrincipalName *string `pulumi:"principalName"`
	// The type of the object to which the policy is attached. If you do not specify this parameter, the system lists all types of objects. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType *string `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. If you do not specify this parameter, the system lists all policy attachment records under the current account.
	ResourceGroupId *string `pulumi:"resourceGroupId"`
}

A collection of arguments for invoking getPolicyAttachments.

type GetPolicyAttachmentsAttachment

type GetPolicyAttachmentsAttachment struct {
	// The time when the policy was attached.
	AttachDate string `pulumi:"attachDate"`
	// The description of the policy.
	Description string `pulumi:"description"`
	// The ID of the Resource Manager Policy Attachment.
	Id string `pulumi:"id"`
	// The name of the policy. The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName string `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom` and `System`.
	PolicyType string `pulumi:"policyType"`
	// The name of the object to which the policy is attached.
	PrincipalName string `pulumi:"principalName"`
	// The type of the object to which the policy is attached. If you do not specify this parameter, the system lists all types of objects. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType string `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. If you do not specify this parameter, the system lists all policy attachment records under the current account.
	ResourceGroupId string `pulumi:"resourceGroupId"`
}

type GetPolicyAttachmentsAttachmentArgs

type GetPolicyAttachmentsAttachmentArgs struct {
	// The time when the policy was attached.
	AttachDate pulumi.StringInput `pulumi:"attachDate"`
	// The description of the policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the Resource Manager Policy Attachment.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the policy. The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom` and `System`.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
	// The name of the object to which the policy is attached.
	PrincipalName pulumi.StringInput `pulumi:"principalName"`
	// The type of the object to which the policy is attached. If you do not specify this parameter, the system lists all types of objects. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType pulumi.StringInput `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. If you do not specify this parameter, the system lists all policy attachment records under the current account.
	ResourceGroupId pulumi.StringInput `pulumi:"resourceGroupId"`
}

func (GetPolicyAttachmentsAttachmentArgs) ElementType

func (GetPolicyAttachmentsAttachmentArgs) ToGetPolicyAttachmentsAttachmentOutput

func (i GetPolicyAttachmentsAttachmentArgs) ToGetPolicyAttachmentsAttachmentOutput() GetPolicyAttachmentsAttachmentOutput

func (GetPolicyAttachmentsAttachmentArgs) ToGetPolicyAttachmentsAttachmentOutputWithContext

func (i GetPolicyAttachmentsAttachmentArgs) ToGetPolicyAttachmentsAttachmentOutputWithContext(ctx context.Context) GetPolicyAttachmentsAttachmentOutput

type GetPolicyAttachmentsAttachmentArray

type GetPolicyAttachmentsAttachmentArray []GetPolicyAttachmentsAttachmentInput

func (GetPolicyAttachmentsAttachmentArray) ElementType

func (GetPolicyAttachmentsAttachmentArray) ToGetPolicyAttachmentsAttachmentArrayOutput

func (i GetPolicyAttachmentsAttachmentArray) ToGetPolicyAttachmentsAttachmentArrayOutput() GetPolicyAttachmentsAttachmentArrayOutput

func (GetPolicyAttachmentsAttachmentArray) ToGetPolicyAttachmentsAttachmentArrayOutputWithContext

func (i GetPolicyAttachmentsAttachmentArray) ToGetPolicyAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetPolicyAttachmentsAttachmentArrayOutput

type GetPolicyAttachmentsAttachmentArrayInput

type GetPolicyAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetPolicyAttachmentsAttachmentArrayOutput() GetPolicyAttachmentsAttachmentArrayOutput
	ToGetPolicyAttachmentsAttachmentArrayOutputWithContext(context.Context) GetPolicyAttachmentsAttachmentArrayOutput
}

GetPolicyAttachmentsAttachmentArrayInput is an input type that accepts GetPolicyAttachmentsAttachmentArray and GetPolicyAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetPolicyAttachmentsAttachmentArrayInput` via:

GetPolicyAttachmentsAttachmentArray{ GetPolicyAttachmentsAttachmentArgs{...} }

type GetPolicyAttachmentsAttachmentArrayOutput

type GetPolicyAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyAttachmentsAttachmentArrayOutput) ElementType

func (GetPolicyAttachmentsAttachmentArrayOutput) Index

func (GetPolicyAttachmentsAttachmentArrayOutput) ToGetPolicyAttachmentsAttachmentArrayOutput

func (o GetPolicyAttachmentsAttachmentArrayOutput) ToGetPolicyAttachmentsAttachmentArrayOutput() GetPolicyAttachmentsAttachmentArrayOutput

func (GetPolicyAttachmentsAttachmentArrayOutput) ToGetPolicyAttachmentsAttachmentArrayOutputWithContext

func (o GetPolicyAttachmentsAttachmentArrayOutput) ToGetPolicyAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetPolicyAttachmentsAttachmentArrayOutput

type GetPolicyAttachmentsAttachmentInput

type GetPolicyAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetPolicyAttachmentsAttachmentOutput() GetPolicyAttachmentsAttachmentOutput
	ToGetPolicyAttachmentsAttachmentOutputWithContext(context.Context) GetPolicyAttachmentsAttachmentOutput
}

GetPolicyAttachmentsAttachmentInput is an input type that accepts GetPolicyAttachmentsAttachmentArgs and GetPolicyAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetPolicyAttachmentsAttachmentInput` via:

GetPolicyAttachmentsAttachmentArgs{...}

type GetPolicyAttachmentsAttachmentOutput

type GetPolicyAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetPolicyAttachmentsAttachmentOutput) AttachDate

The time when the policy was attached.

func (GetPolicyAttachmentsAttachmentOutput) Description

The description of the policy.

func (GetPolicyAttachmentsAttachmentOutput) ElementType

func (GetPolicyAttachmentsAttachmentOutput) Id

The ID of the Resource Manager Policy Attachment.

func (GetPolicyAttachmentsAttachmentOutput) PolicyName

The name of the policy. The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

func (GetPolicyAttachmentsAttachmentOutput) PolicyType

The type of the policy. Valid values: `Custom` and `System`.

func (GetPolicyAttachmentsAttachmentOutput) PrincipalName

The name of the object to which the policy is attached.

func (GetPolicyAttachmentsAttachmentOutput) PrincipalType

The type of the object to which the policy is attached. If you do not specify this parameter, the system lists all types of objects. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.

func (GetPolicyAttachmentsAttachmentOutput) ResourceGroupId

The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. If you do not specify this parameter, the system lists all policy attachment records under the current account.

func (GetPolicyAttachmentsAttachmentOutput) ToGetPolicyAttachmentsAttachmentOutput

func (o GetPolicyAttachmentsAttachmentOutput) ToGetPolicyAttachmentsAttachmentOutput() GetPolicyAttachmentsAttachmentOutput

func (GetPolicyAttachmentsAttachmentOutput) ToGetPolicyAttachmentsAttachmentOutputWithContext

func (o GetPolicyAttachmentsAttachmentOutput) ToGetPolicyAttachmentsAttachmentOutputWithContext(ctx context.Context) GetPolicyAttachmentsAttachmentOutput

type GetPolicyAttachmentsOutputArgs added in v3.9.0

type GetPolicyAttachmentsOutputArgs struct {
	// The language that is used to return the description of the system policy. Valid values:`en`: English, `zh-CN`: Chinese, `ja`: Japanese.
	Language pulumi.StringPtrInput `pulumi:"language"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The name of the policy. The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringPtrInput `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom` and `System`.
	PolicyType pulumi.StringPtrInput `pulumi:"policyType"`
	// The name of the object to which the policy is attached.
	PrincipalName pulumi.StringPtrInput `pulumi:"principalName"`
	// The type of the object to which the policy is attached. If you do not specify this parameter, the system lists all types of objects. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType pulumi.StringPtrInput `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs. If you do not specify this parameter, the system lists all policy attachment records under the current account.
	ResourceGroupId pulumi.StringPtrInput `pulumi:"resourceGroupId"`
}

A collection of arguments for invoking getPolicyAttachments.

func (GetPolicyAttachmentsOutputArgs) ElementType added in v3.9.0

type GetPolicyAttachmentsResult

type GetPolicyAttachmentsResult struct {
	// A list of Resource Manager Policy Attachment. Each element contains the following attributes:
	Attachments []GetPolicyAttachmentsAttachment `pulumi:"attachments"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of Resource Manager Policy Attachment IDs.
	Ids        []string `pulumi:"ids"`
	Language   *string  `pulumi:"language"`
	OutputFile *string  `pulumi:"outputFile"`
	// The name of the policy.
	PolicyName *string `pulumi:"policyName"`
	// The type of the policy.
	PolicyType *string `pulumi:"policyType"`
	// The name of the object to which the policy is attached.
	PrincipalName *string `pulumi:"principalName"`
	// The type of the object to which the policy is attached.
	PrincipalType *string `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.
	ResourceGroupId *string `pulumi:"resourceGroupId"`
}

A collection of values returned by getPolicyAttachments.

func GetPolicyAttachments

func GetPolicyAttachments(ctx *pulumi.Context, args *GetPolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetPolicyAttachmentsResult, error)

This data source provides the Resource Manager Policy Attachments of the current Alibaba Cloud user.

> **NOTE:** Available in 1.93.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetPolicyAttachments(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstAttachmentId", example.Attachments[0].Id)
		return nil
	})
}

```

type GetPolicyAttachmentsResultOutput added in v3.9.0

type GetPolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicyAttachments.

func GetPolicyAttachmentsOutput added in v3.9.0

func (GetPolicyAttachmentsResultOutput) Attachments added in v3.9.0

A list of Resource Manager Policy Attachment. Each element contains the following attributes:

func (GetPolicyAttachmentsResultOutput) ElementType added in v3.9.0

func (GetPolicyAttachmentsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetPolicyAttachmentsResultOutput) Ids added in v3.9.0

A list of Resource Manager Policy Attachment IDs.

func (GetPolicyAttachmentsResultOutput) Language added in v3.9.0

func (GetPolicyAttachmentsResultOutput) OutputFile added in v3.9.0

func (GetPolicyAttachmentsResultOutput) PolicyName added in v3.9.0

The name of the policy.

func (GetPolicyAttachmentsResultOutput) PolicyType added in v3.9.0

The type of the policy.

func (GetPolicyAttachmentsResultOutput) PrincipalName added in v3.9.0

The name of the object to which the policy is attached.

func (GetPolicyAttachmentsResultOutput) PrincipalType added in v3.9.0

The type of the object to which the policy is attached.

func (GetPolicyAttachmentsResultOutput) ResourceGroupId added in v3.9.0

The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.

func (GetPolicyAttachmentsResultOutput) ToGetPolicyAttachmentsResultOutput added in v3.9.0

func (o GetPolicyAttachmentsResultOutput) ToGetPolicyAttachmentsResultOutput() GetPolicyAttachmentsResultOutput

func (GetPolicyAttachmentsResultOutput) ToGetPolicyAttachmentsResultOutputWithContext added in v3.9.0

func (o GetPolicyAttachmentsResultOutput) ToGetPolicyAttachmentsResultOutputWithContext(ctx context.Context) GetPolicyAttachmentsResultOutput

type GetPolicyVersionsArgs

type GetPolicyVersionsArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of policy version IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The name of the policy.
	PolicyName string `pulumi:"policyName"`
	// The type of the policy. Valid values:`Custom` and `System`.
	PolicyType string `pulumi:"policyType"`
}

A collection of arguments for invoking getPolicyVersions.

type GetPolicyVersionsOutputArgs added in v3.9.0

type GetPolicyVersionsOutputArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of policy version IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The name of the policy.
	PolicyName pulumi.StringInput `pulumi:"policyName"`
	// The type of the policy. Valid values:`Custom` and `System`.
	PolicyType pulumi.StringInput `pulumi:"policyType"`
}

A collection of arguments for invoking getPolicyVersions.

func (GetPolicyVersionsOutputArgs) ElementType added in v3.9.0

type GetPolicyVersionsResult

type GetPolicyVersionsResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of policy version IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	PolicyName string   `pulumi:"policyName"`
	PolicyType string   `pulumi:"policyType"`
	// A list of policy versions. Each element contains the following attributes:
	Versions []GetPolicyVersionsVersion `pulumi:"versions"`
}

A collection of values returned by getPolicyVersions.

func GetPolicyVersions

func GetPolicyVersions(ctx *pulumi.Context, args *GetPolicyVersionsArgs, opts ...pulumi.InvokeOption) (*GetPolicyVersionsResult, error)

This data source provides the Resource Manager Policy Versions of the current Alibaba Cloud user.

> **NOTE:** Available in 1.85.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := resourcemanager.GetPolicyVersions(ctx, &resourcemanager.GetPolicyVersionsArgs{
			PolicyName: "tftest",
			PolicyType: "Custom",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstPolicyVersionId", _default.Versions[0].Id)
		return nil
	})
}

```

type GetPolicyVersionsResultOutput added in v3.9.0

type GetPolicyVersionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPolicyVersions.

func GetPolicyVersionsOutput added in v3.9.0

func (GetPolicyVersionsResultOutput) ElementType added in v3.9.0

func (GetPolicyVersionsResultOutput) EnableDetails added in v3.9.0

func (GetPolicyVersionsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetPolicyVersionsResultOutput) Ids added in v3.9.0

A list of policy version IDs.

func (GetPolicyVersionsResultOutput) OutputFile added in v3.9.0

func (GetPolicyVersionsResultOutput) PolicyName added in v3.9.0

func (GetPolicyVersionsResultOutput) PolicyType added in v3.9.0

func (GetPolicyVersionsResultOutput) ToGetPolicyVersionsResultOutput added in v3.9.0

func (o GetPolicyVersionsResultOutput) ToGetPolicyVersionsResultOutput() GetPolicyVersionsResultOutput

func (GetPolicyVersionsResultOutput) ToGetPolicyVersionsResultOutputWithContext added in v3.9.0

func (o GetPolicyVersionsResultOutput) ToGetPolicyVersionsResultOutputWithContext(ctx context.Context) GetPolicyVersionsResultOutput

func (GetPolicyVersionsResultOutput) Versions added in v3.9.0

A list of policy versions. Each element contains the following attributes:

type GetPolicyVersionsVersion

type GetPolicyVersionsVersion struct {
	// The ID of the resource, the value is `<policy_name>`:`<version_id>`.
	Id string `pulumi:"id"`
	// Indicates whether the policy version is the default version.
	IsDefaultVersion bool `pulumi:"isDefaultVersion"`
	// (Available in v1.114.0+) The policy document of the policy version.
	PolicyDocument string `pulumi:"policyDocument"`
	// The ID of the policy version.
	VersionId string `pulumi:"versionId"`
}

type GetPolicyVersionsVersionArgs

type GetPolicyVersionsVersionArgs struct {
	// The ID of the resource, the value is `<policy_name>`:`<version_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// Indicates whether the policy version is the default version.
	IsDefaultVersion pulumi.BoolInput `pulumi:"isDefaultVersion"`
	// (Available in v1.114.0+) The policy document of the policy version.
	PolicyDocument pulumi.StringInput `pulumi:"policyDocument"`
	// The ID of the policy version.
	VersionId pulumi.StringInput `pulumi:"versionId"`
}

func (GetPolicyVersionsVersionArgs) ElementType

func (GetPolicyVersionsVersionArgs) ToGetPolicyVersionsVersionOutput

func (i GetPolicyVersionsVersionArgs) ToGetPolicyVersionsVersionOutput() GetPolicyVersionsVersionOutput

func (GetPolicyVersionsVersionArgs) ToGetPolicyVersionsVersionOutputWithContext

func (i GetPolicyVersionsVersionArgs) ToGetPolicyVersionsVersionOutputWithContext(ctx context.Context) GetPolicyVersionsVersionOutput

type GetPolicyVersionsVersionArray

type GetPolicyVersionsVersionArray []GetPolicyVersionsVersionInput

func (GetPolicyVersionsVersionArray) ElementType

func (GetPolicyVersionsVersionArray) ToGetPolicyVersionsVersionArrayOutput

func (i GetPolicyVersionsVersionArray) ToGetPolicyVersionsVersionArrayOutput() GetPolicyVersionsVersionArrayOutput

func (GetPolicyVersionsVersionArray) ToGetPolicyVersionsVersionArrayOutputWithContext

func (i GetPolicyVersionsVersionArray) ToGetPolicyVersionsVersionArrayOutputWithContext(ctx context.Context) GetPolicyVersionsVersionArrayOutput

type GetPolicyVersionsVersionArrayInput

type GetPolicyVersionsVersionArrayInput interface {
	pulumi.Input

	ToGetPolicyVersionsVersionArrayOutput() GetPolicyVersionsVersionArrayOutput
	ToGetPolicyVersionsVersionArrayOutputWithContext(context.Context) GetPolicyVersionsVersionArrayOutput
}

GetPolicyVersionsVersionArrayInput is an input type that accepts GetPolicyVersionsVersionArray and GetPolicyVersionsVersionArrayOutput values. You can construct a concrete instance of `GetPolicyVersionsVersionArrayInput` via:

GetPolicyVersionsVersionArray{ GetPolicyVersionsVersionArgs{...} }

type GetPolicyVersionsVersionArrayOutput

type GetPolicyVersionsVersionArrayOutput struct{ *pulumi.OutputState }

func (GetPolicyVersionsVersionArrayOutput) ElementType

func (GetPolicyVersionsVersionArrayOutput) Index

func (GetPolicyVersionsVersionArrayOutput) ToGetPolicyVersionsVersionArrayOutput

func (o GetPolicyVersionsVersionArrayOutput) ToGetPolicyVersionsVersionArrayOutput() GetPolicyVersionsVersionArrayOutput

func (GetPolicyVersionsVersionArrayOutput) ToGetPolicyVersionsVersionArrayOutputWithContext

func (o GetPolicyVersionsVersionArrayOutput) ToGetPolicyVersionsVersionArrayOutputWithContext(ctx context.Context) GetPolicyVersionsVersionArrayOutput

type GetPolicyVersionsVersionInput

type GetPolicyVersionsVersionInput interface {
	pulumi.Input

	ToGetPolicyVersionsVersionOutput() GetPolicyVersionsVersionOutput
	ToGetPolicyVersionsVersionOutputWithContext(context.Context) GetPolicyVersionsVersionOutput
}

GetPolicyVersionsVersionInput is an input type that accepts GetPolicyVersionsVersionArgs and GetPolicyVersionsVersionOutput values. You can construct a concrete instance of `GetPolicyVersionsVersionInput` via:

GetPolicyVersionsVersionArgs{...}

type GetPolicyVersionsVersionOutput

type GetPolicyVersionsVersionOutput struct{ *pulumi.OutputState }

func (GetPolicyVersionsVersionOutput) ElementType

func (GetPolicyVersionsVersionOutput) Id

The ID of the resource, the value is `<policy_name>`:`<version_id>`.

func (GetPolicyVersionsVersionOutput) IsDefaultVersion

func (o GetPolicyVersionsVersionOutput) IsDefaultVersion() pulumi.BoolOutput

Indicates whether the policy version is the default version.

func (GetPolicyVersionsVersionOutput) PolicyDocument

(Available in v1.114.0+) The policy document of the policy version.

func (GetPolicyVersionsVersionOutput) ToGetPolicyVersionsVersionOutput

func (o GetPolicyVersionsVersionOutput) ToGetPolicyVersionsVersionOutput() GetPolicyVersionsVersionOutput

func (GetPolicyVersionsVersionOutput) ToGetPolicyVersionsVersionOutputWithContext

func (o GetPolicyVersionsVersionOutput) ToGetPolicyVersionsVersionOutputWithContext(ctx context.Context) GetPolicyVersionsVersionOutput

func (GetPolicyVersionsVersionOutput) VersionId

The ID of the policy version.

type GetResourceDirectoriesArgs

type GetResourceDirectoriesArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getResourceDirectories.

type GetResourceDirectoriesDirectory

type GetResourceDirectoriesDirectory struct {
	// The ID of resource directory.
	Id string `pulumi:"id"`
	// The ID of the master account.
	MasterAccountId string `pulumi:"masterAccountId"`
	// The name of the master account.
	MasterAccountName string `pulumi:"masterAccountName"`
	// The ID of the resource directory.
	ResourceDirectoryId string `pulumi:"resourceDirectoryId"`
	// The ID of the root folder.
	RootFolderId string `pulumi:"rootFolderId"`
	// (Available in 1.120.0+.) The status of the control policy.
	Status string `pulumi:"status"`
}

type GetResourceDirectoriesDirectoryArgs

type GetResourceDirectoriesDirectoryArgs struct {
	// The ID of resource directory.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the master account.
	MasterAccountId pulumi.StringInput `pulumi:"masterAccountId"`
	// The name of the master account.
	MasterAccountName pulumi.StringInput `pulumi:"masterAccountName"`
	// The ID of the resource directory.
	ResourceDirectoryId pulumi.StringInput `pulumi:"resourceDirectoryId"`
	// The ID of the root folder.
	RootFolderId pulumi.StringInput `pulumi:"rootFolderId"`
	// (Available in 1.120.0+.) The status of the control policy.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetResourceDirectoriesDirectoryArgs) ElementType

func (GetResourceDirectoriesDirectoryArgs) ToGetResourceDirectoriesDirectoryOutput

func (i GetResourceDirectoriesDirectoryArgs) ToGetResourceDirectoriesDirectoryOutput() GetResourceDirectoriesDirectoryOutput

func (GetResourceDirectoriesDirectoryArgs) ToGetResourceDirectoriesDirectoryOutputWithContext

func (i GetResourceDirectoriesDirectoryArgs) ToGetResourceDirectoriesDirectoryOutputWithContext(ctx context.Context) GetResourceDirectoriesDirectoryOutput

type GetResourceDirectoriesDirectoryArray

type GetResourceDirectoriesDirectoryArray []GetResourceDirectoriesDirectoryInput

func (GetResourceDirectoriesDirectoryArray) ElementType

func (GetResourceDirectoriesDirectoryArray) ToGetResourceDirectoriesDirectoryArrayOutput

func (i GetResourceDirectoriesDirectoryArray) ToGetResourceDirectoriesDirectoryArrayOutput() GetResourceDirectoriesDirectoryArrayOutput

func (GetResourceDirectoriesDirectoryArray) ToGetResourceDirectoriesDirectoryArrayOutputWithContext

func (i GetResourceDirectoriesDirectoryArray) ToGetResourceDirectoriesDirectoryArrayOutputWithContext(ctx context.Context) GetResourceDirectoriesDirectoryArrayOutput

type GetResourceDirectoriesDirectoryArrayInput

type GetResourceDirectoriesDirectoryArrayInput interface {
	pulumi.Input

	ToGetResourceDirectoriesDirectoryArrayOutput() GetResourceDirectoriesDirectoryArrayOutput
	ToGetResourceDirectoriesDirectoryArrayOutputWithContext(context.Context) GetResourceDirectoriesDirectoryArrayOutput
}

GetResourceDirectoriesDirectoryArrayInput is an input type that accepts GetResourceDirectoriesDirectoryArray and GetResourceDirectoriesDirectoryArrayOutput values. You can construct a concrete instance of `GetResourceDirectoriesDirectoryArrayInput` via:

GetResourceDirectoriesDirectoryArray{ GetResourceDirectoriesDirectoryArgs{...} }

type GetResourceDirectoriesDirectoryArrayOutput

type GetResourceDirectoriesDirectoryArrayOutput struct{ *pulumi.OutputState }

func (GetResourceDirectoriesDirectoryArrayOutput) ElementType

func (GetResourceDirectoriesDirectoryArrayOutput) Index

func (GetResourceDirectoriesDirectoryArrayOutput) ToGetResourceDirectoriesDirectoryArrayOutput

func (o GetResourceDirectoriesDirectoryArrayOutput) ToGetResourceDirectoriesDirectoryArrayOutput() GetResourceDirectoriesDirectoryArrayOutput

func (GetResourceDirectoriesDirectoryArrayOutput) ToGetResourceDirectoriesDirectoryArrayOutputWithContext

func (o GetResourceDirectoriesDirectoryArrayOutput) ToGetResourceDirectoriesDirectoryArrayOutputWithContext(ctx context.Context) GetResourceDirectoriesDirectoryArrayOutput

type GetResourceDirectoriesDirectoryInput

type GetResourceDirectoriesDirectoryInput interface {
	pulumi.Input

	ToGetResourceDirectoriesDirectoryOutput() GetResourceDirectoriesDirectoryOutput
	ToGetResourceDirectoriesDirectoryOutputWithContext(context.Context) GetResourceDirectoriesDirectoryOutput
}

GetResourceDirectoriesDirectoryInput is an input type that accepts GetResourceDirectoriesDirectoryArgs and GetResourceDirectoriesDirectoryOutput values. You can construct a concrete instance of `GetResourceDirectoriesDirectoryInput` via:

GetResourceDirectoriesDirectoryArgs{...}

type GetResourceDirectoriesDirectoryOutput

type GetResourceDirectoriesDirectoryOutput struct{ *pulumi.OutputState }

func (GetResourceDirectoriesDirectoryOutput) ElementType

func (GetResourceDirectoriesDirectoryOutput) Id

The ID of resource directory.

func (GetResourceDirectoriesDirectoryOutput) MasterAccountId

The ID of the master account.

func (GetResourceDirectoriesDirectoryOutput) MasterAccountName

The name of the master account.

func (GetResourceDirectoriesDirectoryOutput) ResourceDirectoryId

The ID of the resource directory.

func (GetResourceDirectoriesDirectoryOutput) RootFolderId

The ID of the root folder.

func (GetResourceDirectoriesDirectoryOutput) Status

(Available in 1.120.0+.) The status of the control policy.

func (GetResourceDirectoriesDirectoryOutput) ToGetResourceDirectoriesDirectoryOutput

func (o GetResourceDirectoriesDirectoryOutput) ToGetResourceDirectoriesDirectoryOutput() GetResourceDirectoriesDirectoryOutput

func (GetResourceDirectoriesDirectoryOutput) ToGetResourceDirectoriesDirectoryOutputWithContext

func (o GetResourceDirectoriesDirectoryOutput) ToGetResourceDirectoriesDirectoryOutputWithContext(ctx context.Context) GetResourceDirectoriesDirectoryOutput

type GetResourceDirectoriesOutputArgs added in v3.9.0

type GetResourceDirectoriesOutputArgs struct {
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getResourceDirectories.

func (GetResourceDirectoriesOutputArgs) ElementType added in v3.9.0

type GetResourceDirectoriesResult

type GetResourceDirectoriesResult struct {
	// A list of resource directories. Each element contains the following attributes:
	Directories []GetResourceDirectoriesDirectory `pulumi:"directories"`
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of values returned by getResourceDirectories.

func GetResourceDirectories

func GetResourceDirectories(ctx *pulumi.Context, args *GetResourceDirectoriesArgs, opts ...pulumi.InvokeOption) (*GetResourceDirectoriesResult, error)

This data source provides the Resource Manager Resource Directories of the current Alibaba Cloud user.

> **NOTE:** Available in 1.86.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := resourcemanager.GetResourceDirectories(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("resourceDirectoryId", _default.Directories[0].Id)
		return nil
	})
}

```

type GetResourceDirectoriesResultOutput added in v3.9.0

type GetResourceDirectoriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getResourceDirectories.

func GetResourceDirectoriesOutput added in v3.9.0

func (GetResourceDirectoriesResultOutput) Directories added in v3.9.0

A list of resource directories. Each element contains the following attributes:

func (GetResourceDirectoriesResultOutput) ElementType added in v3.9.0

func (GetResourceDirectoriesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetResourceDirectoriesResultOutput) OutputFile added in v3.9.0

func (GetResourceDirectoriesResultOutput) ToGetResourceDirectoriesResultOutput added in v3.9.0

func (o GetResourceDirectoriesResultOutput) ToGetResourceDirectoriesResultOutput() GetResourceDirectoriesResultOutput

func (GetResourceDirectoriesResultOutput) ToGetResourceDirectoriesResultOutputWithContext added in v3.9.0

func (o GetResourceDirectoriesResultOutput) ToGetResourceDirectoriesResultOutputWithContext(ctx context.Context) GetResourceDirectoriesResultOutput

type GetResourceGroupsArgs

type GetResourceGroupsArgs struct {
	// Set it to true can output more details. Default value: `false`.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of resource group IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by resource group identifier.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getResourceGroups.

type GetResourceGroupsGroup

type GetResourceGroupsGroup struct {
	// The ID of the Alibaba Cloud account to which the resource group belongs.
	AccountId string `pulumi:"accountId"`
	// The display name of the resource group.
	DisplayName string `pulumi:"displayName"`
	// The ID of the resource group.
	Id string `pulumi:"id"`
	// The unique identifier of the resource group.
	Name string `pulumi:"name"`
	// (Available since v1.114.0) The status of the resource group in all regions.
	RegionStatuses []GetResourceGroupsGroupRegionStatus `pulumi:"regionStatuses"`
	// (Available since v1.114.0) The unique identifier of the resource group.
	ResourceGroupName string `pulumi:"resourceGroupName"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status string `pulumi:"status"`
}

type GetResourceGroupsGroupArgs

type GetResourceGroupsGroupArgs struct {
	// The ID of the Alibaba Cloud account to which the resource group belongs.
	AccountId pulumi.StringInput `pulumi:"accountId"`
	// The display name of the resource group.
	DisplayName pulumi.StringInput `pulumi:"displayName"`
	// The ID of the resource group.
	Id pulumi.StringInput `pulumi:"id"`
	// The unique identifier of the resource group.
	Name pulumi.StringInput `pulumi:"name"`
	// (Available since v1.114.0) The status of the resource group in all regions.
	RegionStatuses GetResourceGroupsGroupRegionStatusArrayInput `pulumi:"regionStatuses"`
	// (Available since v1.114.0) The unique identifier of the resource group.
	ResourceGroupName pulumi.StringInput `pulumi:"resourceGroupName"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetResourceGroupsGroupArgs) ElementType

func (GetResourceGroupsGroupArgs) ElementType() reflect.Type

func (GetResourceGroupsGroupArgs) ToGetResourceGroupsGroupOutput

func (i GetResourceGroupsGroupArgs) ToGetResourceGroupsGroupOutput() GetResourceGroupsGroupOutput

func (GetResourceGroupsGroupArgs) ToGetResourceGroupsGroupOutputWithContext

func (i GetResourceGroupsGroupArgs) ToGetResourceGroupsGroupOutputWithContext(ctx context.Context) GetResourceGroupsGroupOutput

type GetResourceGroupsGroupArray

type GetResourceGroupsGroupArray []GetResourceGroupsGroupInput

func (GetResourceGroupsGroupArray) ElementType

func (GetResourceGroupsGroupArray) ToGetResourceGroupsGroupArrayOutput

func (i GetResourceGroupsGroupArray) ToGetResourceGroupsGroupArrayOutput() GetResourceGroupsGroupArrayOutput

func (GetResourceGroupsGroupArray) ToGetResourceGroupsGroupArrayOutputWithContext

func (i GetResourceGroupsGroupArray) ToGetResourceGroupsGroupArrayOutputWithContext(ctx context.Context) GetResourceGroupsGroupArrayOutput

type GetResourceGroupsGroupArrayInput

type GetResourceGroupsGroupArrayInput interface {
	pulumi.Input

	ToGetResourceGroupsGroupArrayOutput() GetResourceGroupsGroupArrayOutput
	ToGetResourceGroupsGroupArrayOutputWithContext(context.Context) GetResourceGroupsGroupArrayOutput
}

GetResourceGroupsGroupArrayInput is an input type that accepts GetResourceGroupsGroupArray and GetResourceGroupsGroupArrayOutput values. You can construct a concrete instance of `GetResourceGroupsGroupArrayInput` via:

GetResourceGroupsGroupArray{ GetResourceGroupsGroupArgs{...} }

type GetResourceGroupsGroupArrayOutput

type GetResourceGroupsGroupArrayOutput struct{ *pulumi.OutputState }

func (GetResourceGroupsGroupArrayOutput) ElementType

func (GetResourceGroupsGroupArrayOutput) Index

func (GetResourceGroupsGroupArrayOutput) ToGetResourceGroupsGroupArrayOutput

func (o GetResourceGroupsGroupArrayOutput) ToGetResourceGroupsGroupArrayOutput() GetResourceGroupsGroupArrayOutput

func (GetResourceGroupsGroupArrayOutput) ToGetResourceGroupsGroupArrayOutputWithContext

func (o GetResourceGroupsGroupArrayOutput) ToGetResourceGroupsGroupArrayOutputWithContext(ctx context.Context) GetResourceGroupsGroupArrayOutput

type GetResourceGroupsGroupInput

type GetResourceGroupsGroupInput interface {
	pulumi.Input

	ToGetResourceGroupsGroupOutput() GetResourceGroupsGroupOutput
	ToGetResourceGroupsGroupOutputWithContext(context.Context) GetResourceGroupsGroupOutput
}

GetResourceGroupsGroupInput is an input type that accepts GetResourceGroupsGroupArgs and GetResourceGroupsGroupOutput values. You can construct a concrete instance of `GetResourceGroupsGroupInput` via:

GetResourceGroupsGroupArgs{...}

type GetResourceGroupsGroupOutput

type GetResourceGroupsGroupOutput struct{ *pulumi.OutputState }

func (GetResourceGroupsGroupOutput) AccountId

The ID of the Alibaba Cloud account to which the resource group belongs.

func (GetResourceGroupsGroupOutput) DisplayName

The display name of the resource group.

func (GetResourceGroupsGroupOutput) ElementType

func (GetResourceGroupsGroupOutput) Id

The ID of the resource group.

func (GetResourceGroupsGroupOutput) Name

The unique identifier of the resource group.

func (GetResourceGroupsGroupOutput) RegionStatuses

(Available since v1.114.0) The status of the resource group in all regions.

func (GetResourceGroupsGroupOutput) ResourceGroupName

func (o GetResourceGroupsGroupOutput) ResourceGroupName() pulumi.StringOutput

(Available since v1.114.0) The unique identifier of the resource group.

func (GetResourceGroupsGroupOutput) Status

The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.

func (GetResourceGroupsGroupOutput) ToGetResourceGroupsGroupOutput

func (o GetResourceGroupsGroupOutput) ToGetResourceGroupsGroupOutput() GetResourceGroupsGroupOutput

func (GetResourceGroupsGroupOutput) ToGetResourceGroupsGroupOutputWithContext

func (o GetResourceGroupsGroupOutput) ToGetResourceGroupsGroupOutputWithContext(ctx context.Context) GetResourceGroupsGroupOutput

type GetResourceGroupsGroupRegionStatus

type GetResourceGroupsGroupRegionStatus struct {
	// The region ID.
	RegionId string `pulumi:"regionId"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status string `pulumi:"status"`
}

type GetResourceGroupsGroupRegionStatusArgs

type GetResourceGroupsGroupRegionStatusArgs struct {
	// The region ID.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetResourceGroupsGroupRegionStatusArgs) ElementType

func (GetResourceGroupsGroupRegionStatusArgs) ToGetResourceGroupsGroupRegionStatusOutput

func (i GetResourceGroupsGroupRegionStatusArgs) ToGetResourceGroupsGroupRegionStatusOutput() GetResourceGroupsGroupRegionStatusOutput

func (GetResourceGroupsGroupRegionStatusArgs) ToGetResourceGroupsGroupRegionStatusOutputWithContext

func (i GetResourceGroupsGroupRegionStatusArgs) ToGetResourceGroupsGroupRegionStatusOutputWithContext(ctx context.Context) GetResourceGroupsGroupRegionStatusOutput

type GetResourceGroupsGroupRegionStatusArray

type GetResourceGroupsGroupRegionStatusArray []GetResourceGroupsGroupRegionStatusInput

func (GetResourceGroupsGroupRegionStatusArray) ElementType

func (GetResourceGroupsGroupRegionStatusArray) ToGetResourceGroupsGroupRegionStatusArrayOutput

func (i GetResourceGroupsGroupRegionStatusArray) ToGetResourceGroupsGroupRegionStatusArrayOutput() GetResourceGroupsGroupRegionStatusArrayOutput

func (GetResourceGroupsGroupRegionStatusArray) ToGetResourceGroupsGroupRegionStatusArrayOutputWithContext

func (i GetResourceGroupsGroupRegionStatusArray) ToGetResourceGroupsGroupRegionStatusArrayOutputWithContext(ctx context.Context) GetResourceGroupsGroupRegionStatusArrayOutput

type GetResourceGroupsGroupRegionStatusArrayInput

type GetResourceGroupsGroupRegionStatusArrayInput interface {
	pulumi.Input

	ToGetResourceGroupsGroupRegionStatusArrayOutput() GetResourceGroupsGroupRegionStatusArrayOutput
	ToGetResourceGroupsGroupRegionStatusArrayOutputWithContext(context.Context) GetResourceGroupsGroupRegionStatusArrayOutput
}

GetResourceGroupsGroupRegionStatusArrayInput is an input type that accepts GetResourceGroupsGroupRegionStatusArray and GetResourceGroupsGroupRegionStatusArrayOutput values. You can construct a concrete instance of `GetResourceGroupsGroupRegionStatusArrayInput` via:

GetResourceGroupsGroupRegionStatusArray{ GetResourceGroupsGroupRegionStatusArgs{...} }

type GetResourceGroupsGroupRegionStatusArrayOutput

type GetResourceGroupsGroupRegionStatusArrayOutput struct{ *pulumi.OutputState }

func (GetResourceGroupsGroupRegionStatusArrayOutput) ElementType

func (GetResourceGroupsGroupRegionStatusArrayOutput) Index

func (GetResourceGroupsGroupRegionStatusArrayOutput) ToGetResourceGroupsGroupRegionStatusArrayOutput

func (o GetResourceGroupsGroupRegionStatusArrayOutput) ToGetResourceGroupsGroupRegionStatusArrayOutput() GetResourceGroupsGroupRegionStatusArrayOutput

func (GetResourceGroupsGroupRegionStatusArrayOutput) ToGetResourceGroupsGroupRegionStatusArrayOutputWithContext

func (o GetResourceGroupsGroupRegionStatusArrayOutput) ToGetResourceGroupsGroupRegionStatusArrayOutputWithContext(ctx context.Context) GetResourceGroupsGroupRegionStatusArrayOutput

type GetResourceGroupsGroupRegionStatusInput

type GetResourceGroupsGroupRegionStatusInput interface {
	pulumi.Input

	ToGetResourceGroupsGroupRegionStatusOutput() GetResourceGroupsGroupRegionStatusOutput
	ToGetResourceGroupsGroupRegionStatusOutputWithContext(context.Context) GetResourceGroupsGroupRegionStatusOutput
}

GetResourceGroupsGroupRegionStatusInput is an input type that accepts GetResourceGroupsGroupRegionStatusArgs and GetResourceGroupsGroupRegionStatusOutput values. You can construct a concrete instance of `GetResourceGroupsGroupRegionStatusInput` via:

GetResourceGroupsGroupRegionStatusArgs{...}

type GetResourceGroupsGroupRegionStatusOutput

type GetResourceGroupsGroupRegionStatusOutput struct{ *pulumi.OutputState }

func (GetResourceGroupsGroupRegionStatusOutput) ElementType

func (GetResourceGroupsGroupRegionStatusOutput) RegionId

The region ID.

func (GetResourceGroupsGroupRegionStatusOutput) Status

The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.

func (GetResourceGroupsGroupRegionStatusOutput) ToGetResourceGroupsGroupRegionStatusOutput

func (o GetResourceGroupsGroupRegionStatusOutput) ToGetResourceGroupsGroupRegionStatusOutput() GetResourceGroupsGroupRegionStatusOutput

func (GetResourceGroupsGroupRegionStatusOutput) ToGetResourceGroupsGroupRegionStatusOutputWithContext

func (o GetResourceGroupsGroupRegionStatusOutput) ToGetResourceGroupsGroupRegionStatusOutputWithContext(ctx context.Context) GetResourceGroupsGroupRegionStatusOutput

type GetResourceGroupsOutputArgs added in v3.9.0

type GetResourceGroupsOutputArgs struct {
	// Set it to true can output more details. Default value: `false`.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of resource group IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by resource group identifier.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the resource group. Valid values: `Creating`, `Deleted`, `Deleting`, `OK` and `PendingDelete`. **NOTE:** From version 1.114.0, `status` can be set to `Deleting`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getResourceGroups.

func (GetResourceGroupsOutputArgs) ElementType added in v3.9.0

type GetResourceGroupsResult

type GetResourceGroupsResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of resource groups. Each element contains the following attributes:
	Groups []GetResourceGroupsGroup `pulumi:"groups"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of resource group IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of resource group identifiers.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the regional resource group.
	Status *string `pulumi:"status"`
}

A collection of values returned by getResourceGroups.

func GetResourceGroups

func GetResourceGroups(ctx *pulumi.Context, args *GetResourceGroupsArgs, opts ...pulumi.InvokeOption) (*GetResourceGroupsResult, error)

This data source provides resource groups of the current Alibaba Cloud user.

> **NOTE:** Available since v1.84.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
			NameRegex: pulumi.StringRef("tf"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstResourceGroupId", example.Groups[0].Id)
		return nil
	})
}

```

type GetResourceGroupsResultOutput added in v3.9.0

type GetResourceGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getResourceGroups.

func GetResourceGroupsOutput added in v3.9.0

func (GetResourceGroupsResultOutput) ElementType added in v3.9.0

func (GetResourceGroupsResultOutput) EnableDetails added in v3.9.0

func (GetResourceGroupsResultOutput) Groups added in v3.9.0

A list of resource groups. Each element contains the following attributes:

func (GetResourceGroupsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetResourceGroupsResultOutput) Ids added in v3.9.0

A list of resource group IDs.

func (GetResourceGroupsResultOutput) NameRegex added in v3.9.0

func (GetResourceGroupsResultOutput) Names added in v3.9.0

A list of resource group identifiers.

func (GetResourceGroupsResultOutput) OutputFile added in v3.9.0

func (GetResourceGroupsResultOutput) Status added in v3.9.0

The status of the regional resource group.

func (GetResourceGroupsResultOutput) ToGetResourceGroupsResultOutput added in v3.9.0

func (o GetResourceGroupsResultOutput) ToGetResourceGroupsResultOutput() GetResourceGroupsResultOutput

func (GetResourceGroupsResultOutput) ToGetResourceGroupsResultOutputWithContext added in v3.9.0

func (o GetResourceGroupsResultOutput) ToGetResourceGroupsResultOutputWithContext(ctx context.Context) GetResourceGroupsResultOutput

type GetResourceSharesArgs

type GetResourceSharesArgs struct {
	// A list of Resource Share IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Resource Share name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The name of resource share.
	ResourceShareName *string `pulumi:"resourceShareName"`
	// The owner of resource share.
	ResourceShareOwner string `pulumi:"resourceShareOwner"`
	// The status of resource share.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getResourceShares.

type GetResourceSharesOutputArgs added in v3.9.0

type GetResourceSharesOutputArgs struct {
	// A list of Resource Share IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Resource Share name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The name of resource share.
	ResourceShareName pulumi.StringPtrInput `pulumi:"resourceShareName"`
	// The owner of resource share.
	ResourceShareOwner pulumi.StringInput `pulumi:"resourceShareOwner"`
	// The status of resource share.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getResourceShares.

func (GetResourceSharesOutputArgs) ElementType added in v3.9.0

type GetResourceSharesResult

type GetResourceSharesResult 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"`
	OutputFile         *string                  `pulumi:"outputFile"`
	ResourceShareName  *string                  `pulumi:"resourceShareName"`
	ResourceShareOwner string                   `pulumi:"resourceShareOwner"`
	Shares             []GetResourceSharesShare `pulumi:"shares"`
	Status             *string                  `pulumi:"status"`
}

A collection of values returned by getResourceShares.

func GetResourceShares

func GetResourceShares(ctx *pulumi.Context, args *GetResourceSharesArgs, opts ...pulumi.InvokeOption) (*GetResourceSharesResult, error)

This data source provides the Resource Manager Resource Shares of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetResourceShares(ctx, &resourcemanager.GetResourceSharesArgs{
			ResourceShareOwner: "Self",
			Ids: []string{
				"example_value",
			},
			NameRegex: pulumi.StringRef("the_resource_name"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstResourceManagerResourceShareId", example.Shares[0].Id)
		return nil
	})
}

```

type GetResourceSharesResultOutput added in v3.9.0

type GetResourceSharesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getResourceShares.

func GetResourceSharesOutput added in v3.9.0

func (GetResourceSharesResultOutput) ElementType added in v3.9.0

func (GetResourceSharesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetResourceSharesResultOutput) Ids added in v3.9.0

func (GetResourceSharesResultOutput) NameRegex added in v3.9.0

func (GetResourceSharesResultOutput) Names added in v3.9.0

func (GetResourceSharesResultOutput) OutputFile added in v3.9.0

func (GetResourceSharesResultOutput) ResourceShareName added in v3.9.0

func (GetResourceSharesResultOutput) ResourceShareOwner added in v3.9.0

func (o GetResourceSharesResultOutput) ResourceShareOwner() pulumi.StringOutput

func (GetResourceSharesResultOutput) Shares added in v3.9.0

func (GetResourceSharesResultOutput) Status added in v3.9.0

func (GetResourceSharesResultOutput) ToGetResourceSharesResultOutput added in v3.9.0

func (o GetResourceSharesResultOutput) ToGetResourceSharesResultOutput() GetResourceSharesResultOutput

func (GetResourceSharesResultOutput) ToGetResourceSharesResultOutputWithContext added in v3.9.0

func (o GetResourceSharesResultOutput) ToGetResourceSharesResultOutputWithContext(ctx context.Context) GetResourceSharesResultOutput

type GetResourceSharesShare

type GetResourceSharesShare struct {
	// The ID of the Resource Share.
	Id string `pulumi:"id"`
	// The ID of the resource share.
	ResourceShareId string `pulumi:"resourceShareId"`
	// The name of resource share.
	ResourceShareName string `pulumi:"resourceShareName"`
	// The owner of resource share.
	ResourceShareOwner string `pulumi:"resourceShareOwner"`
	// The status of resource share.
	Status string `pulumi:"status"`
}

type GetResourceSharesShareArgs

type GetResourceSharesShareArgs struct {
	// The ID of the Resource Share.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the resource share.
	ResourceShareId pulumi.StringInput `pulumi:"resourceShareId"`
	// The name of resource share.
	ResourceShareName pulumi.StringInput `pulumi:"resourceShareName"`
	// The owner of resource share.
	ResourceShareOwner pulumi.StringInput `pulumi:"resourceShareOwner"`
	// The status of resource share.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetResourceSharesShareArgs) ElementType

func (GetResourceSharesShareArgs) ElementType() reflect.Type

func (GetResourceSharesShareArgs) ToGetResourceSharesShareOutput

func (i GetResourceSharesShareArgs) ToGetResourceSharesShareOutput() GetResourceSharesShareOutput

func (GetResourceSharesShareArgs) ToGetResourceSharesShareOutputWithContext

func (i GetResourceSharesShareArgs) ToGetResourceSharesShareOutputWithContext(ctx context.Context) GetResourceSharesShareOutput

type GetResourceSharesShareArray

type GetResourceSharesShareArray []GetResourceSharesShareInput

func (GetResourceSharesShareArray) ElementType

func (GetResourceSharesShareArray) ToGetResourceSharesShareArrayOutput

func (i GetResourceSharesShareArray) ToGetResourceSharesShareArrayOutput() GetResourceSharesShareArrayOutput

func (GetResourceSharesShareArray) ToGetResourceSharesShareArrayOutputWithContext

func (i GetResourceSharesShareArray) ToGetResourceSharesShareArrayOutputWithContext(ctx context.Context) GetResourceSharesShareArrayOutput

type GetResourceSharesShareArrayInput

type GetResourceSharesShareArrayInput interface {
	pulumi.Input

	ToGetResourceSharesShareArrayOutput() GetResourceSharesShareArrayOutput
	ToGetResourceSharesShareArrayOutputWithContext(context.Context) GetResourceSharesShareArrayOutput
}

GetResourceSharesShareArrayInput is an input type that accepts GetResourceSharesShareArray and GetResourceSharesShareArrayOutput values. You can construct a concrete instance of `GetResourceSharesShareArrayInput` via:

GetResourceSharesShareArray{ GetResourceSharesShareArgs{...} }

type GetResourceSharesShareArrayOutput

type GetResourceSharesShareArrayOutput struct{ *pulumi.OutputState }

func (GetResourceSharesShareArrayOutput) ElementType

func (GetResourceSharesShareArrayOutput) Index

func (GetResourceSharesShareArrayOutput) ToGetResourceSharesShareArrayOutput

func (o GetResourceSharesShareArrayOutput) ToGetResourceSharesShareArrayOutput() GetResourceSharesShareArrayOutput

func (GetResourceSharesShareArrayOutput) ToGetResourceSharesShareArrayOutputWithContext

func (o GetResourceSharesShareArrayOutput) ToGetResourceSharesShareArrayOutputWithContext(ctx context.Context) GetResourceSharesShareArrayOutput

type GetResourceSharesShareInput

type GetResourceSharesShareInput interface {
	pulumi.Input

	ToGetResourceSharesShareOutput() GetResourceSharesShareOutput
	ToGetResourceSharesShareOutputWithContext(context.Context) GetResourceSharesShareOutput
}

GetResourceSharesShareInput is an input type that accepts GetResourceSharesShareArgs and GetResourceSharesShareOutput values. You can construct a concrete instance of `GetResourceSharesShareInput` via:

GetResourceSharesShareArgs{...}

type GetResourceSharesShareOutput

type GetResourceSharesShareOutput struct{ *pulumi.OutputState }

func (GetResourceSharesShareOutput) ElementType

func (GetResourceSharesShareOutput) Id

The ID of the Resource Share.

func (GetResourceSharesShareOutput) ResourceShareId

func (o GetResourceSharesShareOutput) ResourceShareId() pulumi.StringOutput

The ID of the resource share.

func (GetResourceSharesShareOutput) ResourceShareName

func (o GetResourceSharesShareOutput) ResourceShareName() pulumi.StringOutput

The name of resource share.

func (GetResourceSharesShareOutput) ResourceShareOwner

func (o GetResourceSharesShareOutput) ResourceShareOwner() pulumi.StringOutput

The owner of resource share.

func (GetResourceSharesShareOutput) Status

The status of resource share.

func (GetResourceSharesShareOutput) ToGetResourceSharesShareOutput

func (o GetResourceSharesShareOutput) ToGetResourceSharesShareOutput() GetResourceSharesShareOutput

func (GetResourceSharesShareOutput) ToGetResourceSharesShareOutputWithContext

func (o GetResourceSharesShareOutput) ToGetResourceSharesShareOutputWithContext(ctx context.Context) GetResourceSharesShareOutput

type GetRolesArgs

type GetRolesArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A list of Resource Manager Role IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by role name.
	NameRegex *string `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getRoles.

type GetRolesOutputArgs added in v3.9.0

type GetRolesOutputArgs struct {
	// Default to `false`. Set it to true can output more details.
	EnableDetails pulumi.BoolPtrInput `pulumi:"enableDetails"`
	// A list of Resource Manager Role IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by role name.
	NameRegex pulumi.StringPtrInput `pulumi:"nameRegex"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getRoles.

func (GetRolesOutputArgs) ElementType added in v3.9.0

func (GetRolesOutputArgs) ElementType() reflect.Type

type GetRolesResult

type GetRolesResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of role IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of role names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of roles. Each element contains the following attributes:
	Roles []GetRolesRole `pulumi:"roles"`
}

A collection of values returned by getRoles.

func GetRoles

func GetRoles(ctx *pulumi.Context, args *GetRolesArgs, opts ...pulumi.InvokeOption) (*GetRolesResult, error)

This data source provides the Resource Manager Roles of the current Alibaba Cloud user.

> **NOTE:** Available in 1.86.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := resourcemanager.GetRoles(ctx, &resourcemanager.GetRolesArgs{
			NameRegex: pulumi.StringRef("tftest"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRoleId", example.Roles[0].Id)
		return nil
	})
}

```

type GetRolesResultOutput added in v3.9.0

type GetRolesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRoles.

func GetRolesOutput added in v3.9.0

func GetRolesOutput(ctx *pulumi.Context, args GetRolesOutputArgs, opts ...pulumi.InvokeOption) GetRolesResultOutput

func (GetRolesResultOutput) ElementType added in v3.9.0

func (GetRolesResultOutput) ElementType() reflect.Type

func (GetRolesResultOutput) EnableDetails added in v3.9.0

func (o GetRolesResultOutput) EnableDetails() pulumi.BoolPtrOutput

func (GetRolesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetRolesResultOutput) Ids added in v3.9.0

A list of role IDs.

func (GetRolesResultOutput) NameRegex added in v3.9.0

func (GetRolesResultOutput) Names added in v3.9.0

A list of role names.

func (GetRolesResultOutput) OutputFile added in v3.9.0

func (GetRolesResultOutput) Roles added in v3.9.0

A list of roles. Each element contains the following attributes:

func (GetRolesResultOutput) ToGetRolesResultOutput added in v3.9.0

func (o GetRolesResultOutput) ToGetRolesResultOutput() GetRolesResultOutput

func (GetRolesResultOutput) ToGetRolesResultOutputWithContext added in v3.9.0

func (o GetRolesResultOutput) ToGetRolesResultOutputWithContext(ctx context.Context) GetRolesResultOutput

type GetRolesRole

type GetRolesRole struct {
	// The Alibaba Cloud Resource Name (ARN) of the RAM role.
	Arn string `pulumi:"arn"`
	// (Available in v1.114.0+) The assume role policy document.
	AssumeRolePolicyDocument string `pulumi:"assumeRolePolicyDocument"`
	// The description of the RAM role.
	Description string `pulumi:"description"`
	// The ID of the role.
	Id string `pulumi:"id"`
	// The maximum session duration of the RAM role.
	MaxSessionDuration int `pulumi:"maxSessionDuration"`
	// The ID of the role.
	RoleId string `pulumi:"roleId"`
	// The name of the role.
	RoleName string `pulumi:"roleName"`
	// The time when the RAM role was updated.
	UpdateDate string `pulumi:"updateDate"`
}

type GetRolesRoleArgs

type GetRolesRoleArgs struct {
	// The Alibaba Cloud Resource Name (ARN) of the RAM role.
	Arn pulumi.StringInput `pulumi:"arn"`
	// (Available in v1.114.0+) The assume role policy document.
	AssumeRolePolicyDocument pulumi.StringInput `pulumi:"assumeRolePolicyDocument"`
	// The description of the RAM role.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the role.
	Id pulumi.StringInput `pulumi:"id"`
	// The maximum session duration of the RAM role.
	MaxSessionDuration pulumi.IntInput `pulumi:"maxSessionDuration"`
	// The ID of the role.
	RoleId pulumi.StringInput `pulumi:"roleId"`
	// The name of the role.
	RoleName pulumi.StringInput `pulumi:"roleName"`
	// The time when the RAM role was updated.
	UpdateDate pulumi.StringInput `pulumi:"updateDate"`
}

func (GetRolesRoleArgs) ElementType

func (GetRolesRoleArgs) ElementType() reflect.Type

func (GetRolesRoleArgs) ToGetRolesRoleOutput

func (i GetRolesRoleArgs) ToGetRolesRoleOutput() GetRolesRoleOutput

func (GetRolesRoleArgs) ToGetRolesRoleOutputWithContext

func (i GetRolesRoleArgs) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput

type GetRolesRoleArray

type GetRolesRoleArray []GetRolesRoleInput

func (GetRolesRoleArray) ElementType

func (GetRolesRoleArray) ElementType() reflect.Type

func (GetRolesRoleArray) ToGetRolesRoleArrayOutput

func (i GetRolesRoleArray) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput

func (GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext

func (i GetRolesRoleArray) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput

type GetRolesRoleArrayInput

type GetRolesRoleArrayInput interface {
	pulumi.Input

	ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput
	ToGetRolesRoleArrayOutputWithContext(context.Context) GetRolesRoleArrayOutput
}

GetRolesRoleArrayInput is an input type that accepts GetRolesRoleArray and GetRolesRoleArrayOutput values. You can construct a concrete instance of `GetRolesRoleArrayInput` via:

GetRolesRoleArray{ GetRolesRoleArgs{...} }

type GetRolesRoleArrayOutput

type GetRolesRoleArrayOutput struct{ *pulumi.OutputState }

func (GetRolesRoleArrayOutput) ElementType

func (GetRolesRoleArrayOutput) ElementType() reflect.Type

func (GetRolesRoleArrayOutput) Index

func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput

func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutput() GetRolesRoleArrayOutput

func (GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext

func (o GetRolesRoleArrayOutput) ToGetRolesRoleArrayOutputWithContext(ctx context.Context) GetRolesRoleArrayOutput

type GetRolesRoleInput

type GetRolesRoleInput interface {
	pulumi.Input

	ToGetRolesRoleOutput() GetRolesRoleOutput
	ToGetRolesRoleOutputWithContext(context.Context) GetRolesRoleOutput
}

GetRolesRoleInput is an input type that accepts GetRolesRoleArgs and GetRolesRoleOutput values. You can construct a concrete instance of `GetRolesRoleInput` via:

GetRolesRoleArgs{...}

type GetRolesRoleOutput

type GetRolesRoleOutput struct{ *pulumi.OutputState }

func (GetRolesRoleOutput) Arn

The Alibaba Cloud Resource Name (ARN) of the RAM role.

func (GetRolesRoleOutput) AssumeRolePolicyDocument

func (o GetRolesRoleOutput) AssumeRolePolicyDocument() pulumi.StringOutput

(Available in v1.114.0+) The assume role policy document.

func (GetRolesRoleOutput) Description

func (o GetRolesRoleOutput) Description() pulumi.StringOutput

The description of the RAM role.

func (GetRolesRoleOutput) ElementType

func (GetRolesRoleOutput) ElementType() reflect.Type

func (GetRolesRoleOutput) Id

The ID of the role.

func (GetRolesRoleOutput) MaxSessionDuration

func (o GetRolesRoleOutput) MaxSessionDuration() pulumi.IntOutput

The maximum session duration of the RAM role.

func (GetRolesRoleOutput) RoleId

The ID of the role.

func (GetRolesRoleOutput) RoleName

func (o GetRolesRoleOutput) RoleName() pulumi.StringOutput

The name of the role.

func (GetRolesRoleOutput) ToGetRolesRoleOutput

func (o GetRolesRoleOutput) ToGetRolesRoleOutput() GetRolesRoleOutput

func (GetRolesRoleOutput) ToGetRolesRoleOutputWithContext

func (o GetRolesRoleOutput) ToGetRolesRoleOutputWithContext(ctx context.Context) GetRolesRoleOutput

func (GetRolesRoleOutput) UpdateDate

func (o GetRolesRoleOutput) UpdateDate() pulumi.StringOutput

The time when the RAM role was updated.

type GetSharedResourcesArgs

type GetSharedResourcesArgs struct {
	// A list of shared resource IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The resource share ID of resource manager.
	ResourceShareId *string `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getSharedResources.

type GetSharedResourcesOutputArgs added in v3.9.0

type GetSharedResourcesOutputArgs struct {
	// A list of shared resource IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringPtrInput `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getSharedResources.

func (GetSharedResourcesOutputArgs) ElementType added in v3.9.0

type GetSharedResourcesResource

type GetSharedResourcesResource struct {
	// The ID of the Shared Resource. It formats as `<resource_id>:<resource_type>`.
	Id string `pulumi:"id"`
	// The ID of the shared resource.
	ResourceId string `pulumi:"resourceId"`
	// The resource share ID of resource manager.
	ResourceShareId string `pulumi:"resourceShareId"`
	// The type of shared resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status string `pulumi:"status"`
}

type GetSharedResourcesResourceArgs

type GetSharedResourcesResourceArgs struct {
	// The ID of the Shared Resource. It formats as `<resource_id>:<resource_type>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the shared resource.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringInput `pulumi:"resourceShareId"`
	// The type of shared resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetSharedResourcesResourceArgs) ElementType

func (GetSharedResourcesResourceArgs) ToGetSharedResourcesResourceOutput

func (i GetSharedResourcesResourceArgs) ToGetSharedResourcesResourceOutput() GetSharedResourcesResourceOutput

func (GetSharedResourcesResourceArgs) ToGetSharedResourcesResourceOutputWithContext

func (i GetSharedResourcesResourceArgs) ToGetSharedResourcesResourceOutputWithContext(ctx context.Context) GetSharedResourcesResourceOutput

type GetSharedResourcesResourceArray

type GetSharedResourcesResourceArray []GetSharedResourcesResourceInput

func (GetSharedResourcesResourceArray) ElementType

func (GetSharedResourcesResourceArray) ToGetSharedResourcesResourceArrayOutput

func (i GetSharedResourcesResourceArray) ToGetSharedResourcesResourceArrayOutput() GetSharedResourcesResourceArrayOutput

func (GetSharedResourcesResourceArray) ToGetSharedResourcesResourceArrayOutputWithContext

func (i GetSharedResourcesResourceArray) ToGetSharedResourcesResourceArrayOutputWithContext(ctx context.Context) GetSharedResourcesResourceArrayOutput

type GetSharedResourcesResourceArrayInput

type GetSharedResourcesResourceArrayInput interface {
	pulumi.Input

	ToGetSharedResourcesResourceArrayOutput() GetSharedResourcesResourceArrayOutput
	ToGetSharedResourcesResourceArrayOutputWithContext(context.Context) GetSharedResourcesResourceArrayOutput
}

GetSharedResourcesResourceArrayInput is an input type that accepts GetSharedResourcesResourceArray and GetSharedResourcesResourceArrayOutput values. You can construct a concrete instance of `GetSharedResourcesResourceArrayInput` via:

GetSharedResourcesResourceArray{ GetSharedResourcesResourceArgs{...} }

type GetSharedResourcesResourceArrayOutput

type GetSharedResourcesResourceArrayOutput struct{ *pulumi.OutputState }

func (GetSharedResourcesResourceArrayOutput) ElementType

func (GetSharedResourcesResourceArrayOutput) Index

func (GetSharedResourcesResourceArrayOutput) ToGetSharedResourcesResourceArrayOutput

func (o GetSharedResourcesResourceArrayOutput) ToGetSharedResourcesResourceArrayOutput() GetSharedResourcesResourceArrayOutput

func (GetSharedResourcesResourceArrayOutput) ToGetSharedResourcesResourceArrayOutputWithContext

func (o GetSharedResourcesResourceArrayOutput) ToGetSharedResourcesResourceArrayOutputWithContext(ctx context.Context) GetSharedResourcesResourceArrayOutput

type GetSharedResourcesResourceInput

type GetSharedResourcesResourceInput interface {
	pulumi.Input

	ToGetSharedResourcesResourceOutput() GetSharedResourcesResourceOutput
	ToGetSharedResourcesResourceOutputWithContext(context.Context) GetSharedResourcesResourceOutput
}

GetSharedResourcesResourceInput is an input type that accepts GetSharedResourcesResourceArgs and GetSharedResourcesResourceOutput values. You can construct a concrete instance of `GetSharedResourcesResourceInput` via:

GetSharedResourcesResourceArgs{...}

type GetSharedResourcesResourceOutput

type GetSharedResourcesResourceOutput struct{ *pulumi.OutputState }

func (GetSharedResourcesResourceOutput) ElementType

func (GetSharedResourcesResourceOutput) Id

The ID of the Shared Resource. It formats as `<resource_id>:<resource_type>`.

func (GetSharedResourcesResourceOutput) ResourceId

The ID of the shared resource.

func (GetSharedResourcesResourceOutput) ResourceShareId

The resource share ID of resource manager.

func (GetSharedResourcesResourceOutput) ResourceType

The type of shared resource.

func (GetSharedResourcesResourceOutput) Status

The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.

func (GetSharedResourcesResourceOutput) ToGetSharedResourcesResourceOutput

func (o GetSharedResourcesResourceOutput) ToGetSharedResourcesResourceOutput() GetSharedResourcesResourceOutput

func (GetSharedResourcesResourceOutput) ToGetSharedResourcesResourceOutputWithContext

func (o GetSharedResourcesResourceOutput) ToGetSharedResourcesResourceOutputWithContext(ctx context.Context) GetSharedResourcesResourceOutput

type GetSharedResourcesResult

type GetSharedResourcesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The resource share ID of resource manager.
	ResourceShareId *string `pulumi:"resourceShareId"`
	// A list of Resource Manager Shared Resources. Each element contains the following attributes:
	Resources []GetSharedResourcesResource `pulumi:"resources"`
	// The status of shared resource.
	Status *string `pulumi:"status"`
}

A collection of values returned by getSharedResources.

func GetSharedResources

func GetSharedResources(ctx *pulumi.Context, args *GetSharedResourcesArgs, opts ...pulumi.InvokeOption) (*GetSharedResourcesResult, error)

This data source provides the Resource Manager Shared Resources of the current Alibaba Cloud user.

> **NOTE:** Available since v1.111.0.

type GetSharedResourcesResultOutput added in v3.9.0

type GetSharedResourcesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSharedResources.

func GetSharedResourcesOutput added in v3.9.0

func (GetSharedResourcesResultOutput) ElementType added in v3.9.0

func (GetSharedResourcesResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetSharedResourcesResultOutput) Ids added in v3.9.0

func (GetSharedResourcesResultOutput) OutputFile added in v3.9.0

func (GetSharedResourcesResultOutput) ResourceShareId added in v3.9.0

The resource share ID of resource manager.

func (GetSharedResourcesResultOutput) Resources added in v3.9.0

A list of Resource Manager Shared Resources. Each element contains the following attributes:

func (GetSharedResourcesResultOutput) Status added in v3.9.0

The status of shared resource.

func (GetSharedResourcesResultOutput) ToGetSharedResourcesResultOutput added in v3.9.0

func (o GetSharedResourcesResultOutput) ToGetSharedResourcesResultOutput() GetSharedResourcesResultOutput

func (GetSharedResourcesResultOutput) ToGetSharedResourcesResultOutputWithContext added in v3.9.0

func (o GetSharedResourcesResultOutput) ToGetSharedResourcesResultOutputWithContext(ctx context.Context) GetSharedResourcesResultOutput

type GetSharedTargetsArgs

type GetSharedTargetsArgs struct {
	// A list of Shared Target IDs.
	Ids []string `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile *string `pulumi:"outputFile"`
	// The resource share ID of resource manager.
	ResourceShareId *string `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getSharedTargets.

type GetSharedTargetsOutputArgs added in v3.9.0

type GetSharedTargetsOutputArgs struct {
	// A list of Shared Target IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// File name where to save data source results (after running `pulumi preview`).
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringPtrInput `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getSharedTargets.

func (GetSharedTargetsOutputArgs) ElementType added in v3.9.0

func (GetSharedTargetsOutputArgs) ElementType() reflect.Type

type GetSharedTargetsResult

type GetSharedTargetsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The resource shared ID of resource manager.
	ResourceShareId *string `pulumi:"resourceShareId"`
	// The status of shared target.
	Status *string `pulumi:"status"`
	// A list of Resource Manager Shared Targets. Each element contains the following attributes:
	Targets []GetSharedTargetsTarget `pulumi:"targets"`
}

A collection of values returned by getSharedTargets.

func GetSharedTargets

func GetSharedTargets(ctx *pulumi.Context, args *GetSharedTargetsArgs, opts ...pulumi.InvokeOption) (*GetSharedTargetsResult, error)

This data source provides the Resource Manager Shared Targets of the current Alibaba Cloud user.

> **NOTE:** Available since v1.111.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := resourcemanager.GetAccounts(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultResourceShare, err := resourcemanager.NewResourceShare(ctx, "default", &resourcemanager.ResourceShareArgs{
			ResourceShareName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultSharedTarget, err := resourcemanager.NewSharedTarget(ctx, "default", &resourcemanager.SharedTargetArgs{
			ResourceShareId: defaultResourceShare.ID(),
			TargetId:        pulumi.String(_default.Ids[0]),
		})
		if err != nil {
			return err
		}
		ids := resourcemanager.GetSharedTargetsOutput(ctx, resourcemanager.GetSharedTargetsOutputArgs{
			Ids: pulumi.StringArray{
				defaultSharedTarget.TargetId,
			},
		}, nil)
		ctx.Export("firstResourceManagerSharedTargetId", ids.ApplyT(func(ids resourcemanager.GetSharedTargetsResult) (*string, error) {
			return &ids.Targets[0].Id, nil
		}).(pulumi.StringPtrOutput))
		resourceShareId := resourcemanager.GetSharedTargetsOutput(ctx, resourcemanager.GetSharedTargetsOutputArgs{
			ResourceShareId: defaultSharedTarget.ResourceShareId,
		}, nil)
		ctx.Export("secondResourceManagerSharedTargetId", resourceShareId.ApplyT(func(resourceShareId resourcemanager.GetSharedTargetsResult) (*string, error) {
			return &resourceShareId.Targets[0].Id, nil
		}).(pulumi.StringPtrOutput))
		return nil
	})
}

```

type GetSharedTargetsResultOutput added in v3.9.0

type GetSharedTargetsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSharedTargets.

func GetSharedTargetsOutput added in v3.9.0

func (GetSharedTargetsResultOutput) ElementType added in v3.9.0

func (GetSharedTargetsResultOutput) Id added in v3.9.0

The provider-assigned unique ID for this managed resource.

func (GetSharedTargetsResultOutput) Ids added in v3.9.0

func (GetSharedTargetsResultOutput) OutputFile added in v3.9.0

func (GetSharedTargetsResultOutput) ResourceShareId added in v3.9.0

The resource shared ID of resource manager.

func (GetSharedTargetsResultOutput) Status added in v3.9.0

The status of shared target.

func (GetSharedTargetsResultOutput) Targets added in v3.9.0

A list of Resource Manager Shared Targets. Each element contains the following attributes:

func (GetSharedTargetsResultOutput) ToGetSharedTargetsResultOutput added in v3.9.0

func (o GetSharedTargetsResultOutput) ToGetSharedTargetsResultOutput() GetSharedTargetsResultOutput

func (GetSharedTargetsResultOutput) ToGetSharedTargetsResultOutputWithContext added in v3.9.0

func (o GetSharedTargetsResultOutput) ToGetSharedTargetsResultOutputWithContext(ctx context.Context) GetSharedTargetsResultOutput

type GetSharedTargetsTarget

type GetSharedTargetsTarget struct {
	// The ID of the Shared Target.
	Id string `pulumi:"id"`
	// The resource share ID of resource manager.
	ResourceShareId string `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status string `pulumi:"status"`
	// The ID of the Shared Target.
	TargetId string `pulumi:"targetId"`
}

type GetSharedTargetsTargetArgs

type GetSharedTargetsTargetArgs struct {
	// The ID of the Shared Target.
	Id pulumi.StringInput `pulumi:"id"`
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringInput `pulumi:"resourceShareId"`
	// The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID of the Shared Target.
	TargetId pulumi.StringInput `pulumi:"targetId"`
}

func (GetSharedTargetsTargetArgs) ElementType

func (GetSharedTargetsTargetArgs) ElementType() reflect.Type

func (GetSharedTargetsTargetArgs) ToGetSharedTargetsTargetOutput

func (i GetSharedTargetsTargetArgs) ToGetSharedTargetsTargetOutput() GetSharedTargetsTargetOutput

func (GetSharedTargetsTargetArgs) ToGetSharedTargetsTargetOutputWithContext

func (i GetSharedTargetsTargetArgs) ToGetSharedTargetsTargetOutputWithContext(ctx context.Context) GetSharedTargetsTargetOutput

type GetSharedTargetsTargetArray

type GetSharedTargetsTargetArray []GetSharedTargetsTargetInput

func (GetSharedTargetsTargetArray) ElementType

func (GetSharedTargetsTargetArray) ToGetSharedTargetsTargetArrayOutput

func (i GetSharedTargetsTargetArray) ToGetSharedTargetsTargetArrayOutput() GetSharedTargetsTargetArrayOutput

func (GetSharedTargetsTargetArray) ToGetSharedTargetsTargetArrayOutputWithContext

func (i GetSharedTargetsTargetArray) ToGetSharedTargetsTargetArrayOutputWithContext(ctx context.Context) GetSharedTargetsTargetArrayOutput

type GetSharedTargetsTargetArrayInput

type GetSharedTargetsTargetArrayInput interface {
	pulumi.Input

	ToGetSharedTargetsTargetArrayOutput() GetSharedTargetsTargetArrayOutput
	ToGetSharedTargetsTargetArrayOutputWithContext(context.Context) GetSharedTargetsTargetArrayOutput
}

GetSharedTargetsTargetArrayInput is an input type that accepts GetSharedTargetsTargetArray and GetSharedTargetsTargetArrayOutput values. You can construct a concrete instance of `GetSharedTargetsTargetArrayInput` via:

GetSharedTargetsTargetArray{ GetSharedTargetsTargetArgs{...} }

type GetSharedTargetsTargetArrayOutput

type GetSharedTargetsTargetArrayOutput struct{ *pulumi.OutputState }

func (GetSharedTargetsTargetArrayOutput) ElementType

func (GetSharedTargetsTargetArrayOutput) Index

func (GetSharedTargetsTargetArrayOutput) ToGetSharedTargetsTargetArrayOutput

func (o GetSharedTargetsTargetArrayOutput) ToGetSharedTargetsTargetArrayOutput() GetSharedTargetsTargetArrayOutput

func (GetSharedTargetsTargetArrayOutput) ToGetSharedTargetsTargetArrayOutputWithContext

func (o GetSharedTargetsTargetArrayOutput) ToGetSharedTargetsTargetArrayOutputWithContext(ctx context.Context) GetSharedTargetsTargetArrayOutput

type GetSharedTargetsTargetInput

type GetSharedTargetsTargetInput interface {
	pulumi.Input

	ToGetSharedTargetsTargetOutput() GetSharedTargetsTargetOutput
	ToGetSharedTargetsTargetOutputWithContext(context.Context) GetSharedTargetsTargetOutput
}

GetSharedTargetsTargetInput is an input type that accepts GetSharedTargetsTargetArgs and GetSharedTargetsTargetOutput values. You can construct a concrete instance of `GetSharedTargetsTargetInput` via:

GetSharedTargetsTargetArgs{...}

type GetSharedTargetsTargetOutput

type GetSharedTargetsTargetOutput struct{ *pulumi.OutputState }

func (GetSharedTargetsTargetOutput) ElementType

func (GetSharedTargetsTargetOutput) Id

The ID of the Shared Target.

func (GetSharedTargetsTargetOutput) ResourceShareId

func (o GetSharedTargetsTargetOutput) ResourceShareId() pulumi.StringOutput

The resource share ID of resource manager.

func (GetSharedTargetsTargetOutput) Status

The status of share resource. Valid values: `Associated`, `Associating`, `Disassociated`, `Disassociating` and `Failed`.

func (GetSharedTargetsTargetOutput) TargetId

The ID of the Shared Target.

func (GetSharedTargetsTargetOutput) ToGetSharedTargetsTargetOutput

func (o GetSharedTargetsTargetOutput) ToGetSharedTargetsTargetOutput() GetSharedTargetsTargetOutput

func (GetSharedTargetsTargetOutput) ToGetSharedTargetsTargetOutputWithContext

func (o GetSharedTargetsTargetOutput) ToGetSharedTargetsTargetOutputWithContext(ctx context.Context) GetSharedTargetsTargetOutput

type Handshake

type Handshake struct {
	pulumi.CustomResourceState

	// The expiration time of the invitation.
	ExpireTime pulumi.StringOutput `pulumi:"expireTime"`
	// Resource account master account ID.
	MasterAccountId pulumi.StringOutput `pulumi:"masterAccountId"`
	// The name of the main account of the resource directory.
	MasterAccountName pulumi.StringOutput `pulumi:"masterAccountName"`
	// The modification time of the invitation.
	ModifyTime pulumi.StringOutput `pulumi:"modifyTime"`
	// Remarks. The maximum length is 1024 characters.
	Note pulumi.StringPtrOutput `pulumi:"note"`
	// Resource directory ID.
	ResourceDirectoryId pulumi.StringOutput `pulumi:"resourceDirectoryId"`
	// Invitation status. Valid values: `Pending` waiting for confirmation, `Accepted`, `Cancelled`, `Declined`, `Expired`.
	Status pulumi.StringOutput `pulumi:"status"`
	// Invited account ID or login email.
	TargetEntity pulumi.StringOutput `pulumi:"targetEntity"`
	// Type of account being invited. Valid values: `Account`, `Email`.
	TargetType pulumi.StringOutput `pulumi:"targetType"`
}

Provides a Resource Manager handshake resource. You can invite accounts to join a resource directory for unified management. For information about Resource Manager handshake and how to use it, see [What is Resource Manager handshake](https://www.alibabacloud.com/help/en/doc-detail/135287.htm).

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Add a Resource Manager handshake.
		_, err := resourcemanager.NewHandshake(ctx, "example", &resourcemanager.HandshakeArgs{
			TargetEntity: pulumi.String("1182775234******"),
			TargetType:   pulumi.String("Account"),
			Note:         pulumi.String("test resource manager handshake"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager handshake can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/handshake:Handshake example h-QmdexeFm1kE***** ```

func GetHandshake

func GetHandshake(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *HandshakeState, opts ...pulumi.ResourceOption) (*Handshake, error)

GetHandshake gets an existing Handshake 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 NewHandshake

func NewHandshake(ctx *pulumi.Context,
	name string, args *HandshakeArgs, opts ...pulumi.ResourceOption) (*Handshake, error)

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

func (*Handshake) ElementType

func (*Handshake) ElementType() reflect.Type

func (*Handshake) ToHandshakeOutput

func (i *Handshake) ToHandshakeOutput() HandshakeOutput

func (*Handshake) ToHandshakeOutputWithContext

func (i *Handshake) ToHandshakeOutputWithContext(ctx context.Context) HandshakeOutput

type HandshakeArgs

type HandshakeArgs struct {
	// Remarks. The maximum length is 1024 characters.
	Note pulumi.StringPtrInput
	// Invited account ID or login email.
	TargetEntity pulumi.StringInput
	// Type of account being invited. Valid values: `Account`, `Email`.
	TargetType pulumi.StringInput
}

The set of arguments for constructing a Handshake resource.

func (HandshakeArgs) ElementType

func (HandshakeArgs) ElementType() reflect.Type

type HandshakeArray

type HandshakeArray []HandshakeInput

func (HandshakeArray) ElementType

func (HandshakeArray) ElementType() reflect.Type

func (HandshakeArray) ToHandshakeArrayOutput

func (i HandshakeArray) ToHandshakeArrayOutput() HandshakeArrayOutput

func (HandshakeArray) ToHandshakeArrayOutputWithContext

func (i HandshakeArray) ToHandshakeArrayOutputWithContext(ctx context.Context) HandshakeArrayOutput

type HandshakeArrayInput

type HandshakeArrayInput interface {
	pulumi.Input

	ToHandshakeArrayOutput() HandshakeArrayOutput
	ToHandshakeArrayOutputWithContext(context.Context) HandshakeArrayOutput
}

HandshakeArrayInput is an input type that accepts HandshakeArray and HandshakeArrayOutput values. You can construct a concrete instance of `HandshakeArrayInput` via:

HandshakeArray{ HandshakeArgs{...} }

type HandshakeArrayOutput

type HandshakeArrayOutput struct{ *pulumi.OutputState }

func (HandshakeArrayOutput) ElementType

func (HandshakeArrayOutput) ElementType() reflect.Type

func (HandshakeArrayOutput) Index

func (HandshakeArrayOutput) ToHandshakeArrayOutput

func (o HandshakeArrayOutput) ToHandshakeArrayOutput() HandshakeArrayOutput

func (HandshakeArrayOutput) ToHandshakeArrayOutputWithContext

func (o HandshakeArrayOutput) ToHandshakeArrayOutputWithContext(ctx context.Context) HandshakeArrayOutput

type HandshakeInput

type HandshakeInput interface {
	pulumi.Input

	ToHandshakeOutput() HandshakeOutput
	ToHandshakeOutputWithContext(ctx context.Context) HandshakeOutput
}

type HandshakeMap

type HandshakeMap map[string]HandshakeInput

func (HandshakeMap) ElementType

func (HandshakeMap) ElementType() reflect.Type

func (HandshakeMap) ToHandshakeMapOutput

func (i HandshakeMap) ToHandshakeMapOutput() HandshakeMapOutput

func (HandshakeMap) ToHandshakeMapOutputWithContext

func (i HandshakeMap) ToHandshakeMapOutputWithContext(ctx context.Context) HandshakeMapOutput

type HandshakeMapInput

type HandshakeMapInput interface {
	pulumi.Input

	ToHandshakeMapOutput() HandshakeMapOutput
	ToHandshakeMapOutputWithContext(context.Context) HandshakeMapOutput
}

HandshakeMapInput is an input type that accepts HandshakeMap and HandshakeMapOutput values. You can construct a concrete instance of `HandshakeMapInput` via:

HandshakeMap{ "key": HandshakeArgs{...} }

type HandshakeMapOutput

type HandshakeMapOutput struct{ *pulumi.OutputState }

func (HandshakeMapOutput) ElementType

func (HandshakeMapOutput) ElementType() reflect.Type

func (HandshakeMapOutput) MapIndex

func (HandshakeMapOutput) ToHandshakeMapOutput

func (o HandshakeMapOutput) ToHandshakeMapOutput() HandshakeMapOutput

func (HandshakeMapOutput) ToHandshakeMapOutputWithContext

func (o HandshakeMapOutput) ToHandshakeMapOutputWithContext(ctx context.Context) HandshakeMapOutput

type HandshakeOutput

type HandshakeOutput struct{ *pulumi.OutputState }

func (HandshakeOutput) ElementType

func (HandshakeOutput) ElementType() reflect.Type

func (HandshakeOutput) ExpireTime added in v3.27.0

func (o HandshakeOutput) ExpireTime() pulumi.StringOutput

The expiration time of the invitation.

func (HandshakeOutput) MasterAccountId added in v3.27.0

func (o HandshakeOutput) MasterAccountId() pulumi.StringOutput

Resource account master account ID.

func (HandshakeOutput) MasterAccountName added in v3.27.0

func (o HandshakeOutput) MasterAccountName() pulumi.StringOutput

The name of the main account of the resource directory.

func (HandshakeOutput) ModifyTime added in v3.27.0

func (o HandshakeOutput) ModifyTime() pulumi.StringOutput

The modification time of the invitation.

func (HandshakeOutput) Note added in v3.27.0

Remarks. The maximum length is 1024 characters.

func (HandshakeOutput) ResourceDirectoryId added in v3.27.0

func (o HandshakeOutput) ResourceDirectoryId() pulumi.StringOutput

Resource directory ID.

func (HandshakeOutput) Status added in v3.27.0

func (o HandshakeOutput) Status() pulumi.StringOutput

Invitation status. Valid values: `Pending` waiting for confirmation, `Accepted`, `Cancelled`, `Declined`, `Expired`.

func (HandshakeOutput) TargetEntity added in v3.27.0

func (o HandshakeOutput) TargetEntity() pulumi.StringOutput

Invited account ID or login email.

func (HandshakeOutput) TargetType added in v3.27.0

func (o HandshakeOutput) TargetType() pulumi.StringOutput

Type of account being invited. Valid values: `Account`, `Email`.

func (HandshakeOutput) ToHandshakeOutput

func (o HandshakeOutput) ToHandshakeOutput() HandshakeOutput

func (HandshakeOutput) ToHandshakeOutputWithContext

func (o HandshakeOutput) ToHandshakeOutputWithContext(ctx context.Context) HandshakeOutput

type HandshakeState

type HandshakeState struct {
	// The expiration time of the invitation.
	ExpireTime pulumi.StringPtrInput
	// Resource account master account ID.
	MasterAccountId pulumi.StringPtrInput
	// The name of the main account of the resource directory.
	MasterAccountName pulumi.StringPtrInput
	// The modification time of the invitation.
	ModifyTime pulumi.StringPtrInput
	// Remarks. The maximum length is 1024 characters.
	Note pulumi.StringPtrInput
	// Resource directory ID.
	ResourceDirectoryId pulumi.StringPtrInput
	// Invitation status. Valid values: `Pending` waiting for confirmation, `Accepted`, `Cancelled`, `Declined`, `Expired`.
	Status pulumi.StringPtrInput
	// Invited account ID or login email.
	TargetEntity pulumi.StringPtrInput
	// Type of account being invited. Valid values: `Account`, `Email`.
	TargetType pulumi.StringPtrInput
}

func (HandshakeState) ElementType

func (HandshakeState) ElementType() reflect.Type

type Policy

type Policy struct {
	pulumi.CustomResourceState

	// The version of the policy. Default to v1.
	//
	// Deprecated: Field 'default_version' has been deprecated from provider version 1.90.0
	DefaultVersion pulumi.StringOutput `pulumi:"defaultVersion"`
	// The description of the policy. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringOutput `pulumi:"policyDocument"`
	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom`, `System`.
	PolicyType pulumi.StringOutput `pulumi:"policyType"`
}

Provides a Resource Manager Policy resource.\ For information about Resource Manager Policy and how to use it, see [What is Resource Manager Policy](https://www.alibabacloud.com/help/en/doc-detail/93732.htm).

> **NOTE:** Available since v1.83.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tfexample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.NewPolicy(ctx, "example", &resourcemanager.PolicyArgs{
			PolicyName: pulumi.String(name),
			PolicyDocument: pulumi.String(`		{
			"Statement": [{
				"Action": ["oss:*"],
				"Effect": "Allow",
				"Resource": ["acs:oss:*:*:*"]
			}],
			"Version": "1"
		}

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Policy can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/policy:Policy example abc12345 ```

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyState, opts ...pulumi.ResourceOption) (*Policy, error)

GetPolicy gets an existing Policy 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 NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOption) (*Policy, error)

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

func (*Policy) ElementType

func (*Policy) ElementType() reflect.Type

func (*Policy) ToPolicyOutput

func (i *Policy) ToPolicyOutput() PolicyOutput

func (*Policy) ToPolicyOutputWithContext

func (i *Policy) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyArgs

type PolicyArgs struct {
	// The version of the policy. Default to v1.
	//
	// Deprecated: Field 'default_version' has been deprecated from provider version 1.90.0
	DefaultVersion pulumi.StringPtrInput
	// The description of the policy. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrInput
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringInput
	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringInput
}

The set of arguments for constructing a Policy resource.

func (PolicyArgs) ElementType

func (PolicyArgs) ElementType() reflect.Type

type PolicyArray

type PolicyArray []PolicyInput

func (PolicyArray) ElementType

func (PolicyArray) ElementType() reflect.Type

func (PolicyArray) ToPolicyArrayOutput

func (i PolicyArray) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArray) ToPolicyArrayOutputWithContext

func (i PolicyArray) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyArrayInput

type PolicyArrayInput interface {
	pulumi.Input

	ToPolicyArrayOutput() PolicyArrayOutput
	ToPolicyArrayOutputWithContext(context.Context) PolicyArrayOutput
}

PolicyArrayInput is an input type that accepts PolicyArray and PolicyArrayOutput values. You can construct a concrete instance of `PolicyArrayInput` via:

PolicyArray{ PolicyArgs{...} }

type PolicyArrayOutput

type PolicyArrayOutput struct{ *pulumi.OutputState }

func (PolicyArrayOutput) ElementType

func (PolicyArrayOutput) ElementType() reflect.Type

func (PolicyArrayOutput) Index

func (PolicyArrayOutput) ToPolicyArrayOutput

func (o PolicyArrayOutput) ToPolicyArrayOutput() PolicyArrayOutput

func (PolicyArrayOutput) ToPolicyArrayOutputWithContext

func (o PolicyArrayOutput) ToPolicyArrayOutputWithContext(ctx context.Context) PolicyArrayOutput

type PolicyAttachment

type PolicyAttachment struct {
	pulumi.CustomResourceState

	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
	// The type of the policy. Valid values: `Custom`, `System`.
	PolicyType pulumi.StringOutput `pulumi:"policyType"`
	// The name of the object to which you want to attach the policy.
	PrincipalName pulumi.StringOutput `pulumi:"principalName"`
	// The type of the object to which you want to attach the policy. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType pulumi.StringOutput `pulumi:"principalType"`
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.
	ResourceGroupId pulumi.StringOutput `pulumi:"resourceGroupId"`
}

Provides a Resource Manager Policy Attachment resource to attaches a policy to an object. After you attach a policy to an object, the object has the operation permissions on the current resource group or the resources under the current account. For information about Resource Manager Policy Attachment and how to use it, see [How to authorize and manage resource groups](https://www.alibabacloud.com/help/en/doc-detail/94490.htm).

> **NOTE:** Available since v1.93.0.

## Import

Resource Manager Policy Attachment can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/policyAttachment:PolicyAttachment example tf-testaccrdpolicy:Custom:tf-testaccrdpolicy@11827252********.onaliyun.com:IMSUser:rg****** ```

func GetPolicyAttachment

func GetPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyAttachmentState, opts ...pulumi.ResourceOption) (*PolicyAttachment, error)

GetPolicyAttachment gets an existing PolicyAttachment 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 NewPolicyAttachment

func NewPolicyAttachment(ctx *pulumi.Context,
	name string, args *PolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*PolicyAttachment, error)

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

func (*PolicyAttachment) ElementType

func (*PolicyAttachment) ElementType() reflect.Type

func (*PolicyAttachment) ToPolicyAttachmentOutput

func (i *PolicyAttachment) ToPolicyAttachmentOutput() PolicyAttachmentOutput

func (*PolicyAttachment) ToPolicyAttachmentOutputWithContext

func (i *PolicyAttachment) ToPolicyAttachmentOutputWithContext(ctx context.Context) PolicyAttachmentOutput

type PolicyAttachmentArgs

type PolicyAttachmentArgs struct {
	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringInput
	// The type of the policy. Valid values: `Custom`, `System`.
	PolicyType pulumi.StringInput
	// The name of the object to which you want to attach the policy.
	PrincipalName pulumi.StringInput
	// The type of the object to which you want to attach the policy. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType pulumi.StringInput
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.
	ResourceGroupId pulumi.StringInput
}

The set of arguments for constructing a PolicyAttachment resource.

func (PolicyAttachmentArgs) ElementType

func (PolicyAttachmentArgs) ElementType() reflect.Type

type PolicyAttachmentArray

type PolicyAttachmentArray []PolicyAttachmentInput

func (PolicyAttachmentArray) ElementType

func (PolicyAttachmentArray) ElementType() reflect.Type

func (PolicyAttachmentArray) ToPolicyAttachmentArrayOutput

func (i PolicyAttachmentArray) ToPolicyAttachmentArrayOutput() PolicyAttachmentArrayOutput

func (PolicyAttachmentArray) ToPolicyAttachmentArrayOutputWithContext

func (i PolicyAttachmentArray) ToPolicyAttachmentArrayOutputWithContext(ctx context.Context) PolicyAttachmentArrayOutput

type PolicyAttachmentArrayInput

type PolicyAttachmentArrayInput interface {
	pulumi.Input

	ToPolicyAttachmentArrayOutput() PolicyAttachmentArrayOutput
	ToPolicyAttachmentArrayOutputWithContext(context.Context) PolicyAttachmentArrayOutput
}

PolicyAttachmentArrayInput is an input type that accepts PolicyAttachmentArray and PolicyAttachmentArrayOutput values. You can construct a concrete instance of `PolicyAttachmentArrayInput` via:

PolicyAttachmentArray{ PolicyAttachmentArgs{...} }

type PolicyAttachmentArrayOutput

type PolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (PolicyAttachmentArrayOutput) ElementType

func (PolicyAttachmentArrayOutput) Index

func (PolicyAttachmentArrayOutput) ToPolicyAttachmentArrayOutput

func (o PolicyAttachmentArrayOutput) ToPolicyAttachmentArrayOutput() PolicyAttachmentArrayOutput

func (PolicyAttachmentArrayOutput) ToPolicyAttachmentArrayOutputWithContext

func (o PolicyAttachmentArrayOutput) ToPolicyAttachmentArrayOutputWithContext(ctx context.Context) PolicyAttachmentArrayOutput

type PolicyAttachmentInput

type PolicyAttachmentInput interface {
	pulumi.Input

	ToPolicyAttachmentOutput() PolicyAttachmentOutput
	ToPolicyAttachmentOutputWithContext(ctx context.Context) PolicyAttachmentOutput
}

type PolicyAttachmentMap

type PolicyAttachmentMap map[string]PolicyAttachmentInput

func (PolicyAttachmentMap) ElementType

func (PolicyAttachmentMap) ElementType() reflect.Type

func (PolicyAttachmentMap) ToPolicyAttachmentMapOutput

func (i PolicyAttachmentMap) ToPolicyAttachmentMapOutput() PolicyAttachmentMapOutput

func (PolicyAttachmentMap) ToPolicyAttachmentMapOutputWithContext

func (i PolicyAttachmentMap) ToPolicyAttachmentMapOutputWithContext(ctx context.Context) PolicyAttachmentMapOutput

type PolicyAttachmentMapInput

type PolicyAttachmentMapInput interface {
	pulumi.Input

	ToPolicyAttachmentMapOutput() PolicyAttachmentMapOutput
	ToPolicyAttachmentMapOutputWithContext(context.Context) PolicyAttachmentMapOutput
}

PolicyAttachmentMapInput is an input type that accepts PolicyAttachmentMap and PolicyAttachmentMapOutput values. You can construct a concrete instance of `PolicyAttachmentMapInput` via:

PolicyAttachmentMap{ "key": PolicyAttachmentArgs{...} }

type PolicyAttachmentMapOutput

type PolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (PolicyAttachmentMapOutput) ElementType

func (PolicyAttachmentMapOutput) ElementType() reflect.Type

func (PolicyAttachmentMapOutput) MapIndex

func (PolicyAttachmentMapOutput) ToPolicyAttachmentMapOutput

func (o PolicyAttachmentMapOutput) ToPolicyAttachmentMapOutput() PolicyAttachmentMapOutput

func (PolicyAttachmentMapOutput) ToPolicyAttachmentMapOutputWithContext

func (o PolicyAttachmentMapOutput) ToPolicyAttachmentMapOutputWithContext(ctx context.Context) PolicyAttachmentMapOutput

type PolicyAttachmentOutput

type PolicyAttachmentOutput struct{ *pulumi.OutputState }

func (PolicyAttachmentOutput) ElementType

func (PolicyAttachmentOutput) ElementType() reflect.Type

func (PolicyAttachmentOutput) PolicyName added in v3.27.0

The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

func (PolicyAttachmentOutput) PolicyType added in v3.27.0

The type of the policy. Valid values: `Custom`, `System`.

func (PolicyAttachmentOutput) PrincipalName added in v3.27.0

func (o PolicyAttachmentOutput) PrincipalName() pulumi.StringOutput

The name of the object to which you want to attach the policy.

func (PolicyAttachmentOutput) PrincipalType added in v3.27.0

func (o PolicyAttachmentOutput) PrincipalType() pulumi.StringOutput

The type of the object to which you want to attach the policy. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.

func (PolicyAttachmentOutput) ResourceGroupId added in v3.27.0

func (o PolicyAttachmentOutput) ResourceGroupId() pulumi.StringOutput

The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.

func (PolicyAttachmentOutput) ToPolicyAttachmentOutput

func (o PolicyAttachmentOutput) ToPolicyAttachmentOutput() PolicyAttachmentOutput

func (PolicyAttachmentOutput) ToPolicyAttachmentOutputWithContext

func (o PolicyAttachmentOutput) ToPolicyAttachmentOutputWithContext(ctx context.Context) PolicyAttachmentOutput

type PolicyAttachmentState

type PolicyAttachmentState struct {
	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringPtrInput
	// The type of the policy. Valid values: `Custom`, `System`.
	PolicyType pulumi.StringPtrInput
	// The name of the object to which you want to attach the policy.
	PrincipalName pulumi.StringPtrInput
	// The type of the object to which you want to attach the policy. Valid values: `IMSUser`: RAM user, `IMSGroup`: RAM user group, `ServiceRole`: RAM role.
	PrincipalType pulumi.StringPtrInput
	// The ID of the resource group or the ID of the Alibaba Cloud account to which the resource group belongs.
	ResourceGroupId pulumi.StringPtrInput
}

func (PolicyAttachmentState) ElementType

func (PolicyAttachmentState) ElementType() reflect.Type

type PolicyInput

type PolicyInput interface {
	pulumi.Input

	ToPolicyOutput() PolicyOutput
	ToPolicyOutputWithContext(ctx context.Context) PolicyOutput
}

type PolicyMap

type PolicyMap map[string]PolicyInput

func (PolicyMap) ElementType

func (PolicyMap) ElementType() reflect.Type

func (PolicyMap) ToPolicyMapOutput

func (i PolicyMap) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMap) ToPolicyMapOutputWithContext

func (i PolicyMap) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyMapInput

type PolicyMapInput interface {
	pulumi.Input

	ToPolicyMapOutput() PolicyMapOutput
	ToPolicyMapOutputWithContext(context.Context) PolicyMapOutput
}

PolicyMapInput is an input type that accepts PolicyMap and PolicyMapOutput values. You can construct a concrete instance of `PolicyMapInput` via:

PolicyMap{ "key": PolicyArgs{...} }

type PolicyMapOutput

type PolicyMapOutput struct{ *pulumi.OutputState }

func (PolicyMapOutput) ElementType

func (PolicyMapOutput) ElementType() reflect.Type

func (PolicyMapOutput) MapIndex

func (PolicyMapOutput) ToPolicyMapOutput

func (o PolicyMapOutput) ToPolicyMapOutput() PolicyMapOutput

func (PolicyMapOutput) ToPolicyMapOutputWithContext

func (o PolicyMapOutput) ToPolicyMapOutputWithContext(ctx context.Context) PolicyMapOutput

type PolicyOutput

type PolicyOutput struct{ *pulumi.OutputState }

func (PolicyOutput) DefaultVersion deprecated added in v3.27.0

func (o PolicyOutput) DefaultVersion() pulumi.StringOutput

The version of the policy. Default to v1.

Deprecated: Field 'default_version' has been deprecated from provider version 1.90.0

func (PolicyOutput) Description added in v3.27.0

func (o PolicyOutput) Description() pulumi.StringPtrOutput

The description of the policy. The description must be 1 to 1,024 characters in length.

func (PolicyOutput) ElementType

func (PolicyOutput) ElementType() reflect.Type

func (PolicyOutput) PolicyDocument added in v3.27.0

func (o PolicyOutput) PolicyDocument() pulumi.StringOutput

The content of the policy. The content must be 1 to 2,048 characters in length.

func (PolicyOutput) PolicyName added in v3.27.0

func (o PolicyOutput) PolicyName() pulumi.StringOutput

The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

func (PolicyOutput) PolicyType added in v3.27.0

func (o PolicyOutput) PolicyType() pulumi.StringOutput

The type of the policy. Valid values: `Custom`, `System`.

func (PolicyOutput) ToPolicyOutput

func (o PolicyOutput) ToPolicyOutput() PolicyOutput

func (PolicyOutput) ToPolicyOutputWithContext

func (o PolicyOutput) ToPolicyOutputWithContext(ctx context.Context) PolicyOutput

type PolicyState

type PolicyState struct {
	// The version of the policy. Default to v1.
	//
	// Deprecated: Field 'default_version' has been deprecated from provider version 1.90.0
	DefaultVersion pulumi.StringPtrInput
	// The description of the policy. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrInput
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringPtrInput
	// The name of the policy. name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringPtrInput
	// The type of the policy. Valid values: `Custom`, `System`.
	PolicyType pulumi.StringPtrInput
}

func (PolicyState) ElementType

func (PolicyState) ElementType() reflect.Type

type PolicyVersion

type PolicyVersion struct {
	pulumi.CustomResourceState

	// Specifies whether to set the policy version as the default version. Default to `false`.
	//
	// Deprecated: Field 'is_default_version' has been deprecated from provider version 1.90.0
	IsDefaultVersion pulumi.BoolPtrOutput `pulumi:"isDefaultVersion"`
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringOutput `pulumi:"policyDocument"`
	// The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringOutput `pulumi:"policyName"`
}

Provides a Resource Manager Policy Version resource. For information about Resource Manager Policy Version and how to use it, see [What is Resource Manager Policy Version](https://www.alibabacloud.com/help/en/doc-detail/116817.htm).

> **NOTE:** Available since v1.84.0.

> **NOTE:** It is not recommended to use this resource management policy version, it is recommended to directly use the policy resource to manage your policy. Please refer to the link for usage resource_manager_policy.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tfexample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		example, err := resourcemanager.NewPolicy(ctx, "example", &resourcemanager.PolicyArgs{
			PolicyName: pulumi.String(name),
			PolicyDocument: pulumi.String(`		{
			"Statement": [{
				"Action": ["oss:*"],
				"Effect": "Allow",
				"Resource": ["acs:oss:*:*:*"]
			}],
			"Version": "1"
		}

`),

})
if err != nil {
	return err
}
_, err = resourcemanager.NewPolicyVersion(ctx, "example", &resourcemanager.PolicyVersionArgs{
	PolicyName: example.PolicyName,
	PolicyDocument: pulumi.String(`		{
	"Statement": [{
		"Action": ["oss:*"],
		"Effect": "Allow",
		"Resource": ["acs:oss:*:*:myphotos"]
	}],
	"Version": "1"
}

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Policy Version can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/policyVersion:PolicyVersion example tftest:v2 ```

func GetPolicyVersion

func GetPolicyVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PolicyVersionState, opts ...pulumi.ResourceOption) (*PolicyVersion, error)

GetPolicyVersion gets an existing PolicyVersion 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 NewPolicyVersion

func NewPolicyVersion(ctx *pulumi.Context,
	name string, args *PolicyVersionArgs, opts ...pulumi.ResourceOption) (*PolicyVersion, error)

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

func (*PolicyVersion) ElementType

func (*PolicyVersion) ElementType() reflect.Type

func (*PolicyVersion) ToPolicyVersionOutput

func (i *PolicyVersion) ToPolicyVersionOutput() PolicyVersionOutput

func (*PolicyVersion) ToPolicyVersionOutputWithContext

func (i *PolicyVersion) ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput

type PolicyVersionArgs

type PolicyVersionArgs struct {
	// Specifies whether to set the policy version as the default version. Default to `false`.
	//
	// Deprecated: Field 'is_default_version' has been deprecated from provider version 1.90.0
	IsDefaultVersion pulumi.BoolPtrInput
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringInput
	// The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringInput
}

The set of arguments for constructing a PolicyVersion resource.

func (PolicyVersionArgs) ElementType

func (PolicyVersionArgs) ElementType() reflect.Type

type PolicyVersionArray

type PolicyVersionArray []PolicyVersionInput

func (PolicyVersionArray) ElementType

func (PolicyVersionArray) ElementType() reflect.Type

func (PolicyVersionArray) ToPolicyVersionArrayOutput

func (i PolicyVersionArray) ToPolicyVersionArrayOutput() PolicyVersionArrayOutput

func (PolicyVersionArray) ToPolicyVersionArrayOutputWithContext

func (i PolicyVersionArray) ToPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionArrayOutput

type PolicyVersionArrayInput

type PolicyVersionArrayInput interface {
	pulumi.Input

	ToPolicyVersionArrayOutput() PolicyVersionArrayOutput
	ToPolicyVersionArrayOutputWithContext(context.Context) PolicyVersionArrayOutput
}

PolicyVersionArrayInput is an input type that accepts PolicyVersionArray and PolicyVersionArrayOutput values. You can construct a concrete instance of `PolicyVersionArrayInput` via:

PolicyVersionArray{ PolicyVersionArgs{...} }

type PolicyVersionArrayOutput

type PolicyVersionArrayOutput struct{ *pulumi.OutputState }

func (PolicyVersionArrayOutput) ElementType

func (PolicyVersionArrayOutput) ElementType() reflect.Type

func (PolicyVersionArrayOutput) Index

func (PolicyVersionArrayOutput) ToPolicyVersionArrayOutput

func (o PolicyVersionArrayOutput) ToPolicyVersionArrayOutput() PolicyVersionArrayOutput

func (PolicyVersionArrayOutput) ToPolicyVersionArrayOutputWithContext

func (o PolicyVersionArrayOutput) ToPolicyVersionArrayOutputWithContext(ctx context.Context) PolicyVersionArrayOutput

type PolicyVersionInput

type PolicyVersionInput interface {
	pulumi.Input

	ToPolicyVersionOutput() PolicyVersionOutput
	ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput
}

type PolicyVersionMap

type PolicyVersionMap map[string]PolicyVersionInput

func (PolicyVersionMap) ElementType

func (PolicyVersionMap) ElementType() reflect.Type

func (PolicyVersionMap) ToPolicyVersionMapOutput

func (i PolicyVersionMap) ToPolicyVersionMapOutput() PolicyVersionMapOutput

func (PolicyVersionMap) ToPolicyVersionMapOutputWithContext

func (i PolicyVersionMap) ToPolicyVersionMapOutputWithContext(ctx context.Context) PolicyVersionMapOutput

type PolicyVersionMapInput

type PolicyVersionMapInput interface {
	pulumi.Input

	ToPolicyVersionMapOutput() PolicyVersionMapOutput
	ToPolicyVersionMapOutputWithContext(context.Context) PolicyVersionMapOutput
}

PolicyVersionMapInput is an input type that accepts PolicyVersionMap and PolicyVersionMapOutput values. You can construct a concrete instance of `PolicyVersionMapInput` via:

PolicyVersionMap{ "key": PolicyVersionArgs{...} }

type PolicyVersionMapOutput

type PolicyVersionMapOutput struct{ *pulumi.OutputState }

func (PolicyVersionMapOutput) ElementType

func (PolicyVersionMapOutput) ElementType() reflect.Type

func (PolicyVersionMapOutput) MapIndex

func (PolicyVersionMapOutput) ToPolicyVersionMapOutput

func (o PolicyVersionMapOutput) ToPolicyVersionMapOutput() PolicyVersionMapOutput

func (PolicyVersionMapOutput) ToPolicyVersionMapOutputWithContext

func (o PolicyVersionMapOutput) ToPolicyVersionMapOutputWithContext(ctx context.Context) PolicyVersionMapOutput

type PolicyVersionOutput

type PolicyVersionOutput struct{ *pulumi.OutputState }

func (PolicyVersionOutput) ElementType

func (PolicyVersionOutput) ElementType() reflect.Type

func (PolicyVersionOutput) IsDefaultVersion deprecated added in v3.27.0

func (o PolicyVersionOutput) IsDefaultVersion() pulumi.BoolPtrOutput

Specifies whether to set the policy version as the default version. Default to `false`.

Deprecated: Field 'is_default_version' has been deprecated from provider version 1.90.0

func (PolicyVersionOutput) PolicyDocument added in v3.27.0

func (o PolicyVersionOutput) PolicyDocument() pulumi.StringOutput

The content of the policy. The content must be 1 to 2,048 characters in length.

func (PolicyVersionOutput) PolicyName added in v3.27.0

func (o PolicyVersionOutput) PolicyName() pulumi.StringOutput

The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

func (PolicyVersionOutput) ToPolicyVersionOutput

func (o PolicyVersionOutput) ToPolicyVersionOutput() PolicyVersionOutput

func (PolicyVersionOutput) ToPolicyVersionOutputWithContext

func (o PolicyVersionOutput) ToPolicyVersionOutputWithContext(ctx context.Context) PolicyVersionOutput

type PolicyVersionState

type PolicyVersionState struct {
	// Specifies whether to set the policy version as the default version. Default to `false`.
	//
	// Deprecated: Field 'is_default_version' has been deprecated from provider version 1.90.0
	IsDefaultVersion pulumi.BoolPtrInput
	// The content of the policy. The content must be 1 to 2,048 characters in length.
	PolicyDocument pulumi.StringPtrInput
	// The name of the policy. Name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).
	PolicyName pulumi.StringPtrInput
}

func (PolicyVersionState) ElementType

func (PolicyVersionState) ElementType() reflect.Type

type ResourceDirectory

type ResourceDirectory struct {
	pulumi.CustomResourceState

	// The ID of the master account.
	MasterAccountId pulumi.StringOutput `pulumi:"masterAccountId"`
	// The name of the master account.
	MasterAccountName pulumi.StringOutput `pulumi:"masterAccountName"`
	// Specifies whether to enable the member deletion feature. Valid values:`Enabled` and `Disabled`.
	MemberDeletionStatus pulumi.StringOutput `pulumi:"memberDeletionStatus"`
	// The ID of the root folder.
	RootFolderId pulumi.StringOutput `pulumi:"rootFolderId"`
	// The status of control policy. Valid values:`Enabled` and `Disabled`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Resource Manager Resource Directory resource. Resource Directory enables you to establish an organizational structure for the resources used by applications of your enterprise. You can plan, build, and manage the resources in a centralized manner by using only one resource directory.

For information about Resource Manager Resource Directory and how to use it, see [What is Resource Manager Resource Directory](https://www.alibabacloud.com/help/en/doc-detail/94475.htm).

> **NOTE:** Available since v1.84.0.

> **NOTE:** An account can only be used to enable a resource directory after it passes enterprise real-name verification. An account that only passed individual real-name verification cannot be used to enable a resource directory.

> **NOTE:** Before you destroy the resource, make sure that the following requirements are met:

  • All member accounts must be removed from the resource directory.
  • All folders except the root folder must be deleted from the resource directory.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

) func main() { pulumi.Run(func(ctx *pulumi.Context) error { _default, err := resourcemanager.GetResourceDirectories(ctx, nil, nil); if err != nil { return err } var defaultResourceDirectory []*resourcemanager.ResourceDirectory

for index := 0; index < %!v(PANIC=Format method: fatal: A failure has occurred: unlowered conditional expression @ example.pp:5,13-52); index++ {
    key0 := index
    _ := index

__res, err := resourcemanager.NewResourceDirectory(ctx, fmt.Sprintf("default-%v", key0), &resourcemanager.ResourceDirectoryArgs{ Status: pulumi.String("Enabled"), }) if err != nil { return err } defaultResourceDirectory = append(defaultResourceDirectory, __res) } return nil }) } ```

## Import

Resource Manager Resource Directory can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/resourceDirectory:ResourceDirectory example rd-s3**** ```

func GetResourceDirectory

func GetResourceDirectory(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceDirectoryState, opts ...pulumi.ResourceOption) (*ResourceDirectory, error)

GetResourceDirectory gets an existing ResourceDirectory 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 NewResourceDirectory

func NewResourceDirectory(ctx *pulumi.Context,
	name string, args *ResourceDirectoryArgs, opts ...pulumi.ResourceOption) (*ResourceDirectory, error)

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

func (*ResourceDirectory) ElementType

func (*ResourceDirectory) ElementType() reflect.Type

func (*ResourceDirectory) ToResourceDirectoryOutput

func (i *ResourceDirectory) ToResourceDirectoryOutput() ResourceDirectoryOutput

func (*ResourceDirectory) ToResourceDirectoryOutputWithContext

func (i *ResourceDirectory) ToResourceDirectoryOutputWithContext(ctx context.Context) ResourceDirectoryOutput

type ResourceDirectoryArgs

type ResourceDirectoryArgs struct {
	// Specifies whether to enable the member deletion feature. Valid values:`Enabled` and `Disabled`.
	MemberDeletionStatus pulumi.StringPtrInput
	// The status of control policy. Valid values:`Enabled` and `Disabled`.
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a ResourceDirectory resource.

func (ResourceDirectoryArgs) ElementType

func (ResourceDirectoryArgs) ElementType() reflect.Type

type ResourceDirectoryArray

type ResourceDirectoryArray []ResourceDirectoryInput

func (ResourceDirectoryArray) ElementType

func (ResourceDirectoryArray) ElementType() reflect.Type

func (ResourceDirectoryArray) ToResourceDirectoryArrayOutput

func (i ResourceDirectoryArray) ToResourceDirectoryArrayOutput() ResourceDirectoryArrayOutput

func (ResourceDirectoryArray) ToResourceDirectoryArrayOutputWithContext

func (i ResourceDirectoryArray) ToResourceDirectoryArrayOutputWithContext(ctx context.Context) ResourceDirectoryArrayOutput

type ResourceDirectoryArrayInput

type ResourceDirectoryArrayInput interface {
	pulumi.Input

	ToResourceDirectoryArrayOutput() ResourceDirectoryArrayOutput
	ToResourceDirectoryArrayOutputWithContext(context.Context) ResourceDirectoryArrayOutput
}

ResourceDirectoryArrayInput is an input type that accepts ResourceDirectoryArray and ResourceDirectoryArrayOutput values. You can construct a concrete instance of `ResourceDirectoryArrayInput` via:

ResourceDirectoryArray{ ResourceDirectoryArgs{...} }

type ResourceDirectoryArrayOutput

type ResourceDirectoryArrayOutput struct{ *pulumi.OutputState }

func (ResourceDirectoryArrayOutput) ElementType

func (ResourceDirectoryArrayOutput) Index

func (ResourceDirectoryArrayOutput) ToResourceDirectoryArrayOutput

func (o ResourceDirectoryArrayOutput) ToResourceDirectoryArrayOutput() ResourceDirectoryArrayOutput

func (ResourceDirectoryArrayOutput) ToResourceDirectoryArrayOutputWithContext

func (o ResourceDirectoryArrayOutput) ToResourceDirectoryArrayOutputWithContext(ctx context.Context) ResourceDirectoryArrayOutput

type ResourceDirectoryInput

type ResourceDirectoryInput interface {
	pulumi.Input

	ToResourceDirectoryOutput() ResourceDirectoryOutput
	ToResourceDirectoryOutputWithContext(ctx context.Context) ResourceDirectoryOutput
}

type ResourceDirectoryMap

type ResourceDirectoryMap map[string]ResourceDirectoryInput

func (ResourceDirectoryMap) ElementType

func (ResourceDirectoryMap) ElementType() reflect.Type

func (ResourceDirectoryMap) ToResourceDirectoryMapOutput

func (i ResourceDirectoryMap) ToResourceDirectoryMapOutput() ResourceDirectoryMapOutput

func (ResourceDirectoryMap) ToResourceDirectoryMapOutputWithContext

func (i ResourceDirectoryMap) ToResourceDirectoryMapOutputWithContext(ctx context.Context) ResourceDirectoryMapOutput

type ResourceDirectoryMapInput

type ResourceDirectoryMapInput interface {
	pulumi.Input

	ToResourceDirectoryMapOutput() ResourceDirectoryMapOutput
	ToResourceDirectoryMapOutputWithContext(context.Context) ResourceDirectoryMapOutput
}

ResourceDirectoryMapInput is an input type that accepts ResourceDirectoryMap and ResourceDirectoryMapOutput values. You can construct a concrete instance of `ResourceDirectoryMapInput` via:

ResourceDirectoryMap{ "key": ResourceDirectoryArgs{...} }

type ResourceDirectoryMapOutput

type ResourceDirectoryMapOutput struct{ *pulumi.OutputState }

func (ResourceDirectoryMapOutput) ElementType

func (ResourceDirectoryMapOutput) ElementType() reflect.Type

func (ResourceDirectoryMapOutput) MapIndex

func (ResourceDirectoryMapOutput) ToResourceDirectoryMapOutput

func (o ResourceDirectoryMapOutput) ToResourceDirectoryMapOutput() ResourceDirectoryMapOutput

func (ResourceDirectoryMapOutput) ToResourceDirectoryMapOutputWithContext

func (o ResourceDirectoryMapOutput) ToResourceDirectoryMapOutputWithContext(ctx context.Context) ResourceDirectoryMapOutput

type ResourceDirectoryOutput

type ResourceDirectoryOutput struct{ *pulumi.OutputState }

func (ResourceDirectoryOutput) ElementType

func (ResourceDirectoryOutput) ElementType() reflect.Type

func (ResourceDirectoryOutput) MasterAccountId added in v3.27.0

func (o ResourceDirectoryOutput) MasterAccountId() pulumi.StringOutput

The ID of the master account.

func (ResourceDirectoryOutput) MasterAccountName added in v3.27.0

func (o ResourceDirectoryOutput) MasterAccountName() pulumi.StringOutput

The name of the master account.

func (ResourceDirectoryOutput) MemberDeletionStatus added in v3.34.0

func (o ResourceDirectoryOutput) MemberDeletionStatus() pulumi.StringOutput

Specifies whether to enable the member deletion feature. Valid values:`Enabled` and `Disabled`.

func (ResourceDirectoryOutput) RootFolderId added in v3.27.0

func (o ResourceDirectoryOutput) RootFolderId() pulumi.StringOutput

The ID of the root folder.

func (ResourceDirectoryOutput) Status added in v3.27.0

The status of control policy. Valid values:`Enabled` and `Disabled`.

func (ResourceDirectoryOutput) ToResourceDirectoryOutput

func (o ResourceDirectoryOutput) ToResourceDirectoryOutput() ResourceDirectoryOutput

func (ResourceDirectoryOutput) ToResourceDirectoryOutputWithContext

func (o ResourceDirectoryOutput) ToResourceDirectoryOutputWithContext(ctx context.Context) ResourceDirectoryOutput

type ResourceDirectoryState

type ResourceDirectoryState struct {
	// The ID of the master account.
	MasterAccountId pulumi.StringPtrInput
	// The name of the master account.
	MasterAccountName pulumi.StringPtrInput
	// Specifies whether to enable the member deletion feature. Valid values:`Enabled` and `Disabled`.
	MemberDeletionStatus pulumi.StringPtrInput
	// The ID of the root folder.
	RootFolderId pulumi.StringPtrInput
	// The status of control policy. Valid values:`Enabled` and `Disabled`.
	Status pulumi.StringPtrInput
}

func (ResourceDirectoryState) ElementType

func (ResourceDirectoryState) ElementType() reflect.Type

type ResourceGroup

type ResourceGroup struct {
	pulumi.CustomResourceState

	// The ID of the Alibaba Cloud account to which the resource group belongs.
	AccountId pulumi.StringOutput `pulumi:"accountId"`
	// The display name of the resource group. The name must be 1 to 50 characters in length.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	//
	// Deprecated: Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	Name pulumi.StringOutput `pulumi:"name"`
	// The status of the resource group in all regions.
	RegionStatuses ResourceGroupRegionStatusArrayOutput `pulumi:"regionStatuses"`
	// The unique identifier of the resource group. The identifier must be 3 to 50 characters in length and can contain letters, digits, and hyphens (-). The identifier must start with a letter.
	ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
	// The status of the resource group.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a Resource Manager Resource Group resource. If you need to group cloud resources according to business departments, projects, and other dimensions, you can create resource groups.

For information about Resource Manager Resource Group and how to use it, see [What is Resource Group](https://www.alibabacloud.com/help/en/resource-management/developer-reference/api-createresourcegroup).

> **NOTE:** Available since v1.82.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.NewResourceGroup(ctx, "example", &resourcemanager.ResourceGroupArgs{
			DisplayName:       pulumi.String(name),
			ResourceGroupName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Resource Group can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/resourceGroup:ResourceGroup example <id> ```

func GetResourceGroup

func GetResourceGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceGroupState, opts ...pulumi.ResourceOption) (*ResourceGroup, error)

GetResourceGroup gets an existing ResourceGroup 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 NewResourceGroup

func NewResourceGroup(ctx *pulumi.Context,
	name string, args *ResourceGroupArgs, opts ...pulumi.ResourceOption) (*ResourceGroup, error)

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

func (*ResourceGroup) ElementType

func (*ResourceGroup) ElementType() reflect.Type

func (*ResourceGroup) ToResourceGroupOutput

func (i *ResourceGroup) ToResourceGroupOutput() ResourceGroupOutput

func (*ResourceGroup) ToResourceGroupOutputWithContext

func (i *ResourceGroup) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput

type ResourceGroupArgs

type ResourceGroupArgs struct {
	// The display name of the resource group. The name must be 1 to 50 characters in length.
	DisplayName pulumi.StringInput
	// Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	//
	// Deprecated: Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	Name pulumi.StringPtrInput
	// The unique identifier of the resource group. The identifier must be 3 to 50 characters in length and can contain letters, digits, and hyphens (-). The identifier must start with a letter.
	ResourceGroupName pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

The set of arguments for constructing a ResourceGroup resource.

func (ResourceGroupArgs) ElementType

func (ResourceGroupArgs) ElementType() reflect.Type

type ResourceGroupArray

type ResourceGroupArray []ResourceGroupInput

func (ResourceGroupArray) ElementType

func (ResourceGroupArray) ElementType() reflect.Type

func (ResourceGroupArray) ToResourceGroupArrayOutput

func (i ResourceGroupArray) ToResourceGroupArrayOutput() ResourceGroupArrayOutput

func (ResourceGroupArray) ToResourceGroupArrayOutputWithContext

func (i ResourceGroupArray) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput

type ResourceGroupArrayInput

type ResourceGroupArrayInput interface {
	pulumi.Input

	ToResourceGroupArrayOutput() ResourceGroupArrayOutput
	ToResourceGroupArrayOutputWithContext(context.Context) ResourceGroupArrayOutput
}

ResourceGroupArrayInput is an input type that accepts ResourceGroupArray and ResourceGroupArrayOutput values. You can construct a concrete instance of `ResourceGroupArrayInput` via:

ResourceGroupArray{ ResourceGroupArgs{...} }

type ResourceGroupArrayOutput

type ResourceGroupArrayOutput struct{ *pulumi.OutputState }

func (ResourceGroupArrayOutput) ElementType

func (ResourceGroupArrayOutput) ElementType() reflect.Type

func (ResourceGroupArrayOutput) Index

func (ResourceGroupArrayOutput) ToResourceGroupArrayOutput

func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutput() ResourceGroupArrayOutput

func (ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext

func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput

type ResourceGroupInput

type ResourceGroupInput interface {
	pulumi.Input

	ToResourceGroupOutput() ResourceGroupOutput
	ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
}

type ResourceGroupMap

type ResourceGroupMap map[string]ResourceGroupInput

func (ResourceGroupMap) ElementType

func (ResourceGroupMap) ElementType() reflect.Type

func (ResourceGroupMap) ToResourceGroupMapOutput

func (i ResourceGroupMap) ToResourceGroupMapOutput() ResourceGroupMapOutput

func (ResourceGroupMap) ToResourceGroupMapOutputWithContext

func (i ResourceGroupMap) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput

type ResourceGroupMapInput

type ResourceGroupMapInput interface {
	pulumi.Input

	ToResourceGroupMapOutput() ResourceGroupMapOutput
	ToResourceGroupMapOutputWithContext(context.Context) ResourceGroupMapOutput
}

ResourceGroupMapInput is an input type that accepts ResourceGroupMap and ResourceGroupMapOutput values. You can construct a concrete instance of `ResourceGroupMapInput` via:

ResourceGroupMap{ "key": ResourceGroupArgs{...} }

type ResourceGroupMapOutput

type ResourceGroupMapOutput struct{ *pulumi.OutputState }

func (ResourceGroupMapOutput) ElementType

func (ResourceGroupMapOutput) ElementType() reflect.Type

func (ResourceGroupMapOutput) MapIndex

func (ResourceGroupMapOutput) ToResourceGroupMapOutput

func (o ResourceGroupMapOutput) ToResourceGroupMapOutput() ResourceGroupMapOutput

func (ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext

func (o ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput

type ResourceGroupOutput

type ResourceGroupOutput struct{ *pulumi.OutputState }

func (ResourceGroupOutput) AccountId added in v3.27.0

func (o ResourceGroupOutput) AccountId() pulumi.StringOutput

The ID of the Alibaba Cloud account to which the resource group belongs.

func (ResourceGroupOutput) DisplayName added in v3.27.0

func (o ResourceGroupOutput) DisplayName() pulumi.StringOutput

The display name of the resource group. The name must be 1 to 50 characters in length.

func (ResourceGroupOutput) ElementType

func (ResourceGroupOutput) ElementType() reflect.Type

func (ResourceGroupOutput) Name deprecated added in v3.27.0

Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.

Deprecated: Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.

func (ResourceGroupOutput) RegionStatuses added in v3.27.0

The status of the resource group in all regions.

func (ResourceGroupOutput) ResourceGroupName added in v3.27.0

func (o ResourceGroupOutput) ResourceGroupName() pulumi.StringOutput

The unique identifier of the resource group. The identifier must be 3 to 50 characters in length and can contain letters, digits, and hyphens (-). The identifier must start with a letter.

func (ResourceGroupOutput) Status added in v3.27.0

The status of the resource group.

func (ResourceGroupOutput) Tags added in v3.52.0

A mapping of tags to assign to the resource.

func (ResourceGroupOutput) ToResourceGroupOutput

func (o ResourceGroupOutput) ToResourceGroupOutput() ResourceGroupOutput

func (ResourceGroupOutput) ToResourceGroupOutputWithContext

func (o ResourceGroupOutput) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput

type ResourceGroupRegionStatus

type ResourceGroupRegionStatus struct {
	// The status of the region.
	RegionId *string `pulumi:"regionId"`
	// The status of the resource group.
	Status *string `pulumi:"status"`
}

type ResourceGroupRegionStatusArgs

type ResourceGroupRegionStatusArgs struct {
	// The status of the region.
	RegionId pulumi.StringPtrInput `pulumi:"regionId"`
	// The status of the resource group.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

func (ResourceGroupRegionStatusArgs) ElementType

func (ResourceGroupRegionStatusArgs) ToResourceGroupRegionStatusOutput

func (i ResourceGroupRegionStatusArgs) ToResourceGroupRegionStatusOutput() ResourceGroupRegionStatusOutput

func (ResourceGroupRegionStatusArgs) ToResourceGroupRegionStatusOutputWithContext

func (i ResourceGroupRegionStatusArgs) ToResourceGroupRegionStatusOutputWithContext(ctx context.Context) ResourceGroupRegionStatusOutput

type ResourceGroupRegionStatusArray

type ResourceGroupRegionStatusArray []ResourceGroupRegionStatusInput

func (ResourceGroupRegionStatusArray) ElementType

func (ResourceGroupRegionStatusArray) ToResourceGroupRegionStatusArrayOutput

func (i ResourceGroupRegionStatusArray) ToResourceGroupRegionStatusArrayOutput() ResourceGroupRegionStatusArrayOutput

func (ResourceGroupRegionStatusArray) ToResourceGroupRegionStatusArrayOutputWithContext

func (i ResourceGroupRegionStatusArray) ToResourceGroupRegionStatusArrayOutputWithContext(ctx context.Context) ResourceGroupRegionStatusArrayOutput

type ResourceGroupRegionStatusArrayInput

type ResourceGroupRegionStatusArrayInput interface {
	pulumi.Input

	ToResourceGroupRegionStatusArrayOutput() ResourceGroupRegionStatusArrayOutput
	ToResourceGroupRegionStatusArrayOutputWithContext(context.Context) ResourceGroupRegionStatusArrayOutput
}

ResourceGroupRegionStatusArrayInput is an input type that accepts ResourceGroupRegionStatusArray and ResourceGroupRegionStatusArrayOutput values. You can construct a concrete instance of `ResourceGroupRegionStatusArrayInput` via:

ResourceGroupRegionStatusArray{ ResourceGroupRegionStatusArgs{...} }

type ResourceGroupRegionStatusArrayOutput

type ResourceGroupRegionStatusArrayOutput struct{ *pulumi.OutputState }

func (ResourceGroupRegionStatusArrayOutput) ElementType

func (ResourceGroupRegionStatusArrayOutput) Index

func (ResourceGroupRegionStatusArrayOutput) ToResourceGroupRegionStatusArrayOutput

func (o ResourceGroupRegionStatusArrayOutput) ToResourceGroupRegionStatusArrayOutput() ResourceGroupRegionStatusArrayOutput

func (ResourceGroupRegionStatusArrayOutput) ToResourceGroupRegionStatusArrayOutputWithContext

func (o ResourceGroupRegionStatusArrayOutput) ToResourceGroupRegionStatusArrayOutputWithContext(ctx context.Context) ResourceGroupRegionStatusArrayOutput

type ResourceGroupRegionStatusInput

type ResourceGroupRegionStatusInput interface {
	pulumi.Input

	ToResourceGroupRegionStatusOutput() ResourceGroupRegionStatusOutput
	ToResourceGroupRegionStatusOutputWithContext(context.Context) ResourceGroupRegionStatusOutput
}

ResourceGroupRegionStatusInput is an input type that accepts ResourceGroupRegionStatusArgs and ResourceGroupRegionStatusOutput values. You can construct a concrete instance of `ResourceGroupRegionStatusInput` via:

ResourceGroupRegionStatusArgs{...}

type ResourceGroupRegionStatusOutput

type ResourceGroupRegionStatusOutput struct{ *pulumi.OutputState }

func (ResourceGroupRegionStatusOutput) ElementType

func (ResourceGroupRegionStatusOutput) RegionId

The status of the region.

func (ResourceGroupRegionStatusOutput) Status

The status of the resource group.

func (ResourceGroupRegionStatusOutput) ToResourceGroupRegionStatusOutput

func (o ResourceGroupRegionStatusOutput) ToResourceGroupRegionStatusOutput() ResourceGroupRegionStatusOutput

func (ResourceGroupRegionStatusOutput) ToResourceGroupRegionStatusOutputWithContext

func (o ResourceGroupRegionStatusOutput) ToResourceGroupRegionStatusOutputWithContext(ctx context.Context) ResourceGroupRegionStatusOutput

type ResourceGroupState

type ResourceGroupState struct {
	// The ID of the Alibaba Cloud account to which the resource group belongs.
	AccountId pulumi.StringPtrInput
	// The display name of the resource group. The name must be 1 to 50 characters in length.
	DisplayName pulumi.StringPtrInput
	// Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	//
	// Deprecated: Field `name` has been deprecated from provider version 1.114.0. New field `resourceGroupName` instead.
	Name pulumi.StringPtrInput
	// The status of the resource group in all regions.
	RegionStatuses ResourceGroupRegionStatusArrayInput
	// The unique identifier of the resource group. The identifier must be 3 to 50 characters in length and can contain letters, digits, and hyphens (-). The identifier must start with a letter.
	ResourceGroupName pulumi.StringPtrInput
	// The status of the resource group.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

func (ResourceGroupState) ElementType

func (ResourceGroupState) ElementType() reflect.Type

type ResourceShare

type ResourceShare struct {
	pulumi.CustomResourceState

	// The name of resource share.
	ResourceShareName pulumi.StringOutput `pulumi:"resourceShareName"`
	// The owner of the Resource Share.
	ResourceShareOwner pulumi.StringOutput `pulumi:"resourceShareOwner"`
	// The status of the Resource Share.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Resource Manager Resource Share resource.

For information about Resource Manager Resource Share and how to use it, see [What is Resource Share](https://www.alibabacloud.com/help/en/doc-detail/94475.htm).

> **NOTE:** Available since v1.111.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.NewResourceShare(ctx, "example", &resourcemanager.ResourceShareArgs{
			ResourceShareName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Resource Share can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/resourceShare:ResourceShare example <id> ```

func GetResourceShare

func GetResourceShare(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceShareState, opts ...pulumi.ResourceOption) (*ResourceShare, error)

GetResourceShare gets an existing ResourceShare 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 NewResourceShare

func NewResourceShare(ctx *pulumi.Context,
	name string, args *ResourceShareArgs, opts ...pulumi.ResourceOption) (*ResourceShare, error)

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

func (*ResourceShare) ElementType

func (*ResourceShare) ElementType() reflect.Type

func (*ResourceShare) ToResourceShareOutput

func (i *ResourceShare) ToResourceShareOutput() ResourceShareOutput

func (*ResourceShare) ToResourceShareOutputWithContext

func (i *ResourceShare) ToResourceShareOutputWithContext(ctx context.Context) ResourceShareOutput

type ResourceShareArgs

type ResourceShareArgs struct {
	// The name of resource share.
	ResourceShareName pulumi.StringInput
}

The set of arguments for constructing a ResourceShare resource.

func (ResourceShareArgs) ElementType

func (ResourceShareArgs) ElementType() reflect.Type

type ResourceShareArray

type ResourceShareArray []ResourceShareInput

func (ResourceShareArray) ElementType

func (ResourceShareArray) ElementType() reflect.Type

func (ResourceShareArray) ToResourceShareArrayOutput

func (i ResourceShareArray) ToResourceShareArrayOutput() ResourceShareArrayOutput

func (ResourceShareArray) ToResourceShareArrayOutputWithContext

func (i ResourceShareArray) ToResourceShareArrayOutputWithContext(ctx context.Context) ResourceShareArrayOutput

type ResourceShareArrayInput

type ResourceShareArrayInput interface {
	pulumi.Input

	ToResourceShareArrayOutput() ResourceShareArrayOutput
	ToResourceShareArrayOutputWithContext(context.Context) ResourceShareArrayOutput
}

ResourceShareArrayInput is an input type that accepts ResourceShareArray and ResourceShareArrayOutput values. You can construct a concrete instance of `ResourceShareArrayInput` via:

ResourceShareArray{ ResourceShareArgs{...} }

type ResourceShareArrayOutput

type ResourceShareArrayOutput struct{ *pulumi.OutputState }

func (ResourceShareArrayOutput) ElementType

func (ResourceShareArrayOutput) ElementType() reflect.Type

func (ResourceShareArrayOutput) Index

func (ResourceShareArrayOutput) ToResourceShareArrayOutput

func (o ResourceShareArrayOutput) ToResourceShareArrayOutput() ResourceShareArrayOutput

func (ResourceShareArrayOutput) ToResourceShareArrayOutputWithContext

func (o ResourceShareArrayOutput) ToResourceShareArrayOutputWithContext(ctx context.Context) ResourceShareArrayOutput

type ResourceShareInput

type ResourceShareInput interface {
	pulumi.Input

	ToResourceShareOutput() ResourceShareOutput
	ToResourceShareOutputWithContext(ctx context.Context) ResourceShareOutput
}

type ResourceShareMap

type ResourceShareMap map[string]ResourceShareInput

func (ResourceShareMap) ElementType

func (ResourceShareMap) ElementType() reflect.Type

func (ResourceShareMap) ToResourceShareMapOutput

func (i ResourceShareMap) ToResourceShareMapOutput() ResourceShareMapOutput

func (ResourceShareMap) ToResourceShareMapOutputWithContext

func (i ResourceShareMap) ToResourceShareMapOutputWithContext(ctx context.Context) ResourceShareMapOutput

type ResourceShareMapInput

type ResourceShareMapInput interface {
	pulumi.Input

	ToResourceShareMapOutput() ResourceShareMapOutput
	ToResourceShareMapOutputWithContext(context.Context) ResourceShareMapOutput
}

ResourceShareMapInput is an input type that accepts ResourceShareMap and ResourceShareMapOutput values. You can construct a concrete instance of `ResourceShareMapInput` via:

ResourceShareMap{ "key": ResourceShareArgs{...} }

type ResourceShareMapOutput

type ResourceShareMapOutput struct{ *pulumi.OutputState }

func (ResourceShareMapOutput) ElementType

func (ResourceShareMapOutput) ElementType() reflect.Type

func (ResourceShareMapOutput) MapIndex

func (ResourceShareMapOutput) ToResourceShareMapOutput

func (o ResourceShareMapOutput) ToResourceShareMapOutput() ResourceShareMapOutput

func (ResourceShareMapOutput) ToResourceShareMapOutputWithContext

func (o ResourceShareMapOutput) ToResourceShareMapOutputWithContext(ctx context.Context) ResourceShareMapOutput

type ResourceShareOutput

type ResourceShareOutput struct{ *pulumi.OutputState }

func (ResourceShareOutput) ElementType

func (ResourceShareOutput) ElementType() reflect.Type

func (ResourceShareOutput) ResourceShareName added in v3.27.0

func (o ResourceShareOutput) ResourceShareName() pulumi.StringOutput

The name of resource share.

func (ResourceShareOutput) ResourceShareOwner added in v3.27.0

func (o ResourceShareOutput) ResourceShareOwner() pulumi.StringOutput

The owner of the Resource Share.

func (ResourceShareOutput) Status added in v3.27.0

The status of the Resource Share.

func (ResourceShareOutput) ToResourceShareOutput

func (o ResourceShareOutput) ToResourceShareOutput() ResourceShareOutput

func (ResourceShareOutput) ToResourceShareOutputWithContext

func (o ResourceShareOutput) ToResourceShareOutputWithContext(ctx context.Context) ResourceShareOutput

type ResourceShareState

type ResourceShareState struct {
	// The name of resource share.
	ResourceShareName pulumi.StringPtrInput
	// The owner of the Resource Share.
	ResourceShareOwner pulumi.StringPtrInput
	// The status of the Resource Share.
	Status pulumi.StringPtrInput
}

func (ResourceShareState) ElementType

func (ResourceShareState) ElementType() reflect.Type

type Role

type Role struct {
	pulumi.CustomResourceState

	// The resource descriptor of the role.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The content of the permissions strategy that plays a role.
	AssumeRolePolicyDocument pulumi.StringOutput `pulumi:"assumeRolePolicyDocument"`
	// The description of the Resource Manager role.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Role maximum session time. Valid values: [3600-43200]. Default to `3600`.
	MaxSessionDuration pulumi.IntPtrOutput `pulumi:"maxSessionDuration"`
	// This ID of Resource Manager role. The value is set to `roleName`.
	RoleId pulumi.StringOutput `pulumi:"roleId"`
	// Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots "." and dashes "-".
	RoleName pulumi.StringOutput `pulumi:"roleName"`
	// Role update time.
	UpdateDate pulumi.StringOutput `pulumi:"updateDate"`
}

Provides a Resource Manager role resource. Members are resource containers in the resource directory, which can physically isolate resources to form an independent resource grouping unit. You can create members in the resource folder to manage them in a unified manner. For information about Resource Manager role and how to use it, see [What is Resource Manager role](https://www.alibabacloud.com/help/en/doc-detail/111231.htm).

> **NOTE:** Available since v1.82.0.

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tfexample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := alicloud.GetAccount(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewRole(ctx, "example", &resourcemanager.RoleArgs{
			RoleName: pulumi.String(name),
			AssumeRolePolicyDocument: pulumi.String(fmt.Sprintf(`     {
          "Statement": [
               {
                    "Action": "sts:AssumeRole",
                    "Effect": "Allow",
                    "Principal": {
                        "RAM":[
                                "acs:ram::%v:root"
                        ]
                    }
                }
          ],
          "Version": "1"
     }

`, _default.Id)),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager can be imported using the id or role_name, e.g.

```sh $ pulumi import alicloud:resourcemanager/role:Role example testrd ```

func GetRole

func GetRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)

GetRole gets an existing Role 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 NewRole

func NewRole(ctx *pulumi.Context,
	name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)

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

func (*Role) ElementType

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext

func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput

type RoleArgs

type RoleArgs struct {
	// The content of the permissions strategy that plays a role.
	AssumeRolePolicyDocument pulumi.StringInput
	// The description of the Resource Manager role.
	Description pulumi.StringPtrInput
	// Role maximum session time. Valid values: [3600-43200]. Default to `3600`.
	MaxSessionDuration pulumi.IntPtrInput
	// Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots "." and dashes "-".
	RoleName pulumi.StringInput
}

The set of arguments for constructing a Role resource.

func (RoleArgs) ElementType

func (RoleArgs) ElementType() reflect.Type

type RoleArray

type RoleArray []RoleInput

func (RoleArray) ElementType

func (RoleArray) ElementType() reflect.Type

func (RoleArray) ToRoleArrayOutput

func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput

func (RoleArray) ToRoleArrayOutputWithContext

func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleArrayInput

type RoleArrayInput interface {
	pulumi.Input

	ToRoleArrayOutput() RoleArrayOutput
	ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput
}

RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:

RoleArray{ RoleArgs{...} }

type RoleArrayOutput

type RoleArrayOutput struct{ *pulumi.OutputState }

func (RoleArrayOutput) ElementType

func (RoleArrayOutput) ElementType() reflect.Type

func (RoleArrayOutput) Index

func (RoleArrayOutput) ToRoleArrayOutput

func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput

func (RoleArrayOutput) ToRoleArrayOutputWithContext

func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleInput

type RoleInput interface {
	pulumi.Input

	ToRoleOutput() RoleOutput
	ToRoleOutputWithContext(ctx context.Context) RoleOutput
}

type RoleMap

type RoleMap map[string]RoleInput

func (RoleMap) ElementType

func (RoleMap) ElementType() reflect.Type

func (RoleMap) ToRoleMapOutput

func (i RoleMap) ToRoleMapOutput() RoleMapOutput

func (RoleMap) ToRoleMapOutputWithContext

func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleMapInput

type RoleMapInput interface {
	pulumi.Input

	ToRoleMapOutput() RoleMapOutput
	ToRoleMapOutputWithContext(context.Context) RoleMapOutput
}

RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:

RoleMap{ "key": RoleArgs{...} }

type RoleMapOutput

type RoleMapOutput struct{ *pulumi.OutputState }

func (RoleMapOutput) ElementType

func (RoleMapOutput) ElementType() reflect.Type

func (RoleMapOutput) MapIndex

func (RoleMapOutput) ToRoleMapOutput

func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput

func (RoleMapOutput) ToRoleMapOutputWithContext

func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleOutput

type RoleOutput struct{ *pulumi.OutputState }

func (RoleOutput) Arn added in v3.27.0

func (o RoleOutput) Arn() pulumi.StringOutput

The resource descriptor of the role.

func (RoleOutput) AssumeRolePolicyDocument added in v3.27.0

func (o RoleOutput) AssumeRolePolicyDocument() pulumi.StringOutput

The content of the permissions strategy that plays a role.

func (RoleOutput) Description added in v3.27.0

func (o RoleOutput) Description() pulumi.StringPtrOutput

The description of the Resource Manager role.

func (RoleOutput) ElementType

func (RoleOutput) ElementType() reflect.Type

func (RoleOutput) MaxSessionDuration added in v3.27.0

func (o RoleOutput) MaxSessionDuration() pulumi.IntPtrOutput

Role maximum session time. Valid values: [3600-43200]. Default to `3600`.

func (RoleOutput) RoleId added in v3.27.0

func (o RoleOutput) RoleId() pulumi.StringOutput

This ID of Resource Manager role. The value is set to `roleName`.

func (RoleOutput) RoleName added in v3.27.0

func (o RoleOutput) RoleName() pulumi.StringOutput

Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots "." and dashes "-".

func (RoleOutput) ToRoleOutput

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext

func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput

func (RoleOutput) UpdateDate added in v3.27.0

func (o RoleOutput) UpdateDate() pulumi.StringOutput

Role update time.

type RoleState

type RoleState struct {
	// The resource descriptor of the role.
	Arn pulumi.StringPtrInput
	// The content of the permissions strategy that plays a role.
	AssumeRolePolicyDocument pulumi.StringPtrInput
	// The description of the Resource Manager role.
	Description pulumi.StringPtrInput
	// Role maximum session time. Valid values: [3600-43200]. Default to `3600`.
	MaxSessionDuration pulumi.IntPtrInput
	// This ID of Resource Manager role. The value is set to `roleName`.
	RoleId pulumi.StringPtrInput
	// Role Name. The length is 1 ~ 64 characters, which can include English letters, numbers, dots "." and dashes "-".
	RoleName pulumi.StringPtrInput
	// Role update time.
	UpdateDate pulumi.StringPtrInput
}

func (RoleState) ElementType

func (RoleState) ElementType() reflect.Type

type SavedQuery added in v3.45.0

type SavedQuery struct {
	pulumi.CustomResourceState

	// The creation time of the resource.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Query Description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Query Expression.
	Expression pulumi.StringOutput `pulumi:"expression"`
	// The name of the resource.
	SavedQueryName pulumi.StringOutput `pulumi:"savedQueryName"`
}

Provides a Resource Manager Saved Query resource. ResourceCenter Saved Query.

For information about Resource Manager Saved Query and how to use it, see [What is Saved Query](https://www.alibabacloud.com/help/zh/resource-management/developer-reference/api-resourcecenter-2022-12-01-createsavedquery).

> **NOTE:** Available since v1.212.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "terraform-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := resourcemanager.NewSavedQuery(ctx, "default", &resourcemanager.SavedQueryArgs{
			Description:    pulumi.String(name),
			Expression:     pulumi.String("select * from resources limit 1;"),
			SavedQueryName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Saved Query can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/savedQuery:SavedQuery example <id> ```

func GetSavedQuery added in v3.45.0

func GetSavedQuery(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SavedQueryState, opts ...pulumi.ResourceOption) (*SavedQuery, error)

GetSavedQuery gets an existing SavedQuery 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 NewSavedQuery added in v3.45.0

func NewSavedQuery(ctx *pulumi.Context,
	name string, args *SavedQueryArgs, opts ...pulumi.ResourceOption) (*SavedQuery, error)

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

func (*SavedQuery) ElementType added in v3.45.0

func (*SavedQuery) ElementType() reflect.Type

func (*SavedQuery) ToSavedQueryOutput added in v3.45.0

func (i *SavedQuery) ToSavedQueryOutput() SavedQueryOutput

func (*SavedQuery) ToSavedQueryOutputWithContext added in v3.45.0

func (i *SavedQuery) ToSavedQueryOutputWithContext(ctx context.Context) SavedQueryOutput

type SavedQueryArgs added in v3.45.0

type SavedQueryArgs struct {
	// Query Description.
	Description pulumi.StringPtrInput
	// Query Expression.
	Expression pulumi.StringInput
	// The name of the resource.
	SavedQueryName pulumi.StringInput
}

The set of arguments for constructing a SavedQuery resource.

func (SavedQueryArgs) ElementType added in v3.45.0

func (SavedQueryArgs) ElementType() reflect.Type

type SavedQueryArray added in v3.45.0

type SavedQueryArray []SavedQueryInput

func (SavedQueryArray) ElementType added in v3.45.0

func (SavedQueryArray) ElementType() reflect.Type

func (SavedQueryArray) ToSavedQueryArrayOutput added in v3.45.0

func (i SavedQueryArray) ToSavedQueryArrayOutput() SavedQueryArrayOutput

func (SavedQueryArray) ToSavedQueryArrayOutputWithContext added in v3.45.0

func (i SavedQueryArray) ToSavedQueryArrayOutputWithContext(ctx context.Context) SavedQueryArrayOutput

type SavedQueryArrayInput added in v3.45.0

type SavedQueryArrayInput interface {
	pulumi.Input

	ToSavedQueryArrayOutput() SavedQueryArrayOutput
	ToSavedQueryArrayOutputWithContext(context.Context) SavedQueryArrayOutput
}

SavedQueryArrayInput is an input type that accepts SavedQueryArray and SavedQueryArrayOutput values. You can construct a concrete instance of `SavedQueryArrayInput` via:

SavedQueryArray{ SavedQueryArgs{...} }

type SavedQueryArrayOutput added in v3.45.0

type SavedQueryArrayOutput struct{ *pulumi.OutputState }

func (SavedQueryArrayOutput) ElementType added in v3.45.0

func (SavedQueryArrayOutput) ElementType() reflect.Type

func (SavedQueryArrayOutput) Index added in v3.45.0

func (SavedQueryArrayOutput) ToSavedQueryArrayOutput added in v3.45.0

func (o SavedQueryArrayOutput) ToSavedQueryArrayOutput() SavedQueryArrayOutput

func (SavedQueryArrayOutput) ToSavedQueryArrayOutputWithContext added in v3.45.0

func (o SavedQueryArrayOutput) ToSavedQueryArrayOutputWithContext(ctx context.Context) SavedQueryArrayOutput

type SavedQueryInput added in v3.45.0

type SavedQueryInput interface {
	pulumi.Input

	ToSavedQueryOutput() SavedQueryOutput
	ToSavedQueryOutputWithContext(ctx context.Context) SavedQueryOutput
}

type SavedQueryMap added in v3.45.0

type SavedQueryMap map[string]SavedQueryInput

func (SavedQueryMap) ElementType added in v3.45.0

func (SavedQueryMap) ElementType() reflect.Type

func (SavedQueryMap) ToSavedQueryMapOutput added in v3.45.0

func (i SavedQueryMap) ToSavedQueryMapOutput() SavedQueryMapOutput

func (SavedQueryMap) ToSavedQueryMapOutputWithContext added in v3.45.0

func (i SavedQueryMap) ToSavedQueryMapOutputWithContext(ctx context.Context) SavedQueryMapOutput

type SavedQueryMapInput added in v3.45.0

type SavedQueryMapInput interface {
	pulumi.Input

	ToSavedQueryMapOutput() SavedQueryMapOutput
	ToSavedQueryMapOutputWithContext(context.Context) SavedQueryMapOutput
}

SavedQueryMapInput is an input type that accepts SavedQueryMap and SavedQueryMapOutput values. You can construct a concrete instance of `SavedQueryMapInput` via:

SavedQueryMap{ "key": SavedQueryArgs{...} }

type SavedQueryMapOutput added in v3.45.0

type SavedQueryMapOutput struct{ *pulumi.OutputState }

func (SavedQueryMapOutput) ElementType added in v3.45.0

func (SavedQueryMapOutput) ElementType() reflect.Type

func (SavedQueryMapOutput) MapIndex added in v3.45.0

func (SavedQueryMapOutput) ToSavedQueryMapOutput added in v3.45.0

func (o SavedQueryMapOutput) ToSavedQueryMapOutput() SavedQueryMapOutput

func (SavedQueryMapOutput) ToSavedQueryMapOutputWithContext added in v3.45.0

func (o SavedQueryMapOutput) ToSavedQueryMapOutputWithContext(ctx context.Context) SavedQueryMapOutput

type SavedQueryOutput added in v3.45.0

type SavedQueryOutput struct{ *pulumi.OutputState }

func (SavedQueryOutput) CreateTime added in v3.45.0

func (o SavedQueryOutput) CreateTime() pulumi.StringOutput

The creation time of the resource.

func (SavedQueryOutput) Description added in v3.45.0

func (o SavedQueryOutput) Description() pulumi.StringPtrOutput

Query Description.

func (SavedQueryOutput) ElementType added in v3.45.0

func (SavedQueryOutput) ElementType() reflect.Type

func (SavedQueryOutput) Expression added in v3.45.0

func (o SavedQueryOutput) Expression() pulumi.StringOutput

Query Expression.

func (SavedQueryOutput) SavedQueryName added in v3.45.0

func (o SavedQueryOutput) SavedQueryName() pulumi.StringOutput

The name of the resource.

func (SavedQueryOutput) ToSavedQueryOutput added in v3.45.0

func (o SavedQueryOutput) ToSavedQueryOutput() SavedQueryOutput

func (SavedQueryOutput) ToSavedQueryOutputWithContext added in v3.45.0

func (o SavedQueryOutput) ToSavedQueryOutputWithContext(ctx context.Context) SavedQueryOutput

type SavedQueryState added in v3.45.0

type SavedQueryState struct {
	// The creation time of the resource.
	CreateTime pulumi.StringPtrInput
	// Query Description.
	Description pulumi.StringPtrInput
	// Query Expression.
	Expression pulumi.StringPtrInput
	// The name of the resource.
	SavedQueryName pulumi.StringPtrInput
}

func (SavedQueryState) ElementType added in v3.45.0

func (SavedQueryState) ElementType() reflect.Type

type ServiceLinkedRole added in v3.18.0

type ServiceLinkedRole struct {
	pulumi.CustomResourceState

	// The Alibaba Cloud Resource Name (ARN) of the role.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The suffix of the role name. Only a few service linked roles support custom suffixes. The role name (including its suffix) must be 1 to 64 characters in length and can contain letters, digits, periods (.), and hyphens (-). For example, if the suffix is Example, the role name is ServiceLinkedRoleName_Example.
	CustomSuffix pulumi.StringPtrOutput `pulumi:"customSuffix"`
	// The description of the service linked role.  This parameter must be specified for only the service linked roles that support custom suffixes. Otherwise, the preset value is used and cannot be modified. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The ID of the role.
	RoleId pulumi.StringOutput `pulumi:"roleId"`
	// The name of the role.
	RoleName pulumi.StringOutput `pulumi:"roleName"`
	// The service name. For more information about the service name, see [Cloud services that support service linked roles](https://www.alibabacloud.com/help/en/doc-detail/160674.htm)
	ServiceName pulumi.StringOutput `pulumi:"serviceName"`
}

Provides a Resource Manager Service Linked Role.

For information about Resource Manager Service Linked Role and how to use it, see [What is Service Linked Role.](https://www.alibabacloud.com/help/en/doc-detail/171226.htm).

> **NOTE:** Available since v1.157.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := resourcemanager.NewServiceLinkedRole(ctx, "default", &resourcemanager.ServiceLinkedRoleArgs{
			ServiceName: pulumi.String("ops.elasticsearch.aliyuncs.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Service Linked Role can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/serviceLinkedRole:ServiceLinkedRole default <service_name>:<role_name> ```

func GetServiceLinkedRole added in v3.18.0

func GetServiceLinkedRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceLinkedRoleState, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

GetServiceLinkedRole gets an existing ServiceLinkedRole 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 NewServiceLinkedRole added in v3.18.0

func NewServiceLinkedRole(ctx *pulumi.Context,
	name string, args *ServiceLinkedRoleArgs, opts ...pulumi.ResourceOption) (*ServiceLinkedRole, error)

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

func (*ServiceLinkedRole) ElementType added in v3.18.0

func (*ServiceLinkedRole) ElementType() reflect.Type

func (*ServiceLinkedRole) ToServiceLinkedRoleOutput added in v3.18.0

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (*ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext added in v3.18.0

func (i *ServiceLinkedRole) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleArgs added in v3.18.0

type ServiceLinkedRoleArgs struct {
	// The suffix of the role name. Only a few service linked roles support custom suffixes. The role name (including its suffix) must be 1 to 64 characters in length and can contain letters, digits, periods (.), and hyphens (-). For example, if the suffix is Example, the role name is ServiceLinkedRoleName_Example.
	CustomSuffix pulumi.StringPtrInput
	// The description of the service linked role.  This parameter must be specified for only the service linked roles that support custom suffixes. Otherwise, the preset value is used and cannot be modified. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrInput
	// The service name. For more information about the service name, see [Cloud services that support service linked roles](https://www.alibabacloud.com/help/en/doc-detail/160674.htm)
	ServiceName pulumi.StringInput
}

The set of arguments for constructing a ServiceLinkedRole resource.

func (ServiceLinkedRoleArgs) ElementType added in v3.18.0

func (ServiceLinkedRoleArgs) ElementType() reflect.Type

type ServiceLinkedRoleArray added in v3.18.0

type ServiceLinkedRoleArray []ServiceLinkedRoleInput

func (ServiceLinkedRoleArray) ElementType added in v3.18.0

func (ServiceLinkedRoleArray) ElementType() reflect.Type

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput added in v3.18.0

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext added in v3.18.0

func (i ServiceLinkedRoleArray) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleArrayInput added in v3.18.0

type ServiceLinkedRoleArrayInput interface {
	pulumi.Input

	ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput
	ToServiceLinkedRoleArrayOutputWithContext(context.Context) ServiceLinkedRoleArrayOutput
}

ServiceLinkedRoleArrayInput is an input type that accepts ServiceLinkedRoleArray and ServiceLinkedRoleArrayOutput values. You can construct a concrete instance of `ServiceLinkedRoleArrayInput` via:

ServiceLinkedRoleArray{ ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleArrayOutput added in v3.18.0

type ServiceLinkedRoleArrayOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleArrayOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleArrayOutput) Index added in v3.18.0

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput added in v3.18.0

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutput() ServiceLinkedRoleArrayOutput

func (ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleArrayOutput) ToServiceLinkedRoleArrayOutputWithContext(ctx context.Context) ServiceLinkedRoleArrayOutput

type ServiceLinkedRoleInput added in v3.18.0

type ServiceLinkedRoleInput interface {
	pulumi.Input

	ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput
	ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput
}

type ServiceLinkedRoleMap added in v3.18.0

type ServiceLinkedRoleMap map[string]ServiceLinkedRoleInput

func (ServiceLinkedRoleMap) ElementType added in v3.18.0

func (ServiceLinkedRoleMap) ElementType() reflect.Type

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput added in v3.18.0

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext added in v3.18.0

func (i ServiceLinkedRoleMap) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleMapInput added in v3.18.0

type ServiceLinkedRoleMapInput interface {
	pulumi.Input

	ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput
	ToServiceLinkedRoleMapOutputWithContext(context.Context) ServiceLinkedRoleMapOutput
}

ServiceLinkedRoleMapInput is an input type that accepts ServiceLinkedRoleMap and ServiceLinkedRoleMapOutput values. You can construct a concrete instance of `ServiceLinkedRoleMapInput` via:

ServiceLinkedRoleMap{ "key": ServiceLinkedRoleArgs{...} }

type ServiceLinkedRoleMapOutput added in v3.18.0

type ServiceLinkedRoleMapOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleMapOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleMapOutput) ElementType() reflect.Type

func (ServiceLinkedRoleMapOutput) MapIndex added in v3.18.0

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput added in v3.18.0

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutput() ServiceLinkedRoleMapOutput

func (ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleMapOutput) ToServiceLinkedRoleMapOutputWithContext(ctx context.Context) ServiceLinkedRoleMapOutput

type ServiceLinkedRoleOutput added in v3.18.0

type ServiceLinkedRoleOutput struct{ *pulumi.OutputState }

func (ServiceLinkedRoleOutput) Arn added in v3.27.0

The Alibaba Cloud Resource Name (ARN) of the role.

func (ServiceLinkedRoleOutput) CustomSuffix added in v3.27.0

The suffix of the role name. Only a few service linked roles support custom suffixes. The role name (including its suffix) must be 1 to 64 characters in length and can contain letters, digits, periods (.), and hyphens (-). For example, if the suffix is Example, the role name is ServiceLinkedRoleName_Example.

func (ServiceLinkedRoleOutput) Description added in v3.27.0

The description of the service linked role. This parameter must be specified for only the service linked roles that support custom suffixes. Otherwise, the preset value is used and cannot be modified. The description must be 1 to 1,024 characters in length.

func (ServiceLinkedRoleOutput) ElementType added in v3.18.0

func (ServiceLinkedRoleOutput) ElementType() reflect.Type

func (ServiceLinkedRoleOutput) RoleId added in v3.27.0

The ID of the role.

func (ServiceLinkedRoleOutput) RoleName added in v3.27.0

The name of the role.

func (ServiceLinkedRoleOutput) ServiceName added in v3.27.0

The service name. For more information about the service name, see [Cloud services that support service linked roles](https://www.alibabacloud.com/help/en/doc-detail/160674.htm)

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput added in v3.18.0

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutput() ServiceLinkedRoleOutput

func (ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext added in v3.18.0

func (o ServiceLinkedRoleOutput) ToServiceLinkedRoleOutputWithContext(ctx context.Context) ServiceLinkedRoleOutput

type ServiceLinkedRoleState added in v3.18.0

type ServiceLinkedRoleState struct {
	// The Alibaba Cloud Resource Name (ARN) of the role.
	Arn pulumi.StringPtrInput
	// The suffix of the role name. Only a few service linked roles support custom suffixes. The role name (including its suffix) must be 1 to 64 characters in length and can contain letters, digits, periods (.), and hyphens (-). For example, if the suffix is Example, the role name is ServiceLinkedRoleName_Example.
	CustomSuffix pulumi.StringPtrInput
	// The description of the service linked role.  This parameter must be specified for only the service linked roles that support custom suffixes. Otherwise, the preset value is used and cannot be modified. The description must be 1 to 1,024 characters in length.
	Description pulumi.StringPtrInput
	// The ID of the role.
	RoleId pulumi.StringPtrInput
	// The name of the role.
	RoleName pulumi.StringPtrInput
	// The service name. For more information about the service name, see [Cloud services that support service linked roles](https://www.alibabacloud.com/help/en/doc-detail/160674.htm)
	ServiceName pulumi.StringPtrInput
}

func (ServiceLinkedRoleState) ElementType added in v3.18.0

func (ServiceLinkedRoleState) ElementType() reflect.Type

type SharedResource

type SharedResource struct {
	pulumi.CustomResourceState

	// The resource ID need shared.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringOutput `pulumi:"resourceShareId"`
	// The resource type of should shared. Valid values:
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// The status of the Shared Resource.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Resource Manager Shared Resource resource.

For information about Resource Manager Shared Resource and how to use it, see [What is Shared Resource](https://www.alibabacloud.com/help/en/resource-management/latest/api-resourcesharing-2020-01-10-associateresourceshare).

> **NOTE:** Available since v1.111.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"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 := "tfexample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		example, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		exampleNetwork, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		exampleSwitch, err := vpc.NewSwitch(ctx, "example", &vpc.SwitchArgs{
			ZoneId:      pulumi.String(example.Zones[0].Id),
			CidrBlock:   pulumi.String("192.168.0.0/16"),
			VpcId:       exampleNetwork.ID(),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		exampleResourceShare, err := resourcemanager.NewResourceShare(ctx, "example", &resourcemanager.ResourceShareArgs{
			ResourceShareName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewSharedResource(ctx, "example", &resourcemanager.SharedResourceArgs{
			ResourceId:      exampleSwitch.ID(),
			ResourceShareId: exampleResourceShare.ID(),
			ResourceType:    pulumi.String("VSwitch"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Shared Resource can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/sharedResource:SharedResource example <resource_share_id>:<resource_id>:<resource_type> ```

func GetSharedResource

func GetSharedResource(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SharedResourceState, opts ...pulumi.ResourceOption) (*SharedResource, error)

GetSharedResource gets an existing SharedResource 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 NewSharedResource

func NewSharedResource(ctx *pulumi.Context,
	name string, args *SharedResourceArgs, opts ...pulumi.ResourceOption) (*SharedResource, error)

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

func (*SharedResource) ElementType

func (*SharedResource) ElementType() reflect.Type

func (*SharedResource) ToSharedResourceOutput

func (i *SharedResource) ToSharedResourceOutput() SharedResourceOutput

func (*SharedResource) ToSharedResourceOutputWithContext

func (i *SharedResource) ToSharedResourceOutputWithContext(ctx context.Context) SharedResourceOutput

type SharedResourceArgs

type SharedResourceArgs struct {
	// The resource ID need shared.
	ResourceId pulumi.StringInput
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringInput
	// The resource type of should shared. Valid values:
	ResourceType pulumi.StringInput
}

The set of arguments for constructing a SharedResource resource.

func (SharedResourceArgs) ElementType

func (SharedResourceArgs) ElementType() reflect.Type

type SharedResourceArray

type SharedResourceArray []SharedResourceInput

func (SharedResourceArray) ElementType

func (SharedResourceArray) ElementType() reflect.Type

func (SharedResourceArray) ToSharedResourceArrayOutput

func (i SharedResourceArray) ToSharedResourceArrayOutput() SharedResourceArrayOutput

func (SharedResourceArray) ToSharedResourceArrayOutputWithContext

func (i SharedResourceArray) ToSharedResourceArrayOutputWithContext(ctx context.Context) SharedResourceArrayOutput

type SharedResourceArrayInput

type SharedResourceArrayInput interface {
	pulumi.Input

	ToSharedResourceArrayOutput() SharedResourceArrayOutput
	ToSharedResourceArrayOutputWithContext(context.Context) SharedResourceArrayOutput
}

SharedResourceArrayInput is an input type that accepts SharedResourceArray and SharedResourceArrayOutput values. You can construct a concrete instance of `SharedResourceArrayInput` via:

SharedResourceArray{ SharedResourceArgs{...} }

type SharedResourceArrayOutput

type SharedResourceArrayOutput struct{ *pulumi.OutputState }

func (SharedResourceArrayOutput) ElementType

func (SharedResourceArrayOutput) ElementType() reflect.Type

func (SharedResourceArrayOutput) Index

func (SharedResourceArrayOutput) ToSharedResourceArrayOutput

func (o SharedResourceArrayOutput) ToSharedResourceArrayOutput() SharedResourceArrayOutput

func (SharedResourceArrayOutput) ToSharedResourceArrayOutputWithContext

func (o SharedResourceArrayOutput) ToSharedResourceArrayOutputWithContext(ctx context.Context) SharedResourceArrayOutput

type SharedResourceInput

type SharedResourceInput interface {
	pulumi.Input

	ToSharedResourceOutput() SharedResourceOutput
	ToSharedResourceOutputWithContext(ctx context.Context) SharedResourceOutput
}

type SharedResourceMap

type SharedResourceMap map[string]SharedResourceInput

func (SharedResourceMap) ElementType

func (SharedResourceMap) ElementType() reflect.Type

func (SharedResourceMap) ToSharedResourceMapOutput

func (i SharedResourceMap) ToSharedResourceMapOutput() SharedResourceMapOutput

func (SharedResourceMap) ToSharedResourceMapOutputWithContext

func (i SharedResourceMap) ToSharedResourceMapOutputWithContext(ctx context.Context) SharedResourceMapOutput

type SharedResourceMapInput

type SharedResourceMapInput interface {
	pulumi.Input

	ToSharedResourceMapOutput() SharedResourceMapOutput
	ToSharedResourceMapOutputWithContext(context.Context) SharedResourceMapOutput
}

SharedResourceMapInput is an input type that accepts SharedResourceMap and SharedResourceMapOutput values. You can construct a concrete instance of `SharedResourceMapInput` via:

SharedResourceMap{ "key": SharedResourceArgs{...} }

type SharedResourceMapOutput

type SharedResourceMapOutput struct{ *pulumi.OutputState }

func (SharedResourceMapOutput) ElementType

func (SharedResourceMapOutput) ElementType() reflect.Type

func (SharedResourceMapOutput) MapIndex

func (SharedResourceMapOutput) ToSharedResourceMapOutput

func (o SharedResourceMapOutput) ToSharedResourceMapOutput() SharedResourceMapOutput

func (SharedResourceMapOutput) ToSharedResourceMapOutputWithContext

func (o SharedResourceMapOutput) ToSharedResourceMapOutputWithContext(ctx context.Context) SharedResourceMapOutput

type SharedResourceOutput

type SharedResourceOutput struct{ *pulumi.OutputState }

func (SharedResourceOutput) ElementType

func (SharedResourceOutput) ElementType() reflect.Type

func (SharedResourceOutput) ResourceId added in v3.27.0

func (o SharedResourceOutput) ResourceId() pulumi.StringOutput

The resource ID need shared.

func (SharedResourceOutput) ResourceShareId added in v3.27.0

func (o SharedResourceOutput) ResourceShareId() pulumi.StringOutput

The resource share ID of resource manager.

func (SharedResourceOutput) ResourceType added in v3.27.0

func (o SharedResourceOutput) ResourceType() pulumi.StringOutput

The resource type of should shared. Valid values:

func (SharedResourceOutput) Status added in v3.27.0

The status of the Shared Resource.

func (SharedResourceOutput) ToSharedResourceOutput

func (o SharedResourceOutput) ToSharedResourceOutput() SharedResourceOutput

func (SharedResourceOutput) ToSharedResourceOutputWithContext

func (o SharedResourceOutput) ToSharedResourceOutputWithContext(ctx context.Context) SharedResourceOutput

type SharedResourceState

type SharedResourceState struct {
	// The resource ID need shared.
	ResourceId pulumi.StringPtrInput
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringPtrInput
	// The resource type of should shared. Valid values:
	ResourceType pulumi.StringPtrInput
	// The status of the Shared Resource.
	Status pulumi.StringPtrInput
}

func (SharedResourceState) ElementType

func (SharedResourceState) ElementType() reflect.Type

type SharedTarget

type SharedTarget struct {
	pulumi.CustomResourceState

	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringOutput `pulumi:"resourceShareId"`
	// The status of shared target.
	Status pulumi.StringOutput `pulumi:"status"`
	// The member account ID in resource directory.
	TargetId pulumi.StringOutput `pulumi:"targetId"`
}

Provides a Resource Manager Shared Target resource.

For information about Resource Manager Shared Target and how to use it, see [What is Shared Target](https://www.alibabacloud.com/help/en/doc-detail/94475.htm).

> **NOTE:** Available since v1.111.0.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"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 := "tfexample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_default, err := resourcemanager.GetAccounts(ctx, nil, nil)
		if err != nil {
			return err
		}
		example, err := resourcemanager.NewResourceShare(ctx, "example", &resourcemanager.ResourceShareArgs{
			ResourceShareName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = resourcemanager.NewSharedTarget(ctx, "example", &resourcemanager.SharedTargetArgs{
			ResourceShareId: example.ID(),
			TargetId:        pulumi.String(_default.Ids[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Resource Manager Shared Target can be imported using the id, e.g.

```sh $ pulumi import alicloud:resourcemanager/sharedTarget:SharedTarget example <resource_share_id>:<target_id> ```

func GetSharedTarget

func GetSharedTarget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SharedTargetState, opts ...pulumi.ResourceOption) (*SharedTarget, error)

GetSharedTarget gets an existing SharedTarget 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 NewSharedTarget

func NewSharedTarget(ctx *pulumi.Context,
	name string, args *SharedTargetArgs, opts ...pulumi.ResourceOption) (*SharedTarget, error)

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

func (*SharedTarget) ElementType

func (*SharedTarget) ElementType() reflect.Type

func (*SharedTarget) ToSharedTargetOutput

func (i *SharedTarget) ToSharedTargetOutput() SharedTargetOutput

func (*SharedTarget) ToSharedTargetOutputWithContext

func (i *SharedTarget) ToSharedTargetOutputWithContext(ctx context.Context) SharedTargetOutput

type SharedTargetArgs

type SharedTargetArgs struct {
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringInput
	// The member account ID in resource directory.
	TargetId pulumi.StringInput
}

The set of arguments for constructing a SharedTarget resource.

func (SharedTargetArgs) ElementType

func (SharedTargetArgs) ElementType() reflect.Type

type SharedTargetArray

type SharedTargetArray []SharedTargetInput

func (SharedTargetArray) ElementType

func (SharedTargetArray) ElementType() reflect.Type

func (SharedTargetArray) ToSharedTargetArrayOutput

func (i SharedTargetArray) ToSharedTargetArrayOutput() SharedTargetArrayOutput

func (SharedTargetArray) ToSharedTargetArrayOutputWithContext

func (i SharedTargetArray) ToSharedTargetArrayOutputWithContext(ctx context.Context) SharedTargetArrayOutput

type SharedTargetArrayInput

type SharedTargetArrayInput interface {
	pulumi.Input

	ToSharedTargetArrayOutput() SharedTargetArrayOutput
	ToSharedTargetArrayOutputWithContext(context.Context) SharedTargetArrayOutput
}

SharedTargetArrayInput is an input type that accepts SharedTargetArray and SharedTargetArrayOutput values. You can construct a concrete instance of `SharedTargetArrayInput` via:

SharedTargetArray{ SharedTargetArgs{...} }

type SharedTargetArrayOutput

type SharedTargetArrayOutput struct{ *pulumi.OutputState }

func (SharedTargetArrayOutput) ElementType

func (SharedTargetArrayOutput) ElementType() reflect.Type

func (SharedTargetArrayOutput) Index

func (SharedTargetArrayOutput) ToSharedTargetArrayOutput

func (o SharedTargetArrayOutput) ToSharedTargetArrayOutput() SharedTargetArrayOutput

func (SharedTargetArrayOutput) ToSharedTargetArrayOutputWithContext

func (o SharedTargetArrayOutput) ToSharedTargetArrayOutputWithContext(ctx context.Context) SharedTargetArrayOutput

type SharedTargetInput

type SharedTargetInput interface {
	pulumi.Input

	ToSharedTargetOutput() SharedTargetOutput
	ToSharedTargetOutputWithContext(ctx context.Context) SharedTargetOutput
}

type SharedTargetMap

type SharedTargetMap map[string]SharedTargetInput

func (SharedTargetMap) ElementType

func (SharedTargetMap) ElementType() reflect.Type

func (SharedTargetMap) ToSharedTargetMapOutput

func (i SharedTargetMap) ToSharedTargetMapOutput() SharedTargetMapOutput

func (SharedTargetMap) ToSharedTargetMapOutputWithContext

func (i SharedTargetMap) ToSharedTargetMapOutputWithContext(ctx context.Context) SharedTargetMapOutput

type SharedTargetMapInput

type SharedTargetMapInput interface {
	pulumi.Input

	ToSharedTargetMapOutput() SharedTargetMapOutput
	ToSharedTargetMapOutputWithContext(context.Context) SharedTargetMapOutput
}

SharedTargetMapInput is an input type that accepts SharedTargetMap and SharedTargetMapOutput values. You can construct a concrete instance of `SharedTargetMapInput` via:

SharedTargetMap{ "key": SharedTargetArgs{...} }

type SharedTargetMapOutput

type SharedTargetMapOutput struct{ *pulumi.OutputState }

func (SharedTargetMapOutput) ElementType

func (SharedTargetMapOutput) ElementType() reflect.Type

func (SharedTargetMapOutput) MapIndex

func (SharedTargetMapOutput) ToSharedTargetMapOutput

func (o SharedTargetMapOutput) ToSharedTargetMapOutput() SharedTargetMapOutput

func (SharedTargetMapOutput) ToSharedTargetMapOutputWithContext

func (o SharedTargetMapOutput) ToSharedTargetMapOutputWithContext(ctx context.Context) SharedTargetMapOutput

type SharedTargetOutput

type SharedTargetOutput struct{ *pulumi.OutputState }

func (SharedTargetOutput) ElementType

func (SharedTargetOutput) ElementType() reflect.Type

func (SharedTargetOutput) ResourceShareId added in v3.27.0

func (o SharedTargetOutput) ResourceShareId() pulumi.StringOutput

The resource share ID of resource manager.

func (SharedTargetOutput) Status added in v3.27.0

The status of shared target.

func (SharedTargetOutput) TargetId added in v3.27.0

func (o SharedTargetOutput) TargetId() pulumi.StringOutput

The member account ID in resource directory.

func (SharedTargetOutput) ToSharedTargetOutput

func (o SharedTargetOutput) ToSharedTargetOutput() SharedTargetOutput

func (SharedTargetOutput) ToSharedTargetOutputWithContext

func (o SharedTargetOutput) ToSharedTargetOutputWithContext(ctx context.Context) SharedTargetOutput

type SharedTargetState

type SharedTargetState struct {
	// The resource share ID of resource manager.
	ResourceShareId pulumi.StringPtrInput
	// The status of shared target.
	Status pulumi.StringPtrInput
	// The member account ID in resource directory.
	TargetId pulumi.StringPtrInput
}

func (SharedTargetState) ElementType

func (SharedTargetState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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