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 Update an AWS Account
Public Function: AWSAccountUpdate
public AWSAccountUpdate(strAWSAccountName: string, strName: string, strAccessKey: string, strSecretKey: string, intConnectionTimeout: number = 50, intSocketTimeout: number = 50, intMaxConnections: number = 50, intMaxErrorRetry: number = -1, strProxyHost: string, intProxyPort: number, strProxyUsername: string, strProxyPassword: string, strProxyDomain: string, strProxyWorkstation: string): boolean {
let objAWSAccount: AWSAccount = this.AWSAccountFindByName(strAWSAccountName);
try {
let objRequest: any = {
name: strName,
accessKey: strAccessKey,
secretKey: strSecretKey,
connectionTimeout: intConnectionTimeout,
socketTimeout: intSocketTimeout,
maxConnections: intMaxConnections,
maxErrorRetry: intMaxErrorRetry,
proxyHost: strProxyHost,
proxyPort: intProxyPort,
proxyUsername: strProxyUsername,
proxyPassword: strProxyPassword,
proxyDomain: strProxyDomain,
proxyWorkstation: strProxyWorkstation
};
objAWSAccount = AWSAwsAccountManager.updateVcacHost(objAWSAccount, objRequest);
return true;
}
catch (objException) {
return false;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
