All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.CfnCondition Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
package software.amazon.awscdk;

/**
 * Represents a CloudFormation condition, for resources which must be conditionally created and the determination must be made at deploy time.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.935Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.$Module.class, fqn = "@aws-cdk/cdk.CfnCondition")
public class CfnCondition extends software.amazon.awscdk.CfnRefElement implements software.amazon.awscdk.ICfnConditionExpression {
    protected CfnCondition(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
        super(mode);
    }
    /**
     * Build a new condition.
     * 
     * The condition must be constructed with a condition token,
     * that the condition is based on.
     */
    public CfnCondition(final software.amazon.awscdk.Construct scope, final java.lang.String id, @javax.annotation.Nullable final software.amazon.awscdk.CfnConditionProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), props });
    }
    /**
     * Build a new condition.
     * 
     * The condition must be constructed with a condition token,
     * that the condition is based on.
     */
    public CfnCondition(final software.amazon.awscdk.Construct scope, final java.lang.String id) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") });
    }

    /**
     * Synthesizes the condition.
     */
    @Override
    @javax.annotation.Nullable
    public java.lang.Object resolve(final software.amazon.awscdk.ResolveContext _context) {
        return this.jsiiCall("resolve", java.lang.Object.class, new Object[] { java.util.Objects.requireNonNull(_context, "_context is required") });
    }

    /**
     * The condition statement.
     */
    @javax.annotation.Nullable
    public software.amazon.awscdk.ICfnConditionExpression getExpression() {
        return this.jsiiGet("expression", software.amazon.awscdk.ICfnConditionExpression.class);
    }

    /**
     * The condition statement.
     */
    public void setExpression(@javax.annotation.Nullable final software.amazon.awscdk.ICfnConditionExpression value) {
        this.jsiiSet("expression", value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy