com.pulumi.alicloud.AlicloudFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud;
import com.pulumi.alicloud.Utilities;
import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumPlainArgs;
import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessagePlainArgs;
import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
import com.pulumi.alicloud.inputs.GetMscSubContactsPlainArgs;
import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsPlainArgs;
import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
import com.pulumi.alicloud.inputs.GetMscSubWebhooksPlainArgs;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
import com.pulumi.alicloud.inputs.GetRegionsPlainArgs;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.inputs.GetZonesPlainArgs;
import com.pulumi.alicloud.outputs.GetAccountResult;
import com.pulumi.alicloud.outputs.GetCallerIdentityResult;
import com.pulumi.alicloud.outputs.GetFileCrc64ChecksumResult;
import com.pulumi.alicloud.outputs.GetMscSubContactVerificationMessageResult;
import com.pulumi.alicloud.outputs.GetMscSubContactsResult;
import com.pulumi.alicloud.outputs.GetMscSubSubscriptionsResult;
import com.pulumi.alicloud.outputs.GetMscSubWebhooksResult;
import com.pulumi.alicloud.outputs.GetRegionsResult;
import com.pulumi.alicloud.outputs.GetZonesResult;
import com.pulumi.core.Output;
import com.pulumi.core.TypeShape;
import com.pulumi.deployment.Deployment;
import com.pulumi.deployment.InvokeOptions;
import com.pulumi.resources.InvokeArgs;
import java.util.concurrent.CompletableFuture;
public final class AlicloudFunctions {
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccount() {
return getAccount(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountPlain() {
return getAccountPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccount(InvokeArgs args) {
return getAccount(args, InvokeOptions.Empty);
}
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountPlain(InvokeArgs args) {
return getAccountPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getAccount(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides information about the current account.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getAccount();
*
* ctx.export("currentAccountId", current.applyValue(getAccountResult -> getAccountResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getAccountPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getAccount:getAccount", TypeShape.of(GetAccountResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getCallerIdentity() {
return getCallerIdentity(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getCallerIdentityPlain() {
return getCallerIdentityPlain(InvokeArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getCallerIdentity(InvokeArgs args) {
return getCallerIdentity(args, InvokeOptions.Empty);
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getCallerIdentityPlain(InvokeArgs args) {
return getCallerIdentityPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getCallerIdentity(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getCallerIdentity:getCallerIdentity", TypeShape.of(GetCallerIdentityResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the identity of the current user.
*
* > **NOTE:** Available in 1.65.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* 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 current = AlicloudFunctions.getCallerIdentity();
*
* ctx.export("currentUserArn", current.applyValue(getCallerIdentityResult -> getCallerIdentityResult.id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getCallerIdentityPlain(InvokeArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getCallerIdentity:getCallerIdentity", TypeShape.of(GetCallerIdentityResult.class), args, Utilities.withVersion(options));
}
/**
* This data source compute file crc64 checksum.
*
* > **NOTE:** Available in 1.59.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
* 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 default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
* .filename("exampleFileName")
* .build());
*
* ctx.export("fileCrc64Checksum", defualt.checksum());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getFileCrc64Checksum(GetFileCrc64ChecksumArgs args) {
return getFileCrc64Checksum(args, InvokeOptions.Empty);
}
/**
* This data source compute file crc64 checksum.
*
* > **NOTE:** Available in 1.59.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
* 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 default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
* .filename("exampleFileName")
* .build());
*
* ctx.export("fileCrc64Checksum", defualt.checksum());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getFileCrc64ChecksumPlain(GetFileCrc64ChecksumPlainArgs args) {
return getFileCrc64ChecksumPlain(args, InvokeOptions.Empty);
}
/**
* This data source compute file crc64 checksum.
*
* > **NOTE:** Available in 1.59.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
* 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 default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
* .filename("exampleFileName")
* .build());
*
* ctx.export("fileCrc64Checksum", defualt.checksum());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getFileCrc64Checksum(GetFileCrc64ChecksumArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", TypeShape.of(GetFileCrc64ChecksumResult.class), args, Utilities.withVersion(options));
}
/**
* This data source compute file crc64 checksum.
*
* > **NOTE:** Available in 1.59.0+.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetFileCrc64ChecksumArgs;
* 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 default = AlicloudFunctions.getFileCrc64Checksum(GetFileCrc64ChecksumArgs.builder()
* .filename("exampleFileName")
* .build());
*
* ctx.export("fileCrc64Checksum", defualt.checksum());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getFileCrc64ChecksumPlain(GetFileCrc64ChecksumPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getFileCrc64Checksum:getFileCrc64Checksum", TypeShape.of(GetFileCrc64ChecksumResult.class), args, Utilities.withVersion(options));
}
/**
* > **NOTE:** Available in v1.156.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.MscSubContract;
* import com.pulumi.alicloud.MscSubContractArgs;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
* .contactName("example_value")
* .position("CEO")
* .email("123}{@literal @}{@code 163.com")
* .mobile("153xxxxx906")
* .build());
*
* final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
* .contactId(defaultMscSubContract.id())
* .type(1)
* .build());
*
* }}{@code
* }}{@code
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs args) {
return getMscSubContactVerificationMessage(args, InvokeOptions.Empty);
}
/**
* > **NOTE:** Available in v1.156.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.MscSubContract;
* import com.pulumi.alicloud.MscSubContractArgs;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
* .contactName("example_value")
* .position("CEO")
* .email("123}{@literal @}{@code 163.com")
* .mobile("153xxxxx906")
* .build());
*
* final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
* .contactId(defaultMscSubContract.id())
* .type(1)
* .build());
*
* }}{@code
* }}{@code
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubContactVerificationMessagePlain(GetMscSubContactVerificationMessagePlainArgs args) {
return getMscSubContactVerificationMessagePlain(args, InvokeOptions.Empty);
}
/**
* > **NOTE:** Available in v1.156.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.MscSubContract;
* import com.pulumi.alicloud.MscSubContractArgs;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
* .contactName("example_value")
* .position("CEO")
* .email("123}{@literal @}{@code 163.com")
* .mobile("153xxxxx906")
* .build());
*
* final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
* .contactId(defaultMscSubContract.id())
* .type(1)
* .build());
*
* }}{@code
* }}{@code
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", TypeShape.of(GetMscSubContactVerificationMessageResult.class), args, Utilities.withVersion(options));
}
/**
* > **NOTE:** Available in v1.156.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.MscSubContract;
* import com.pulumi.alicloud.MscSubContractArgs;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactVerificationMessageArgs;
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* var defaultMscSubContract = new MscSubContract("defaultMscSubContract", MscSubContractArgs.builder()
* .contactName("example_value")
* .position("CEO")
* .email("123}{@literal @}{@code 163.com")
* .mobile("153xxxxx906")
* .build());
*
* final var default = AlicloudFunctions.getMscSubContactVerificationMessage(GetMscSubContactVerificationMessageArgs.builder()
* .contactId(defaultMscSubContract.id())
* .type(1)
* .build());
*
* }}{@code
* }}{@code
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubContactVerificationMessagePlain(GetMscSubContactVerificationMessagePlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getMscSubContactVerificationMessage:getMscSubContactVerificationMessage", TypeShape.of(GetMscSubContactVerificationMessageResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubContacts() {
return getMscSubContacts(GetMscSubContactsArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubContactsPlain() {
return getMscSubContactsPlain(GetMscSubContactsPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubContacts(GetMscSubContactsArgs args) {
return getMscSubContacts(args, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubContactsPlain(GetMscSubContactsPlainArgs args) {
return getMscSubContactsPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubContacts(GetMscSubContactsArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getMscSubContacts:getMscSubContacts", TypeShape.of(GetMscSubContactsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Message Center Contacts of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.132.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubContactsArgs;
* 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 ids = AlicloudFunctions.getMscSubContacts();
*
* ctx.export("mscSubContactId1", ids.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubContacts(GetMscSubContactsArgs.builder()
* .nameRegex("^my-Contact")
* .build());
*
* ctx.export("mscSubContactId2", nameRegex.applyValue(getMscSubContactsResult -> getMscSubContactsResult.contacts()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubContactsPlain(GetMscSubContactsPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getMscSubContacts:getMscSubContacts", TypeShape.of(GetMscSubContactsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubSubscriptions() {
return getMscSubSubscriptions(GetMscSubSubscriptionsArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubSubscriptionsPlain() {
return getMscSubSubscriptionsPlain(GetMscSubSubscriptionsPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubSubscriptions(GetMscSubSubscriptionsArgs args) {
return getMscSubSubscriptions(args, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubSubscriptionsPlain(GetMscSubSubscriptionsPlainArgs args) {
return getMscSubSubscriptionsPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubSubscriptions(GetMscSubSubscriptionsArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", TypeShape.of(GetMscSubSubscriptionsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Message Center Subscriptions of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.135.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubSubscriptionsArgs;
* 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 default = AlicloudFunctions.getMscSubSubscriptions();
*
* ctx.export("mscSubSubscriptionId1", default_.subscriptions()[0].id());
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubSubscriptionsPlain(GetMscSubSubscriptionsPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getMscSubSubscriptions:getMscSubSubscriptions", TypeShape.of(GetMscSubSubscriptionsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubWebhooks() {
return getMscSubWebhooks(GetMscSubWebhooksArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubWebhooksPlain() {
return getMscSubWebhooksPlain(GetMscSubWebhooksPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubWebhooks(GetMscSubWebhooksArgs args) {
return getMscSubWebhooks(args, InvokeOptions.Empty);
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubWebhooksPlain(GetMscSubWebhooksPlainArgs args) {
return getMscSubWebhooksPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getMscSubWebhooks(GetMscSubWebhooksArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", TypeShape.of(GetMscSubWebhooksResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the Msc Sub Webhooks of the current Alibaba Cloud user.
*
* > **NOTE:** Available in v1.141.0+.
*
* ## Example Usage
*
* Basic Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetMscSubWebhooksArgs;
* 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 ids = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .ids("example_id")
* .build());
*
* ctx.export("mscSubWebhookId1", ids.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* final var nameRegex = AlicloudFunctions.getMscSubWebhooks(GetMscSubWebhooksArgs.builder()
* .nameRegex("^my-Webhook")
* .build());
*
* ctx.export("mscSubWebhookId2", nameRegex.applyValue(getMscSubWebhooksResult -> getMscSubWebhooksResult.webhooks()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getMscSubWebhooksPlain(GetMscSubWebhooksPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getMscSubWebhooks:getMscSubWebhooks", TypeShape.of(GetMscSubWebhooksResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRegions() {
return getRegions(GetRegionsArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRegionsPlain() {
return getRegionsPlain(GetRegionsPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRegions(GetRegionsArgs args) {
return getRegions(args, InvokeOptions.Empty);
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRegionsPlain(GetRegionsPlainArgs args) {
return getRegionsPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getRegions(GetRegionsArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides Alibaba Cloud regions.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetRegionsArgs;
* 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 currentRegionDs = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
* .current(true)
* .build());
*
* ctx.export("currentRegionId", currentRegionDs.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()));
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getRegionsPlain(GetRegionsPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getRegions:getRegions", TypeShape.of(GetRegionsResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getZones() {
return getZones(GetZonesArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getZonesPlain() {
return getZonesPlain(GetZonesPlainArgs.Empty, InvokeOptions.Empty);
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getZones(GetZonesArgs args) {
return getZones(args, InvokeOptions.Empty);
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getZonesPlain(GetZonesPlainArgs args) {
return getZonesPlain(args, InvokeOptions.Empty);
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static Output getZones(GetZonesArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("alicloud:index/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides availability zones that can be accessed by an Alibaba Cloud account within the region configured in the provider.
*
* > **NOTE:** If one zone is sold out, it will not be exported.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.AlicloudFunctions;
* import com.pulumi.alicloud.inputs.GetZonesArgs;
* 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) {
* // Declare the data source
* final var zonesDs = AlicloudFunctions.getZones(GetZonesArgs.builder()
* .availableInstanceType("ecs.n4.large")
* .availableDiskCategory("cloud_ssd")
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public static CompletableFuture getZonesPlain(GetZonesPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("alicloud:index/getZones:getZones", TypeShape.of(GetZonesResult.class), args, Utilities.withVersion(options));
}
}