Describes details about the activation, such as the date and time the activation was created, its expiration date, the Identity and Access Management (IAM) role assigned to the managed nodes in the activation, and the number of nodes registered by using this activation.
Parameters:
-
filters
(Optional[DescribeActivationsFilterList], default:
None
)
–
A filter to view information about your activations.
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
next_token
(Optional[NextToken], default:
None
)
–
A token to start the list. Use this token to get the next set of results.
Raises:
Source code in docs_src/capo_ssm/_services/ssm.py
| def describe_activations(
self,
*,
config_overrides: Optional[SSMClientConfig] = None,
filters: Optional[
"capo_ssm.types.describe_activations_filter_list.DescribeActivationsFilterList"
] = None,
max_results: Optional["capo_ssm.types.max_results.MaxResults"] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> "capo_ssm.types.describe_activations_result.DescribeActivationsResult":
"""<p>Describes details about the activation, such as the date and time the activation was created, its expiration date, the Identity and Access Management (IAM) role assigned to the managed nodes in the activation, and the number of nodes registered by using this activation.</p>
Args:
filters: <p>A filter to view information about your activations.</p>
max_results: <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
next_token: <p>A token to start the list. Use this token to get the next set of results. </p>
Raises:
capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
capo_ssm.errors.invalid_filter.InvalidFilter: <p>The filter name isn't valid. Verify that you entered the correct name and try again.</p>
capo_ssm.errors.invalid_next_token.InvalidNextToken: <p>The specified token isn't valid.</p>
capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ssm.types.describe_activations_request.DescribeActivationsRequest]",
) -> OperationResponse[
"capo_ssm.types.describe_activations_result.DescribeActivationsResult"
]:
import capo_ssm._operations.amazon_ssm.describe_activations
output, http_response = (
capo_ssm._operations.amazon_ssm.describe_activations.describe_activations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeActivations")
)
input_: capo_ssm.types.describe_activations_request.DescribeActivationsRequest = {}
if filters is not None:
input_["filters"] = filters
if max_results is not None:
input_["max_results"] = max_results
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
|