public void Deconstruct( out IAmazonRDS rdsClient, out IAmazonLambda lambdaClient, out IAmazonEventBridge eventsClient, out WaitForDatabaseAvailabilityHandler handler ) { rdsClient = RdsClient; lambdaClient = LambdaClient; eventsClient = EventBridgeClient; handler = StartDatabaseHandler; }
public WaitForDatabaseAvailabilityHandler( IAmazonRDS rdsClient, IAmazonLambda lambdaClient, IAmazonEventBridge eventsClient, ILogger <WaitForDatabaseAvailabilityHandler> logger, IOptions <LambdaConfiguration> configuration ) { this.rdsClient = rdsClient; this.lambdaClient = lambdaClient; this.eventsClient = eventsClient; this.logger = logger; this.configuration = configuration.Value; }
public void Deconstruct( out IAmazonRDS rdsClient, out IAmazonSimpleNotificationService snsClient, out IAmazonEventBridge eventsClient, out IAmazonSQS sqsClient, out IAmazonLambda lambdaClient, out StartDatabaseHandler handler ) { rdsClient = RdsClient; snsClient = SnsClient; eventsClient = EventBridgeClient; sqsClient = SqsClient; lambdaClient = LambdaClient; handler = StartDatabaseHandler; }
public StartDatabaseHandler( IAmazonRDS rdsClient, IAmazonSimpleNotificationService snsClient, IAmazonEventBridge eventsClient, IAmazonSQS sqsClient, IAmazonLambda lambdaClient, ILogger <StartDatabaseHandler> logger, IOptions <LambdaConfiguration> configuration ) { this.rdsClient = rdsClient; this.snsClient = snsClient; this.eventsClient = eventsClient; this.sqsClient = sqsClient; this.lambdaClient = lambdaClient; this.logger = logger; this.configuration = configuration.Value; }
private Amazon.EventBridge.Model.TagResourceResponse CallAWSServiceOperation(IAmazonEventBridge client, Amazon.EventBridge.Model.TagResourceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon EventBridge", "TagResource"); try { #if DESKTOP return(client.TagResource(request)); #elif CORECLR return(client.TagResourceAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }
public EventsClient(string eventBusName, string source = null, IAmazonEventBridge eventBridgeClient = null) { _eventBridgeClient = eventBridgeClient ?? new AmazonEventBridgeClient(); _eventBusName = eventBusName; _source = source ?? Environment.GetEnvironmentVariable("StackName"); }