Constraint

class Constraint : KotlinCustomResource

Manages a Service Catalog Constraint.

NOTE: This resource does not associate a Service Catalog product and portfolio. However, the product and portfolio must be associated (see the aws.servicecatalog.ProductPortfolioAssociation resource) prior to creating a constraint or you will receive an error.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.servicecatalog.Constraint;
import com.pulumi.aws.servicecatalog.ConstraintArgs;
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 Constraint("example", ConstraintArgs.builder()
.description("Back off, man. I'm a scientist.")
.portfolioId(aws_servicecatalog_portfolio.example().id())
.productId(aws_servicecatalog_product.example().id())
.type("LAUNCH")
.parameters(serializeJson(
jsonObject(
jsonProperty("RoleArn", "arn:aws:iam::123456789012:role/LaunchRole")
)))
.build());
}
}

Import

aws_servicecatalog_constraint can be imported using the constraint ID, e.g.,

$ pulumi import aws:servicecatalog/constraint:Constraint example cons-nmdkb6cgxfcrs

Properties

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

Language code. Valid values: en (English), jp (Japanese), zh (Chinese). Default value is en.

Link copied to clipboard
val description: Output<String>

Description of the constraint.

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

Owner of the constraint.

Link copied to clipboard
val parameters: Output<String>

Constraint parameters in JSON format. The syntax depends on the constraint type. See details below.

Link copied to clipboard
val portfolioId: Output<String>

Portfolio identifier.

Link copied to clipboard
val productId: Output<String>

Product identifier.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>
Link copied to clipboard
val type: Output<String>

Type of constraint. Valid values are LAUNCH, NOTIFICATION, RESOURCE_UPDATE, STACKSET, and TEMPLATE. The following arguments are optional:

Link copied to clipboard
val urn: Output<String>