Class InitElement

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.InitElement
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
InitCommand, InitFile, InitGroup, InitPackage, InitService, InitSource, InitUser

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.371Z") @Stability(Stable) public abstract class InitElement extends software.amazon.jsii.JsiiObject
Base class for all CloudFormation Init elements.

Example:

 Bucket myBucket;
 InitServiceRestartHandle handle = new InitServiceRestartHandle();
 CloudFormationInit.fromElements(InitFile.fromString("/etc/nginx/nginx.conf", "...", InitFileOptions.builder().serviceRestartHandles(List.of(handle)).build()), InitSource.fromS3Object("/var/www/html", myBucket, "html.zip", InitSourceOptions.builder().serviceRestartHandles(List.of(handle)).build()), InitService.enable("nginx", InitServiceOptions.builder()
         .serviceRestartHandle(handle)
         .build()));
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    InitElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    InitElement(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    Returns the init element type for this element.

    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, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • InitElement

      protected InitElement(software.amazon.jsii.JsiiObjectRef objRef)
    • InitElement

      protected InitElement(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • InitElement

      @Stability(Stable) protected InitElement()
  • Method Details

    • getElementType

      @Stability(Stable) @NotNull public abstract String getElementType()
      Returns the init element type for this element.