describeCarrierGatewaysPaginated

fun Ec2Client.describeCarrierGatewaysPaginated(initialRequest: DescribeCarrierGatewaysRequest = DescribeCarrierGatewaysRequest { }): Flow<DescribeCarrierGatewaysResponse>

Paginate over DescribeCarrierGatewaysResponse results.

When this operation is called, a kotlinx.coroutines.Flow is created. Flows are lazy (cold) so no service calls are made until the flow is collected. This also means there is no guarantee that the request is valid until then. Once you start collecting the flow, the SDK will lazily load response pages by making service calls until there are no pages left or the flow is cancelled. If there are errors in your request, you will see the failures only after you start collection.

Return

A kotlinx.coroutines.flow.Flow that can collect DescribeCarrierGatewaysResponse

Parameters

initialRequest

A DescribeCarrierGatewaysRequest to start pagination


Paginate over DescribeCarrierGatewaysResponse results.

When this operation is called, a kotlinx.coroutines.Flow is created. Flows are lazy (cold) so no service calls are made until the flow is collected. This also means there is no guarantee that the request is valid until then. Once you start collecting the flow, the SDK will lazily load response pages by making service calls until there are no pages left or the flow is cancelled. If there are errors in your request, you will see the failures only after you start collection.

Return

A kotlinx.coroutines.flow.Flow that can collect DescribeCarrierGatewaysResponse

Parameters

block

A builder block used for DSL-style invocation of the operation