Orchestrator Function: AWS EC2 Snapshot Restore Tier

by Simon Sparks · 7 February 2026

To use this function add it to the class library file named OrchestratorPluginAWSService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorPluginAWSService.ts

Description: Orchestrator Function to Restore Snapshot Tier of AWS EC2 Snapshot

Public Function: EC2SnapshotRestoreTier

publicEC2SnapshotRestoreTier(objAWSClient:AWSClient,strSnapshotId:string,blnPermanentRestore:boolean=true):EC2RestoreSnapshotTierResult{

letobjAmazonEC2Client:AmazonEC2Client=objAWSClient.getAmazonEC2Client();

letobjEC2RestoreSnapshotTierRequest:EC2RestoreSnapshotTierRequest=newEC2RestoreSnapshotTierRequest();
objEC2RestoreSnapshotTierRequest.setSnapshotId(strSnapshotId);
objEC2RestoreSnapshotTierRequest.setPermanentRestore(blnPermanentRestore);

letobjEC2RestoreSnapshotTierResult:EC2RestoreSnapshotTierResult=objAmazonEC2Client.restoreSnapshotTier(objEC2RestoreSnapshotTierRequest);

returnobjEC2RestoreSnapshotTierResult;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like