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
public AWSAccountFindByName(strAWSAccountName: string): AWSAccount {
let arrAWSAccount: AWSAccount[] = this.serverFindAllForType<AWSAccount>("AWS:AWSAccount");
let objAWSAccount: AWSAccount = arrAWSAccount.find((objAWSAccount: AWSAccount): boolean => {
return objAWSAccount.name === strAWSAccountName;
});
return objAWSAccount;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
