software.aws.awsprototypingsdk.cdkgraph.CfnResourceNode Maven / Gradle / Ivy
Show all versions of cdk-graph Show documentation
package software.aws.awsprototypingsdk.cdkgraph;
/**
* (experimental) CfnResourceNode defines an L1 cdk resource.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.82.0 (build 2d2ddd7)", date = "2023-08-15T05:45:13.679Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.aws.awsprototypingsdk.cdkgraph.$Module.class, fqn = "@aws-prototyping-sdk/cdk-graph.CfnResourceNode")
public class CfnResourceNode extends software.aws.awsprototypingsdk.cdkgraph.Node {
protected CfnResourceNode(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CfnResourceNode(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ATT_IMPORT_ARN_TOKEN = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.aws.awsprototypingsdk.cdkgraph.CfnResourceNode.class, "ATT_IMPORT_ARN_TOKEN", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public CfnResourceNode(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.ICfnResourceNodeProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Indicates if a node is a {@link CfnResourceNode}.
*
* @param node This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull java.lang.Boolean isCfnResourceNode(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.Node node) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.aws.awsprototypingsdk.cdkgraph.CfnResourceNode.class, "isCfnResourceNode", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(node, "node is required") });
}
/**
* (experimental) Evaluates if CfnResourceNode fqn is equivalent to ResourceNode fqn.
*
* Example:
*
*
* `aws-cdk-lib.aws_lambda.Function` => `aws-cdk-lib.aws_lambda.CfnFunction`
*
*
* @return Returns true
if equivalent, otherwise false
* @param resource - {@link Graph.ResourceNode } to compare. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean isEquivalentFqn(final @org.jetbrains.annotations.NotNull software.aws.awsprototypingsdk.cdkgraph.ResourceNode resource) {
return software.amazon.jsii.Kernel.call(this, "isEquivalentFqn", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class), new Object[] { java.util.Objects.requireNonNull(resource, "resource is required") });
}
/**
* (experimental) Destroys this node by removing all references and removing this node from the store.
*
* @param strict
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateDestroy(final @org.jetbrains.annotations.Nullable java.lang.Boolean strict) {
software.amazon.jsii.Kernel.call(this, "mutateDestroy", software.amazon.jsii.NativeType.VOID, new Object[] { strict });
}
/**
* (experimental) Destroys this node by removing all references and removing this node from the store.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void mutateDestroy() {
software.amazon.jsii.Kernel.call(this, "mutateDestroy", software.amazon.jsii.NativeType.VOID);
}
/**
* (experimental) Normalized CfnReference attribute.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public final static java.lang.String ATT_IMPORT_ARN_TOKEN;
/**
* (experimental) Indicates if this node is considered a {@link FlagEnum.EXTRANEOUS} node or determined to be extraneous: - Clusters that contain no children.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean getIsExtraneous() {
return software.amazon.jsii.Kernel.get(this, "isExtraneous", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* (experimental) Indicates if this CfnResource is imported (eg: s3.Bucket.fromBucketArn
).
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.Boolean getIsImport() {
return software.amazon.jsii.Kernel.get(this, "isImport", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
}
/**
* (experimental) Reference to the L2 Resource that wraps this L1 CfnResource if it is wrapped.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.Nullable software.aws.awsprototypingsdk.cdkgraph.ResourceNode getResource() {
return software.amazon.jsii.Kernel.get(this, "resource", software.amazon.jsii.NativeType.forClass(software.aws.awsprototypingsdk.cdkgraph.ResourceNode.class));
}
}