ConstraintArgs

data class ConstraintArgs(val acceptLanguage: Output<String>? = null, val description: Output<String>? = null, val parameters: Output<String>? = null, val portfolioId: Output<String>? = null, val productId: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<ConstraintArgs>

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

Constructors

Link copied to clipboard
constructor(acceptLanguage: Output<String>? = null, description: Output<String>? = null, parameters: Output<String>? = null, portfolioId: Output<String>? = null, productId: Output<String>? = null, type: Output<String>? = null)

Properties

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

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

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

Description of the constraint.

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

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

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

Portfolio identifier.

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

Product identifier.

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

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

Functions

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