Class Construct
- All Implemented Interfaces:
IConstruct
,IDependable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
- Direct Known Subclasses:
AlbController
,AllowListReceiptFilter
,ApplicationListenerCertificate
,ApplicationListenerRule
,ApplicationLoadBalancedServiceBase
,ApplicationMultipleTargetGroupsServiceBase
,AsgCapacityProvider
,AssertionsProvider
,Asset
,AssetStaging
,AwsApiCall
,AwsAuth
,AwsAuth
,AwsCustomResource
,BaseDataSource
,BaseJenkinsProvider
,BaseScalableAttribute
,BucketDeployment
,CdkPipeline
,CdkStage
,CfnElement
,CfnJson
,ContainerDefinition
,CrossAccountZoneDelegationRecord
,CustomActionRegistration
,CustomResourceProvider
,DockerImageAsset
,DropSpamReceiptRule
,EqualsAssertion
,FargateProfile
,GlobalTable
,HelmChart
,HelmChart
,HttpsRedirect
,IntegTest
,IntegTestCase
,KubernetesManifest
,KubernetesObjectValue
,KubernetesPatch
,KubernetesResource
,LinuxParameters
,LogRetention
,NetworkLoadBalancedServiceBase
,NetworkMultipleTargetGroupsServiceBase
,PipelineBase
,ProductStackHistory
,Provider
,PublishAssetsAction
,QueueProcessingServiceBase
,Resolver
,Resource
,ScheduledTaskBase
,SecretRotation
,ServiceAccount
,Stack
,Stage
,State
,StateMachineFragment
,StepScalingAction
,StepScalingAction
,StepScalingPolicy
,StepScalingPolicy
,Table
,TarballImageAsset
,TargetGroupBase
,TargetTrackingScalingPolicy
,TargetTrackingScalingPolicy
,Trigger
,UpdatePipelineAction
,User
,VpcEndpointServiceDomainName
All constructs besides the root construct must be created within the scope of another construct.
Example:
String entry = "/path/to/function"; DockerImage image = DockerImage.fromBuild(entry); PythonFunction.Builder.create(this, "function") .entry(entry) .runtime(Runtime.PYTHON_3_8) .bundling(BundlingOptions.builder() .buildArgs(Map.of("PIP_INDEX_URL", "https://your.index.url/simple/", "PIP_EXTRA_INDEX_URL", "https://your.extra-index.url/simple/")) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.constructs.Construct
software.constructs.Construct.Builder
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNode()
The construct tree node associated with this construct.static Boolean
Return whether the given object is a Construct.protected void
Perform final modifications before synthesis.protected void
onSynthesize
(software.constructs.ISynthesisSession session) Allows this construct to emit artifacts into the cloud assembly during synthesis.Validate the current construct.protected void
prepare()
Perform final modifications before synthesis.protected void
synthesize
(ISynthesisSession session) Allows this construct to emit artifacts into the cloud assembly during synthesis.validate()
Validate the current construct.Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Construct
protected Construct(software.amazon.jsii.JsiiObjectRef objRef) -
Construct
protected Construct(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Construct
@Stability(Stable) public Construct(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
isConstruct
Return whether the given object is a Construct.- Parameters:
x
- This parameter is required.
-
onPrepare
@Stability(Stable) protected void onPrepare()Perform final modifications before synthesis.This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.
This is an advanced framework feature. Only use this if you understand the implications.
- Overrides:
onPrepare
in classsoftware.constructs.Construct
-
onSynthesize
@Stability(Stable) protected void onSynthesize(@NotNull software.constructs.ISynthesisSession session) Allows this construct to emit artifacts into the cloud assembly during synthesis.This method is usually implemented by framework-level constructs such as
Stack
andAsset
as they participate in synthesizing the cloud assembly.- Overrides:
onSynthesize
in classsoftware.constructs.Construct
- Parameters:
session
- The synthesis session. This parameter is required.
-
onValidate
Validate the current construct.This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
- Overrides:
onValidate
in classsoftware.constructs.Construct
- Returns:
- An array of validation error messages, or an empty array if the construct is valid.
-
prepare
@Stability(Stable) protected void prepare()Perform final modifications before synthesis.This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.
This is an advanced framework feature. Only use this if you understand the implications.
-
synthesize
Allows this construct to emit artifacts into the cloud assembly during synthesis.This method is usually implemented by framework-level constructs such as
Stack
andAsset
as they participate in synthesizing the cloud assembly.- Parameters:
session
- The synthesis session. This parameter is required.
-
validate
Validate the current construct.This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
- Returns:
- An array of validation error messages, or an empty array if the construct is valid.
-
getNode
The construct tree node associated with this construct.- Specified by:
getNode
in interfaceIConstruct
-