Resource

class Resource : KotlinCustomResource

Resource for managing an AWS Resource Groups Resource.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.DedicatedHost;
import com.pulumi.aws.ec2.DedicatedHostArgs;
import com.pulumi.aws.resourcegroups.Group;
import com.pulumi.aws.resourcegroups.Resource;
import com.pulumi.aws.resourcegroups.ResourceArgs;
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) {
var exampleDedicatedHost = new DedicatedHost("exampleDedicatedHost", DedicatedHostArgs.builder()
.instanceFamily("t3")
.availabilityZone("us-east-1a")
.hostRecovery("off")
.autoPlacement("on")
.build());
var exampleGroup = new Group("exampleGroup");
var exampleResource = new Resource("exampleResource", ResourceArgs.builder()
.groupArn(exampleGroup.arn())
.resourceArn(exampleDedicatedHost.arn())
.build());
}
}

Properties

Link copied to clipboard
val groupArn: Output<String>

The name or the ARN of the resource group to add resources to. The following arguments are optional:

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceArn: Output<String>

The ARN of the resource to be added to the group.

Link copied to clipboard
val resourceType: Output<String>

The resource type of a resource, such as AWS::EC2::Instance.

Link copied to clipboard
val urn: Output<String>