private Amazon.Shield.Model.DescribeAttackResponse CallAWSServiceOperation(IAmazonShield client, Amazon.Shield.Model.DescribeAttackRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Shield", "DescribeAttack"); try { #if DESKTOP return(client.DescribeAttack(request)); #elif CORECLR return(client.DescribeAttackAsync(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; } }
internal ShieldPaginatorFactory(IAmazonShield client) { this.client = client; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }
internal ListAttacksPaginator(IAmazonShield client, ListAttacksRequest request) { this._client = client; this._request = request; }
internal ListProtectionsPaginator(IAmazonShield client, ListProtectionsRequest request) { this._client = client; this._request = request; }
internal ListResourcesInProtectionGroupPaginator(IAmazonShield client, ListResourcesInProtectionGroupRequest request) { this._client = client; this._request = request; }