Resource

class Resource : KotlinCustomResource

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());
}
}

Properties

Link copied to clipboard
val desiredState: Output<String>

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val properties: Output<String>

JSON string matching the CloudFormation resource type schema with current configuration. Underlying attributes can be referenced via the jsondecode() function, for example, jsondecode(data.aws_cloudcontrolapi_resource.example.properties)["example"].

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleArn: Output<String>?

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

Link copied to clipboard
val schema: Output<String>

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>

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

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

Identifier of the CloudFormation resource type version.

Link copied to clipboard
val urn: Output<String>