Skip to content

OpsWorksCMClient

Index > OpsWorksCM > OpsWorksCMClient

Auto-generated documentation for OpsWorksCM type annotations stubs module mypy-boto3-opsworkscm.

OpsWorksCMClient

Type annotations and code completion for boto3.client("opsworkscm"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_opsworkscm.client import OpsWorksCMClient

def get_opsworkscm_client() -> OpsWorksCMClient:
    return Session().client("opsworkscm")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("opsworkscm").exceptions structure.

Usage example
client = boto3.client("opsworkscm")

try:
    do_something(client)
except (
    client.ClientError,
    client.InvalidNextTokenException,
    client.InvalidStateException,
    client.LimitExceededException,
    client.ResourceAlreadyExistsException,
    client.ResourceNotFoundException,
    client.ValidationException,
) as e:
    print(e)
Type checking example
from mypy_boto3_opsworkscm.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

associate_node

Associates a new node with the server.

Type annotations and code completion for boto3.client("opsworkscm").associate_node method. boto3 documentation

Method definition
def associate_node(
    self,
    *,
    ServerName: str,
    NodeName: str,
    EngineAttributes: Sequence[EngineAttributeTypeDef],  # (1)
) -> AssociateNodeResponseTypeDef:  # (2)
    ...
  1. See EngineAttributeTypeDef
  2. See AssociateNodeResponseTypeDef
Usage example with kwargs
kwargs: AssociateNodeRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
    "NodeName": ...,
    "EngineAttributes": ...,
}

parent.associate_node(**kwargs)
  1. See AssociateNodeRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("opsworkscm").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("opsworkscm").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

create_backup

Creates an application-level backup of a server.

Type annotations and code completion for boto3.client("opsworkscm").create_backup method. boto3 documentation

Method definition
def create_backup(
    self,
    *,
    ServerName: str,
    Description: str = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateBackupResponseTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateBackupResponseTypeDef
Usage example with kwargs
kwargs: CreateBackupRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.create_backup(**kwargs)
  1. See CreateBackupRequestRequestTypeDef

create_server

Creates and immedately starts a new server.

Type annotations and code completion for boto3.client("opsworkscm").create_server method. boto3 documentation

Method definition
def create_server(
    self,
    *,
    Engine: str,
    ServerName: str,
    InstanceProfileArn: str,
    InstanceType: str,
    ServiceRoleArn: str,
    AssociatePublicIpAddress: bool = ...,
    CustomDomain: str = ...,
    CustomCertificate: str = ...,
    CustomPrivateKey: str = ...,
    DisableAutomatedBackup: bool = ...,
    EngineModel: str = ...,
    EngineVersion: str = ...,
    EngineAttributes: Sequence[EngineAttributeTypeDef] = ...,  # (1)
    BackupRetentionCount: int = ...,
    KeyPair: str = ...,
    PreferredMaintenanceWindow: str = ...,
    PreferredBackupWindow: str = ...,
    SecurityGroupIds: Sequence[str] = ...,
    SubnetIds: Sequence[str] = ...,
    Tags: Sequence[TagTypeDef] = ...,  # (2)
    BackupId: str = ...,
) -> CreateServerResponseTypeDef:  # (3)
    ...
  1. See EngineAttributeTypeDef
  2. See TagTypeDef
  3. See CreateServerResponseTypeDef
Usage example with kwargs
kwargs: CreateServerRequestRequestTypeDef = {  # (1)
    "Engine": ...,
    "ServerName": ...,
    "InstanceProfileArn": ...,
    "InstanceType": ...,
    "ServiceRoleArn": ...,
}

parent.create_server(**kwargs)
  1. See CreateServerRequestRequestTypeDef

delete_backup

Deletes a backup.

Type annotations and code completion for boto3.client("opsworkscm").delete_backup method. boto3 documentation

Method definition
def delete_backup(
    self,
    *,
    BackupId: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteBackupRequestRequestTypeDef = {  # (1)
    "BackupId": ...,
}

parent.delete_backup(**kwargs)
  1. See DeleteBackupRequestRequestTypeDef

delete_server

Deletes the server and the underlying AWS CloudFormation stacks (including the server's EC2 instance).

Type annotations and code completion for boto3.client("opsworkscm").delete_server method. boto3 documentation

Method definition
def delete_server(
    self,
    *,
    ServerName: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: DeleteServerRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.delete_server(**kwargs)
  1. See DeleteServerRequestRequestTypeDef

describe_account_attributes

Describes your OpsWorks-CM account attributes.

Type annotations and code completion for boto3.client("opsworkscm").describe_account_attributes method. boto3 documentation

Method definition
def describe_account_attributes(
    self,
) -> DescribeAccountAttributesResponseTypeDef:  # (1)
    ...
  1. See DescribeAccountAttributesResponseTypeDef

describe_backups

Describes backups.

Type annotations and code completion for boto3.client("opsworkscm").describe_backups method. boto3 documentation

Method definition
def describe_backups(
    self,
    *,
    BackupId: str = ...,
    ServerName: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeBackupsResponseTypeDef:  # (1)
    ...
  1. See DescribeBackupsResponseTypeDef
Usage example with kwargs
kwargs: DescribeBackupsRequestRequestTypeDef = {  # (1)
    "BackupId": ...,
}

parent.describe_backups(**kwargs)
  1. See DescribeBackupsRequestRequestTypeDef

describe_events

Describes events for a specified server.

Type annotations and code completion for boto3.client("opsworkscm").describe_events method. boto3 documentation

Method definition
def describe_events(
    self,
    *,
    ServerName: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeEventsResponseTypeDef:  # (1)
    ...
  1. See DescribeEventsResponseTypeDef
Usage example with kwargs
kwargs: DescribeEventsRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.describe_events(**kwargs)
  1. See DescribeEventsRequestRequestTypeDef

describe_node_association_status

Returns the current status of an existing association or disassociation request.

Type annotations and code completion for boto3.client("opsworkscm").describe_node_association_status method. boto3 documentation

Method definition
def describe_node_association_status(
    self,
    *,
    NodeAssociationStatusToken: str,
    ServerName: str,
) -> DescribeNodeAssociationStatusResponseTypeDef:  # (1)
    ...
  1. See DescribeNodeAssociationStatusResponseTypeDef
Usage example with kwargs
kwargs: DescribeNodeAssociationStatusRequestRequestTypeDef = {  # (1)
    "NodeAssociationStatusToken": ...,
    "ServerName": ...,
}

parent.describe_node_association_status(**kwargs)
  1. See DescribeNodeAssociationStatusRequestRequestTypeDef

describe_servers

Lists all configuration management servers that are identified with your account.

Type annotations and code completion for boto3.client("opsworkscm").describe_servers method. boto3 documentation

Method definition
def describe_servers(
    self,
    *,
    ServerName: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeServersResponseTypeDef:  # (1)
    ...
  1. See DescribeServersResponseTypeDef
Usage example with kwargs
kwargs: DescribeServersRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.describe_servers(**kwargs)
  1. See DescribeServersRequestRequestTypeDef

disassociate_node

Disassociates a node from an AWS OpsWorks CM server, and removes the node from the server's managed nodes.

Type annotations and code completion for boto3.client("opsworkscm").disassociate_node method. boto3 documentation

Method definition
def disassociate_node(
    self,
    *,
    ServerName: str,
    NodeName: str,
    EngineAttributes: Sequence[EngineAttributeTypeDef] = ...,  # (1)
) -> DisassociateNodeResponseTypeDef:  # (2)
    ...
  1. See EngineAttributeTypeDef
  2. See DisassociateNodeResponseTypeDef
Usage example with kwargs
kwargs: DisassociateNodeRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
    "NodeName": ...,
}

parent.disassociate_node(**kwargs)
  1. See DisassociateNodeRequestRequestTypeDef

export_server_engine_attribute

Exports a specified server engine attribute as a base64-encoded string.

Type annotations and code completion for boto3.client("opsworkscm").export_server_engine_attribute method. boto3 documentation

Method definition
def export_server_engine_attribute(
    self,
    *,
    ExportAttributeName: str,
    ServerName: str,
    InputAttributes: Sequence[EngineAttributeTypeDef] = ...,  # (1)
) -> ExportServerEngineAttributeResponseTypeDef:  # (2)
    ...
  1. See EngineAttributeTypeDef
  2. See ExportServerEngineAttributeResponseTypeDef
Usage example with kwargs
kwargs: ExportServerEngineAttributeRequestRequestTypeDef = {  # (1)
    "ExportAttributeName": ...,
    "ServerName": ...,
}

parent.export_server_engine_attribute(**kwargs)
  1. See ExportServerEngineAttributeRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("opsworkscm").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

list_tags_for_resource

Returns a list of tags that are applied to the specified AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise servers or backups.

Type annotations and code completion for boto3.client("opsworkscm").list_tags_for_resource method. boto3 documentation

Method definition
def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

restore_server

Restores a backup to a server that is in a CONNECTION_LOST , HEALTHY , RUNNING , UNHEALTHY , or TERMINATED state.

Type annotations and code completion for boto3.client("opsworkscm").restore_server method. boto3 documentation

Method definition
def restore_server(
    self,
    *,
    BackupId: str,
    ServerName: str,
    InstanceType: str = ...,
    KeyPair: str = ...,
) -> RestoreServerResponseTypeDef:  # (1)
    ...
  1. See RestoreServerResponseTypeDef
Usage example with kwargs
kwargs: RestoreServerRequestRequestTypeDef = {  # (1)
    "BackupId": ...,
    "ServerName": ...,
}

parent.restore_server(**kwargs)
  1. See RestoreServerRequestRequestTypeDef

start_maintenance

Manually starts server maintenance.

Type annotations and code completion for boto3.client("opsworkscm").start_maintenance method. boto3 documentation

Method definition
def start_maintenance(
    self,
    *,
    ServerName: str,
    EngineAttributes: Sequence[EngineAttributeTypeDef] = ...,  # (1)
) -> StartMaintenanceResponseTypeDef:  # (2)
    ...
  1. See EngineAttributeTypeDef
  2. See StartMaintenanceResponseTypeDef
Usage example with kwargs
kwargs: StartMaintenanceRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.start_maintenance(**kwargs)
  1. See StartMaintenanceRequestRequestTypeDef

tag_resource

Applies tags to an AWS OpsWorks for Chef Automate or AWS OpsWorks for Puppet Enterprise server, or to server backups.

Type annotations and code completion for boto3.client("opsworkscm").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes specified tags from an AWS OpsWorks-CM server or backup.

Type annotations and code completion for boto3.client("opsworkscm").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_server

Updates settings for a server.

Type annotations and code completion for boto3.client("opsworkscm").update_server method. boto3 documentation

Method definition
def update_server(
    self,
    *,
    ServerName: str,
    DisableAutomatedBackup: bool = ...,
    BackupRetentionCount: int = ...,
    PreferredMaintenanceWindow: str = ...,
    PreferredBackupWindow: str = ...,
) -> UpdateServerResponseTypeDef:  # (1)
    ...
  1. See UpdateServerResponseTypeDef
Usage example with kwargs
kwargs: UpdateServerRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
}

parent.update_server(**kwargs)
  1. See UpdateServerRequestRequestTypeDef

update_server_engine_attributes

Updates engine-specific attributes on a specified server.

Type annotations and code completion for boto3.client("opsworkscm").update_server_engine_attributes method. boto3 documentation

Method definition
def update_server_engine_attributes(
    self,
    *,
    ServerName: str,
    AttributeName: str,
    AttributeValue: str = ...,
) -> UpdateServerEngineAttributesResponseTypeDef:  # (1)
    ...
  1. See UpdateServerEngineAttributesResponseTypeDef
Usage example with kwargs
kwargs: UpdateServerEngineAttributesRequestRequestTypeDef = {  # (1)
    "ServerName": ...,
    "AttributeName": ...,
}

parent.update_server_engine_attributes(**kwargs)
  1. See UpdateServerEngineAttributesRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("opsworkscm").get_paginator method with overloads.

get_waiter

Type annotations and code completion for boto3.client("opsworkscm").get_waiter method with overloads.