alicloud.resourcemanager.getAccountDeletionCheckTask

Explore with Pulumi AI

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.

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

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var task = AliCloud.ResourceManager.GetAccountDeletionCheckTask.Invoke(new()
    {
        AccountId = "your_account_id",
    });

    return new Dictionary<string, object?>
    {
        ["abandonAbleChecksIds"] = task.Apply(getAccountDeletionCheckTaskResult => getAccountDeletionCheckTaskResult.AbandonAbleChecks).Select(__item => __item.CheckId).ToList(),
    };
});
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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetAccountDeletionCheckTaskArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var task = ResourcemanagerFunctions.getAccountDeletionCheckTask(GetAccountDeletionCheckTaskArgs.builder()
            .accountId("your_account_id")
            .build());

        ctx.export("abandonAbleChecksIds", task.applyValue(getAccountDeletionCheckTaskResult -> getAccountDeletionCheckTaskResult.abandonAbleChecks()).stream().map(element -> element.checkId()).collect(toList()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

task = alicloud.resourcemanager.get_account_deletion_check_task(account_id="your_account_id")
pulumi.export("abandonAbleChecksIds", [__item.check_id for __item in task.abandon_able_checks])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const task = alicloud.resourcemanager.getAccountDeletionCheckTask({
    accountId: "your_account_id",
});
export const abandonAbleChecksIds = task.then(task => task.abandonAbleChecks.map(__item => __item.checkId));

Coming soon!

Using getAccountDeletionCheckTask

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAccountDeletionCheckTask(args: GetAccountDeletionCheckTaskArgs, opts?: InvokeOptions): Promise<GetAccountDeletionCheckTaskResult>
function getAccountDeletionCheckTaskOutput(args: GetAccountDeletionCheckTaskOutputArgs, opts?: InvokeOptions): Output<GetAccountDeletionCheckTaskResult>
def get_account_deletion_check_task(account_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetAccountDeletionCheckTaskResult
def get_account_deletion_check_task_output(account_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetAccountDeletionCheckTaskResult]
func GetAccountDeletionCheckTask(ctx *Context, args *GetAccountDeletionCheckTaskArgs, opts ...InvokeOption) (*GetAccountDeletionCheckTaskResult, error)
func GetAccountDeletionCheckTaskOutput(ctx *Context, args *GetAccountDeletionCheckTaskOutputArgs, opts ...InvokeOption) GetAccountDeletionCheckTaskResultOutput

> Note: This function is named GetAccountDeletionCheckTask in the Go SDK.

public static class GetAccountDeletionCheckTask 
{
    public static Task<GetAccountDeletionCheckTaskResult> InvokeAsync(GetAccountDeletionCheckTaskArgs args, InvokeOptions? opts = null)
    public static Output<GetAccountDeletionCheckTaskResult> Invoke(GetAccountDeletionCheckTaskInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAccountDeletionCheckTaskResult> getAccountDeletionCheckTask(GetAccountDeletionCheckTaskArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: alicloud:resourcemanager/getAccountDeletionCheckTask:getAccountDeletionCheckTask
  arguments:
    # arguments dictionary

The following arguments are supported:

AccountId string

The ID of the member that you want to delete.

AccountId string

The ID of the member that you want to delete.

accountId String

The ID of the member that you want to delete.

accountId string

The ID of the member that you want to delete.

account_id str

The ID of the member that you want to delete.

accountId String

The ID of the member that you want to delete.

getAccountDeletionCheckTask Result

The following output properties are available:

AbandonAbleChecks List<Pulumi.AliCloud.ResourceManager.Outputs.GetAccountDeletionCheckTaskAbandonAbleCheck>

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

AccountId string
AllowDelete bool

Indicates whether the member can be deleted.

Id string

The provider-assigned unique ID for this managed resource.

NotAllowReasons List<Pulumi.AliCloud.ResourceManager.Outputs.GetAccountDeletionCheckTaskNotAllowReason>

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

Status string

The status of the check.

AbandonAbleChecks []GetAccountDeletionCheckTaskAbandonAbleCheck

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

AccountId string
AllowDelete bool

Indicates whether the member can be deleted.

Id string

The provider-assigned unique ID for this managed resource.

NotAllowReasons []GetAccountDeletionCheckTaskNotAllowReason

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

Status string

The status of the check.

abandonAbleChecks List<GetAccountDeletionCheckTaskAbandonAbleCheck>

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

accountId String
allowDelete Boolean

Indicates whether the member can be deleted.

id String

The provider-assigned unique ID for this managed resource.

notAllowReasons List<GetAccountDeletionCheckTaskNotAllowReason>

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

status String

The status of the check.

abandonAbleChecks GetAccountDeletionCheckTaskAbandonAbleCheck[]

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

accountId string
allowDelete boolean

Indicates whether the member can be deleted.

id string

The provider-assigned unique ID for this managed resource.

notAllowReasons GetAccountDeletionCheckTaskNotAllowReason[]

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

status string

The status of the check.

abandon_able_checks Sequence[GetAccountDeletionCheckTaskAbandonAbleCheck]

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

account_id str
allow_delete bool

Indicates whether the member can be deleted.

id str

The provider-assigned unique ID for this managed resource.

not_allow_reasons Sequence[GetAccountDeletionCheckTaskNotAllowReason]

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

status str

The status of the check.

abandonAbleChecks List<Property Map>

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

accountId String
allowDelete Boolean

Indicates whether the member can be deleted.

id String

The provider-assigned unique ID for this managed resource.

notAllowReasons List<Property Map>

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

status String

The status of the check.

Supporting Types

GetAccountDeletionCheckTaskAbandonAbleCheck

CheckId string

The ID of the check item.

CheckName string

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

Description string

The description of the check item.

CheckId string

The ID of the check item.

CheckName string

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

Description string

The description of the check item.

checkId String

The ID of the check item.

checkName String

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

description String

The description of the check item.

checkId string

The ID of the check item.

checkName string

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

description string

The description of the check item.

check_id str

The ID of the check item.

check_name str

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

description str

The description of the check item.

checkId String

The ID of the check item.

checkName String

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

description String

The description of the check item.

GetAccountDeletionCheckTaskNotAllowReason

CheckId string

The ID of the check item.

CheckName string

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

Description string

The description of the check item.

CheckId string

The ID of the check item.

CheckName string

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

Description string

The description of the check item.

checkId String

The ID of the check item.

checkName String

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

description String

The description of the check item.

checkId string

The ID of the check item.

checkName string

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

description string

The description of the check item.

check_id str

The ID of the check item.

check_name str

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

description str

The description of the check item.

checkId String

The ID of the check item.

checkName String

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

description String

The description of the check item.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.