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
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));
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])
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
}
ctx.Export("abandonAbleChecksIds", pulumi.StringArray(%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:5,11-44)))
return nil
})
}
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 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()));
}
}
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:
- Account
Id string - The ID of the member that you want to delete.
- Account
Id string - The ID of the member that you want to delete.
- account
Id String - The ID of the member that you want to delete.
- account
Id string - The ID of the member that you want to delete.
- account_
id str - The ID of the member that you want to delete.
- account
Id String - The ID of the member that you want to delete.
getAccountDeletionCheckTask Result
The following output properties are available:
- Abandon
Able List<Pulumi.Checks Ali Cloud. Resource Manager. Outputs. Get Account Deletion Check Task Abandon Able Check> - The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
- Account
Id string - Allow
Delete bool - Indicates whether the member can be deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
Allow List<Pulumi.Reasons Ali Cloud. Resource Manager. Outputs. Get Account Deletion Check Task Not Allow Reason> - The reasons why the member cannot be deleted. Each element contains the following attributes:
- Status string
- The status of the check.
- Abandon
Able []GetChecks Account Deletion Check Task Abandon Able Check - The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
- Account
Id string - Allow
Delete bool - Indicates whether the member can be deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
Allow []GetReasons Account Deletion Check Task Not Allow Reason - The reasons why the member cannot be deleted. Each element contains the following attributes:
- Status string
- The status of the check.
- abandon
Able List<GetChecks Account Deletion Check Task Abandon Able Check> - The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
- account
Id String - allow
Delete Boolean - Indicates whether the member can be deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- not
Allow List<GetReasons Account Deletion Check Task Not Allow Reason> - The reasons why the member cannot be deleted. Each element contains the following attributes:
- status String
- The status of the check.
- abandon
Able GetChecks Account Deletion Check Task Abandon Able Check[] - The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
- account
Id string - allow
Delete boolean - Indicates whether the member can be deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- not
Allow GetReasons Account Deletion Check Task Not Allow Reason[] - The reasons why the member cannot be deleted. Each element contains the following attributes:
- status string
- The status of the check.
- abandon_
able_ Sequence[Getchecks Account Deletion Check Task Abandon Able Check] - 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_ Sequence[Getreasons Account Deletion Check Task Not Allow Reason] - The reasons why the member cannot be deleted. Each element contains the following attributes:
- status str
- The status of the check.
- abandon
Able List<Property Map>Checks - The check items that you can choose to ignore for the member deletion. Each element contains the following attributes:
- account
Id String - allow
Delete Boolean - Indicates whether the member can be deleted.
- id String
- The provider-assigned unique ID for this managed resource.
- not
Allow List<Property Map>Reasons - The reasons why the member cannot be deleted. Each element contains the following attributes:
- status String
- The status of the check.
Supporting Types
GetAccountDeletionCheckTaskAbandonAbleCheck
- Check
Id string - The ID of the check item.
- Check
Name string - The name of the cloud service to which the check item belongs.
- Description string
- The description of the check item.
- Check
Id string - The ID of the check item.
- Check
Name string - The name of the cloud service to which the check item belongs.
- Description string
- The description of the check item.
- check
Id String - The ID of the check item.
- check
Name String - The name of the cloud service to which the check item belongs.
- description String
- The description of the check item.
- check
Id string - The ID of the check item.
- check
Name 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.
- check
Id String - The ID of the check item.
- check
Name String - The name of the cloud service to which the check item belongs.
- description String
- The description of the check item.
GetAccountDeletionCheckTaskNotAllowReason
- Check
Id string - The ID of the check item.
- Check
Name string - The name of the cloud service to which the check item belongs.
- Description string
- The description of the check item.
- Check
Id string - The ID of the check item.
- Check
Name string - The name of the cloud service to which the check item belongs.
- Description string
- The description of the check item.
- check
Id String - The ID of the check item.
- check
Name String - The name of the cloud service to which the check item belongs.
- description String
- The description of the check item.
- check
Id string - The ID of the check item.
- check
Name 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.
- check
Id String - The ID of the check item.
- check
Name 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.