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 Find an AWS Account by Name
Public Function: AWSAccountFindByName
publicAWSAccountFindByName(strAWSAccountName:string):AWSAccount{
letarrAWSAccount:AWSAccount[]=this.serverFindAllForType<AWSAccount>("AWS:AWSAccount");
letobjAWSAccount:AWSAccount=arrAWSAccount.find((objAWSAccount:AWSAccount):boolean=>{
returnobjAWSAccount.name===strAWSAccountName;
});
returnobjAWSAccount;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
