ResourceArgs

data class ResourceArgs(val desiredState: Output<String>? = null, val roleArn: Output<String>? = null, val schema: Output<String>? = null, val typeName: Output<String>? = null, val typeVersionId: Output<String>? = null) : ConvertibleToJava<ResourceArgs>

Manages a Cloud Control API Resource. The configuration and lifecycle handling of these resources is proxied through Cloud Control API handlers to the backend service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudcontrol.Resource;
import com.pulumi.aws.cloudcontrol.ResourceArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 example = new Resource("example", ResourceArgs.builder()
.typeName("AWS::ECS::Cluster")
.desiredState(serializeJson(
jsonObject(
jsonProperty("ClusterName", "example"),
jsonProperty("Tags", jsonArray(jsonObject(
jsonProperty("Key", "CostCenter"),
jsonProperty("Value", "IT")
)))
)))
.build());
}
}

Constructors

Link copied to clipboard
constructor(desiredState: Output<String>? = null, roleArn: Output<String>? = null, schema: Output<String>? = null, typeName: Output<String>? = null, typeVersionId: Output<String>? = null)

Properties

Link copied to clipboard
val desiredState: Output<String>? = null

JSON string matching the CloudFormation resource type schema with desired configuration.

Link copied to clipboard
val roleArn: Output<String>? = null

Amazon Resource Name (ARN) of the IAM Role to assume for operations.

Link copied to clipboard
val schema: Output<String>? = null

JSON string of the CloudFormation resource type schema which is used for plan time validation where possible. Automatically fetched if not provided. In large scale environments with multiple resources using the same type_name, it is recommended to fetch the schema once via the aws.cloudformation.CloudFormationType data source and use this argument to reduce DescribeType API operation throttling. This value is marked sensitive only to prevent large plan differences from showing.

Link copied to clipboard
val typeName: Output<String>? = null

CloudFormation resource type name. For example, AWS::EC2::VPC. The following arguments are optional:

Link copied to clipboard
val typeVersionId: Output<String>? = null

Identifier of the CloudFormation resource type version.

Functions

Link copied to clipboard
open override fun toJava(): ResourceArgs