Container for the parameters to the GetGameSessionLogUrl operation. Retrieves the location of stored game session logs for a specified game session. When a game session is terminated, Amazon GameLift automatically stores the logs in Amazon S3. Use this URL to download the logs.

See the AWS Service Limits page for maximum log file sizes. Log files that exceed this limit are not saved.

Inheritance: AmazonGameLiftRequest
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.GameLift.Model.GetGameSessionLogUrlRequest();

            if (cmdletContext.GameSessionId != null)
            {
                request.GameSessionId = cmdletContext.GameSessionId;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }
 private Amazon.GameLift.Model.GetGameSessionLogUrlResponse CallAWSServiceOperation(IAmazonGameLift client, Amazon.GameLift.Model.GetGameSessionLogUrlRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon GameLift Service", "GetGameSessionLogUrl");
     try
     {
         #if DESKTOP
         return(client.GetGameSessionLogUrl(request));
         #elif CORECLR
         return(client.GetGameSessionLogUrlAsync(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;
     }
 }
        /// <summary>
        /// Initiates the asynchronous execution of the GetGameSessionLogUrl operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetGameSessionLogUrl operation on AmazonGameLiftClient.</param>
        /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
        /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
        ///          procedure using the AsyncState property.</param>
        /// 
        /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetGameSessionLogUrl
        ///         operation.</returns>
        public IAsyncResult BeginGetGameSessionLogUrl(GetGameSessionLogUrlRequest request, AsyncCallback callback, object state)
        {
            var marshaller = new GetGameSessionLogUrlRequestMarshaller();
            var unmarshaller = GetGameSessionLogUrlResponseUnmarshaller.Instance;

            return BeginInvoke<GetGameSessionLogUrlRequest>(request, marshaller, unmarshaller,
                callback, state);
        }
        /// <summary>
        /// Retrieves the location of stored game session logs for a specified game session. When
        /// a game session is terminated, Amazon GameLift automatically stores the logs in Amazon
        /// S3. Use this URL to download the logs.
        /// 
        ///  <note>
        /// <para>
        /// See the <a href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift">AWS
        /// Service Limits</a> page for maximum log file sizes. Log files that exceed this limit
        /// are not saved.
        /// </para>
        /// </note>
        /// </summary>
        /// <param name="request">Container for the necessary parameters to execute the GetGameSessionLogUrl service method.</param>
        /// 
        /// <returns>The response from the GetGameSessionLogUrl service method, as returned by GameLift.</returns>
        /// <exception cref="Amazon.GameLift.Model.InternalServiceException">
        /// The service encountered an unrecoverable internal failure while processing the request.
        /// Such requests can be retried by clients, either immediately or after a back-off period.
        /// </exception>
        /// <exception cref="Amazon.GameLift.Model.InvalidRequestException">
        /// One or more parameters specified as part of the request are invalid. Please correct
        /// the invalid parameters before retrying.
        /// </exception>
        /// <exception cref="Amazon.GameLift.Model.NotFoundException">
        /// A service resource associated with the request could not be found. Such requests should
        /// not be retried by clients.
        /// </exception>
        /// <exception cref="Amazon.GameLift.Model.UnauthorizedException">
        /// The client failed authentication. Such requests should not be retried without valid
        /// authentication credentials.
        /// </exception>
        public GetGameSessionLogUrlResponse GetGameSessionLogUrl(GetGameSessionLogUrlRequest request)
        {
            var marshaller = new GetGameSessionLogUrlRequestMarshaller();
            var unmarshaller = GetGameSessionLogUrlResponseUnmarshaller.Instance;

            return Invoke<GetGameSessionLogUrlRequest,GetGameSessionLogUrlResponse>(request, marshaller, unmarshaller);
        }
 /// <summary>
 /// Retrieves the location of stored game session logs for a specified game session. When
 /// a game session is terminated, Amazon GameLift automatically stores the logs in Amazon
 /// S3. Use this URL to download the logs.
 /// 
 ///  <note>
 /// <para>
 /// See the <a href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift">AWS
 /// Service Limits</a> page for maximum log file sizes. Log files that exceed this limit
 /// are not saved.
 /// </para>
 /// </note>
 /// </summary>
 /// <param name="gameSessionId">Unique identifier for a game session. Specify the game session you want to get logs for.</param>
 /// 
 /// <returns>The response from the GetGameSessionLogUrl service method, as returned by GameLift.</returns>
 /// <exception cref="Amazon.GameLift.Model.InternalServiceException">
 /// The service encountered an unrecoverable internal failure while processing the request.
 /// Such requests can be retried by clients, either immediately or after a back-off period.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.InvalidRequestException">
 /// One or more parameters specified as part of the request are invalid. Please correct
 /// the invalid parameters before retrying.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.NotFoundException">
 /// A service resource associated with the request could not be found. Such requests should
 /// not be retried by clients.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.UnauthorizedException">
 /// The client failed authentication. Such requests should not be retried without valid
 /// authentication credentials.
 /// </exception>
 public GetGameSessionLogUrlResponse GetGameSessionLogUrl(string gameSessionId)
 {
     var request = new GetGameSessionLogUrlRequest();
     request.GameSessionId = gameSessionId;
     return GetGameSessionLogUrl(request);
 }
Example #6
0
        /// <summary>
        /// Initiates the asynchronous execution of the GetGameSessionLogUrl operation.
        /// </summary>
        /// 
        /// <param name="request">Container for the necessary parameters to execute the GetGameSessionLogUrl operation.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        /// <returns>The task object representing the asynchronous operation.</returns>
        public Task<GetGameSessionLogUrlResponse> GetGameSessionLogUrlAsync(GetGameSessionLogUrlRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new GetGameSessionLogUrlRequestMarshaller();
            var unmarshaller = GetGameSessionLogUrlResponseUnmarshaller.Instance;

            return InvokeAsync<GetGameSessionLogUrlRequest,GetGameSessionLogUrlResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }
Example #7
0
 /// <summary>
 /// Retrieves the location of stored game session logs for a specified game session. When
 /// a game session is terminated, Amazon GameLift automatically stores the logs in Amazon
 /// S3. Use this URL to download the logs.
 /// 
 ///  <note> 
 /// <para>
 /// See the <a href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift">AWS
 /// Service Limits</a> page for maximum log file sizes. Log files that exceed this limit
 /// are not saved.
 /// </para>
 ///  </note>
 /// </summary>
 /// <param name="gameSessionId">Unique identifier for the game session to get logs for. Game session ID format is as follows: "arn:aws:gamelift:&lt;region&gt;::gamesession/fleet-&lt;fleet ID&gt;/&lt;ID string&gt;". The value of &lt;ID string&gt; is either a custom ID string (if one was specified when the game session was created) an autogenerated string. </param>
 /// <param name="cancellationToken">
 ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// 
 /// <returns>The response from the GetGameSessionLogUrl service method, as returned by GameLift.</returns>
 /// <exception cref="Amazon.GameLift.Model.InternalServiceException">
 /// The service encountered an unrecoverable internal failure while processing the request.
 /// Clients can retry such requests immediately or after a waiting period.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.InvalidRequestException">
 /// One or more parameter values in the request are invalid. Correct the invalid parameter
 /// values before retrying.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.NotFoundException">
 /// A service resource associated with the request could not be found. Clients should
 /// not retry such requests.
 /// </exception>
 /// <exception cref="Amazon.GameLift.Model.UnauthorizedException">
 /// The client failed authentication. Clients should not retry such requests.
 /// </exception>
 public Task<GetGameSessionLogUrlResponse> GetGameSessionLogUrlAsync(string gameSessionId, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new GetGameSessionLogUrlRequest();
     request.GameSessionId = gameSessionId;
     return GetGameSessionLogUrlAsync(request, cancellationToken);
 }