Пример #1
0
 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);
        }
Пример #4
0
 internal ListAttacksPaginator(IAmazonShield client, ListAttacksRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #5
0
 internal ListProtectionsPaginator(IAmazonShield client, ListProtectionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Пример #6
0
 internal ListResourcesInProtectionGroupPaginator(IAmazonShield client, ListResourcesInProtectionGroupRequest request)
 {
     this._client  = client;
     this._request = request;
 }