Skip to content

SSMClient.register_default_host_management_configuration

rboto-ssm==0.4.0 · Service index · Types

Model summary (excerpt): Enables Default Host Management Configuration (DHMC) for the current Amazon Web Services account and Amazon Web Services Region. With DHMC enabled, you don't need to configure additional resources, such as an instance profile, to use your Amazon EC2 instances as managed nodes in Amazon Web Services Systems Manager. To use this operation, you must have the following permissions: You need the...

Install and imports

python -m pip install "rboto[ssm]==0.4.0"
from rboto import SSMClient
from rboto_ssm.types import (
    DHMCPermissionModel,
    RegisterDefaultHostManagementConfigurationOutput,
)

Signature

async def register_default_host_management_configuration(
    *,
    permission_model: DHMCPermissionModel,
    role_arn: str | None = None,
    overwrite: bool | None = None,
) -> RegisterDefaultHostManagementConfigurationOutput: ...

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)
permission_model Yes The permission model that determines how the IAM role for Default Host Management Configuration is provided. The permission model can be one of the following values: SERVICE_MANAGED Amazon Web Services Systems Manager creates and manages the role on your behalf. SELF_MANAGED You provide the role to register in RoleArn .
role_arn No The Amazon Resource Name (ARN) of the self-managed IAM role that you register for Default Host Management Configuration. The requirement for this value depends on the permission model: If PermissionModel is SELF_MANAGED , this value is required. If PermissionModel is SERVICE_MANAGED , this value must not be set.
overwrite No Specifies whether to override the role that is currently registered for Default Host Management Configuration. The default is false , which acts as a guardrail against accidentally replacing an existing configuration. Set this to true to replace the currently registered role.

Output

RegisterDefaultHostManagementConfigurationOutput.

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
role_arn 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.

DHMCPermissionModel, RegisterDefaultHostManagementConfigurationOutput

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.

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

Service guide · Pinned model