Skip to content

SSMClient.create_activation

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Generates an activation code and activation ID you can use to register your on-premises servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with Systems Manager makes it possible to manage them using Systems Manager tools. You use the activation code and ID when installing SSM Agent on machines in your hybrid environment. For more...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from collections.abc import Sequence
from rboto_ssm.types import (
    CreateActivationOutput,
    RegistrationMetadataItem,
    Tag,
)

Signature

async def create_activation(
    *,
    iam_role: str,
    description: str | None = None,
    default_instance_name: str | None = None,
    registration_limit: int | None = None,
    expiration_date: str | None = None,
    tags: Sequence[Tag] | None = None,
    registration_metadata: Sequence[RegistrationMetadataItem] | None = None,
) -> CreateActivationOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
iam_role Yes The name of the Identity and Access Management (IAM) role that you want to assign to the managed node. This IAM role must provide AssumeRole permissions for the Amazon Web Services Systems Manager service principal ssm.amazonaws.com . For more information, see Create the IAM service role required for Systems Manager in a hybrid and multicloud environments in the Amazon Web Services Systems...
description No A user-defined description of the resource that you want to register with Systems Manager. Don't enter personally identifiable information in this field.
default_instance_name No The name of the registered, managed node as it will appear in the Amazon Web Services Systems Manager console or when you use the Amazon Web Services command line tools to list Systems Manager resources. Don't enter personally identifiable information in this field.
registration_limit No Specify the maximum number of managed nodes you want to register. The default value is 1 .
expiration_date No The date by which this activation request should expire, in timestamp format, such as "2024-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an expiration date, the activation code expires in 24 hours.
tags No Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag an activation to identify which servers or virtual machines (VMs) in your on-premises environment you intend to activate. In this case, you could specify the following key-value pairs: Key=OS,Value=Windows...
registration_metadata No Reserved for internal use.

Output

CreateActivationOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
activation_id str | None Always present —
activation_code str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateActivationOutput, RegistrationMetadataItem, Tag

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_ssm.exceptions:

InternalServerError, InvalidParametersError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model