com.pulumi.alicloud.ots.inputs.GetInstancesPlainArgs 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.ots.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetInstancesPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetInstancesPlainArgs Empty = new GetInstancesPlainArgs();
/**
* A list of instance IDs.
*
*/
@Import(name="ids")
private @Nullable List ids;
/**
* @return A list of instance IDs.
*
*/
public Optional> ids() {
return Optional.ofNullable(this.ids);
}
/**
* A regex string to filter results by instance name.
*
*/
@Import(name="nameRegex")
private @Nullable String nameRegex;
/**
* @return A regex string to filter results by instance name.
*
*/
public Optional nameRegex() {
return Optional.ofNullable(this.nameRegex);
}
/**
* File name where to save data source results (after running `pulumi preview`).
*
*/
@Import(name="outputFile")
private @Nullable String outputFile;
/**
* @return File name where to save data source results (after running `pulumi preview`).
*
*/
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
/**
* A map of tags assigned to the instance. It must be in the format:
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.ots.OtsFunctions;
* import com.pulumi.alicloud.ots.inputs.GetInstancesArgs;
* 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder()
* .tags(Map.ofEntries(
* Map.entry("tagKey1", "tagValue1"),
* Map.entry("tagKey2", "tagValue2")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
@Import(name="tags")
private @Nullable Map tags;
/**
* @return A map of tags assigned to the instance. It must be in the format:
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.ots.OtsFunctions;
* import com.pulumi.alicloud.ots.inputs.GetInstancesArgs;
* 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 instancesDs = OtsFunctions.getInstances(GetInstancesArgs.builder()
* .tags(Map.ofEntries(
* Map.entry("tagKey1", "tagValue1"),
* Map.entry("tagKey2", "tagValue2")
* ))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
*/
public Optional