Class InitElement
Base class for all CloudFormation Init elements.
Inheritance
System.Object
InitElement
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class InitElement : DeputyBase
Syntax (vb)
Public MustInherit Class InitElement
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Bucket myBucket;
var handle = new InitServiceRestartHandle();
CloudFormationInit.FromElements(InitFile.FromString("/etc/nginx/nginx.conf", "...", new InitFileOptions { ServiceRestartHandles = new [] { handle } }), InitSource.FromS3Object("/var/www/html", myBucket, "html.zip", new InitSourceOptions { ServiceRestartHandles = new [] { handle } }), InitService.Enable("nginx", new InitServiceOptions {
ServiceRestartHandle = handle
}));
Synopsis
Constructors
InitElement() | |
InitElement(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
InitElement(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ElementType | Returns the init element type for this element. |
Constructors
InitElement()
protected InitElement()
InitElement(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected InitElement(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
InitElement(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected InitElement(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ElementType
Returns the init element type for this element.
public abstract string ElementType { get; }
Property Value
System.String