Retrieves the name of the stack with which the specified fleet is associated.
Parameters:
-
fleet_name
(Optional[String], default:
None
)
–
-
next_token
(Optional[String], default:
None
)
–
The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.
Raises:
Source code in docs_src/capo_appstream/_services/app_stream.py
| def list_associated_stacks(
self,
*,
config_overrides: Optional[AppStreamClientConfig] = None,
fleet_name: Optional["capo_appstream.types.string.String"] = None,
next_token: Optional["capo_appstream.types.string.String"] = None,
) -> (
"capo_appstream.types.list_associated_stacks_result.ListAssociatedStacksResult"
):
"""<p>Retrieves the name of the stack with which the specified fleet is associated.</p>
Args:
fleet_name: <p>The name of the fleet.</p>
next_token: <p>The pagination token to use to retrieve the next page of results for this operation. If this value is null, it retrieves the first page.</p>
Raises:
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_appstream.types.list_associated_stacks_request.ListAssociatedStacksRequest]",
) -> OperationResponse[
"capo_appstream.types.list_associated_stacks_result.ListAssociatedStacksResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.list_associated_stacks
output, http_response = (
capo_appstream._operations.photon_admin_proxy_service.list_associated_stacks.list_associated_stacks(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListAssociatedStacks")
)
input_: capo_appstream.types.list_associated_stacks_request.ListAssociatedStacksRequest = {}
if fleet_name is not None:
input_["fleet_name"] = fleet_name
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|