/// <summary> /// Returns a list of the access points currently associated with the specified bucket. /// You can retrieve up to 1000 access points per call. If the specified bucket has more /// than 1000 access points (or the number specified in <code>maxResults</code>, whichever /// is less), then the response will include a continuation token that you can use to /// list the additional access points. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListAccessPoints service method.</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 ListAccessPoints service method, as returned by S3Control.</returns> public virtual Task <ListAccessPointsResponse> ListAccessPointsAsync(ListAccessPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPointsResponseUnmarshaller.Instance; return(InvokeAsync <ListAccessPointsResponse>(request, options, cancellationToken)); }
internal virtual ListAccessPointsResponse ListAccessPoints(ListAccessPointsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAccessPointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAccessPointsResponseUnmarshaller.Instance; return(Invoke <ListAccessPointsResponse>(request, options)); }
public void ListAccessPointsTest() { var bucketArn = "arn:aws:s3-outposts:us-west-2:123456789012:outpost:op-01234567890123456:bucket:mybucket"; var s3ControlConfig = new AmazonS3ControlConfig { RegionEndpoint = RegionEndpoint.USWest2 }; var listAccessPointsRequest = new ListAccessPointsRequest { Bucket = bucketArn }; var marshalledRequest = S3ControlArnTestUtils.RunMockRequest(listAccessPointsRequest, ListAccessPointsRequestMarshaller.Instance, s3ControlConfig); Assert.AreEqual(new Uri("https://s3-outposts.us-west-2.amazonaws.com"), marshalledRequest.Endpoint); Assert.AreEqual("op-01234567890123456", marshalledRequest.Headers["x-amz-outpost-id"]); Assert.AreEqual("123456789012", marshalledRequest.Headers["x-amz-account-id"]); }