Skip to content

OpsWorksClient#

Index > OpsWorks > OpsWorksClient

Auto-generated documentation for OpsWorks type annotations stubs module types-aiobotocore-opsworks.

OpsWorksClient#

Type annotations and code completion for session.create_client("opsworks") boto3 documentation

OpsWorksClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_opsworks.client import OpsWorksClient

session = get_session()
async with session.create_client("opsworks") as client:
    client: OpsWorksClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("opsworks").exceptions structure.

OpsWorksClient.exceptions usage example

async with session.create_client("opsworks") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.ResourceNotFoundException,
        client.ValidationException,
    ) as e:
        print(e)
OpsWorksClient usage type checking example

from types_aiobotocore_opsworks.client import Exceptions

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

Methods#

assign_instance#

Assign a registered instance to a layer.

Type annotations and code completion for session.create_client("opsworks").assign_instance method. boto3 documentation

# assign_instance method definition

await def assign_instance(
    self,
    *,
    InstanceId: str,
    LayerIds: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# assign_instance method usage example with argument unpacking

kwargs: AssignInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "LayerIds": ...,
}

parent.assign_instance(**kwargs)
  1. See AssignInstanceRequestRequestTypeDef

assign_volume#

Assigns one of the stack's registered Amazon EBS volumes to a specified instance.

Type annotations and code completion for session.create_client("opsworks").assign_volume method. boto3 documentation

# assign_volume method definition

await def assign_volume(
    self,
    *,
    VolumeId: str,
    InstanceId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# assign_volume method usage example with argument unpacking

kwargs: AssignVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.assign_volume(**kwargs)
  1. See AssignVolumeRequestRequestTypeDef

associate_elastic_ip#

Associates one of the stack's registered Elastic IP addresses with a specified instance.

Type annotations and code completion for session.create_client("opsworks").associate_elastic_ip method. boto3 documentation

# associate_elastic_ip method definition

await def associate_elastic_ip(
    self,
    *,
    ElasticIp: str,
    InstanceId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_elastic_ip method usage example with argument unpacking

kwargs: AssociateElasticIpRequestRequestTypeDef = {  # (1)
    "ElasticIp": ...,
}

parent.associate_elastic_ip(**kwargs)
  1. See AssociateElasticIpRequestRequestTypeDef

attach_elastic_load_balancer#

Attaches an Elastic Load Balancing load balancer to a specified layer.

Type annotations and code completion for session.create_client("opsworks").attach_elastic_load_balancer method. boto3 documentation

# attach_elastic_load_balancer method definition

await def attach_elastic_load_balancer(
    self,
    *,
    ElasticLoadBalancerName: str,
    LayerId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# attach_elastic_load_balancer method usage example with argument unpacking

kwargs: AttachElasticLoadBalancerRequestRequestTypeDef = {  # (1)
    "ElasticLoadBalancerName": ...,
    "LayerId": ...,
}

parent.attach_elastic_load_balancer(**kwargs)
  1. See AttachElasticLoadBalancerRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for session.create_client("opsworks").can_paginate method. boto3 documentation

# can_paginate method definition

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

clone_stack#

Creates a clone of a specified stack.

Type annotations and code completion for session.create_client("opsworks").clone_stack method. boto3 documentation

# clone_stack method definition

await def clone_stack(
    self,
    *,
    SourceStackId: str,
    ServiceRoleArn: str,
    Name: str = ...,
    Region: str = ...,
    VpcId: str = ...,
    Attributes: Mapping[StackAttributesKeysType, str] = ...,  # (1)
    DefaultInstanceProfileArn: str = ...,
    DefaultOs: str = ...,
    HostnameTheme: str = ...,
    DefaultAvailabilityZone: str = ...,
    DefaultSubnetId: str = ...,
    CustomJson: str = ...,
    ConfigurationManager: StackConfigurationManagerTypeDef = ...,  # (2)
    ChefConfiguration: ChefConfigurationTypeDef = ...,  # (3)
    UseCustomCookbooks: bool = ...,
    UseOpsworksSecurityGroups: bool = ...,
    CustomCookbooksSource: SourceTypeDef = ...,  # (4)
    DefaultSshKeyName: str = ...,
    ClonePermissions: bool = ...,
    CloneAppIds: Sequence[str] = ...,
    DefaultRootDeviceType: RootDeviceTypeType = ...,  # (5)
    AgentVersion: str = ...,
) -> CloneStackResultTypeDef:  # (6)
    ...
  1. See StackAttributesKeysType
  2. See StackConfigurationManagerTypeDef
  3. See ChefConfigurationTypeDef
  4. See SourceTypeDef
  5. See RootDeviceTypeType
  6. See CloneStackResultTypeDef
# clone_stack method usage example with argument unpacking

kwargs: CloneStackRequestRequestTypeDef = {  # (1)
    "SourceStackId": ...,
    "ServiceRoleArn": ...,
}

parent.clone_stack(**kwargs)
  1. See CloneStackRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for session.create_client("opsworks").close method. boto3 documentation

# close method definition

await def close(
    self,
) -> None:
    ...

create_app#

Creates an app for a specified stack.

Type annotations and code completion for session.create_client("opsworks").create_app method. boto3 documentation

# create_app method definition

await def create_app(
    self,
    *,
    StackId: str,
    Name: str,
    Type: AppTypeType,  # (1)
    Shortname: str = ...,
    Description: str = ...,
    DataSources: Sequence[DataSourceTypeDef] = ...,  # (2)
    AppSource: SourceTypeDef = ...,  # (3)
    Domains: Sequence[str] = ...,
    EnableSsl: bool = ...,
    SslConfiguration: SslConfigurationTypeDef = ...,  # (4)
    Attributes: Mapping[AppAttributesKeysType, str] = ...,  # (5)
    Environment: Sequence[EnvironmentVariableTypeDef] = ...,  # (6)
) -> CreateAppResultTypeDef:  # (7)
    ...
  1. See AppTypeType
  2. See DataSourceTypeDef
  3. See SourceTypeDef
  4. See SslConfigurationTypeDef
  5. See AppAttributesKeysType
  6. See EnvironmentVariableTypeDef
  7. See CreateAppResultTypeDef
# create_app method usage example with argument unpacking

kwargs: CreateAppRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "Name": ...,
    "Type": ...,
}

parent.create_app(**kwargs)
  1. See CreateAppRequestRequestTypeDef

create_deployment#

Runs deployment or stack commands.

Type annotations and code completion for session.create_client("opsworks").create_deployment method. boto3 documentation

# create_deployment method definition

await def create_deployment(
    self,
    *,
    StackId: str,
    Command: DeploymentCommandTypeDef,  # (1)
    AppId: str = ...,
    InstanceIds: Sequence[str] = ...,
    LayerIds: Sequence[str] = ...,
    Comment: str = ...,
    CustomJson: str = ...,
) -> CreateDeploymentResultTypeDef:  # (2)
    ...
  1. See DeploymentCommandTypeDef
  2. See CreateDeploymentResultTypeDef
# create_deployment method usage example with argument unpacking

kwargs: CreateDeploymentRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "Command": ...,
}

parent.create_deployment(**kwargs)
  1. See CreateDeploymentRequestRequestTypeDef

create_instance#

Creates an instance in a specified stack.

Type annotations and code completion for session.create_client("opsworks").create_instance method. boto3 documentation

# create_instance method definition

await def create_instance(
    self,
    *,
    StackId: str,
    LayerIds: Sequence[str],
    InstanceType: str,
    AutoScalingType: AutoScalingTypeType = ...,  # (1)
    Hostname: str = ...,
    Os: str = ...,
    AmiId: str = ...,
    SshKeyName: str = ...,
    AvailabilityZone: str = ...,
    VirtualizationType: str = ...,
    SubnetId: str = ...,
    Architecture: ArchitectureType = ...,  # (2)
    RootDeviceType: RootDeviceTypeType = ...,  # (3)
    BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ...,  # (4)
    InstallUpdatesOnBoot: bool = ...,
    EbsOptimized: bool = ...,
    AgentVersion: str = ...,
    Tenancy: str = ...,
) -> CreateInstanceResultTypeDef:  # (5)
    ...
  1. See AutoScalingTypeType
  2. See ArchitectureType
  3. See RootDeviceTypeType
  4. See BlockDeviceMappingTypeDef
  5. See CreateInstanceResultTypeDef
# create_instance method usage example with argument unpacking

kwargs: CreateInstanceRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "LayerIds": ...,
    "InstanceType": ...,
}

parent.create_instance(**kwargs)
  1. See CreateInstanceRequestRequestTypeDef

create_layer#

Creates a layer.

Type annotations and code completion for session.create_client("opsworks").create_layer method. boto3 documentation

# create_layer method definition

await def create_layer(
    self,
    *,
    StackId: str,
    Type: LayerTypeType,  # (1)
    Name: str,
    Shortname: str,
    Attributes: Mapping[LayerAttributesKeysType, str] = ...,  # (2)
    CloudWatchLogsConfiguration: CloudWatchLogsConfigurationTypeDef = ...,  # (3)
    CustomInstanceProfileArn: str = ...,
    CustomJson: str = ...,
    CustomSecurityGroupIds: Sequence[str] = ...,
    Packages: Sequence[str] = ...,
    VolumeConfigurations: Sequence[VolumeConfigurationTypeDef] = ...,  # (4)
    EnableAutoHealing: bool = ...,
    AutoAssignElasticIps: bool = ...,
    AutoAssignPublicIps: bool = ...,
    CustomRecipes: RecipesTypeDef = ...,  # (5)
    InstallUpdatesOnBoot: bool = ...,
    UseEbsOptimizedInstances: bool = ...,
    LifecycleEventConfiguration: LifecycleEventConfigurationTypeDef = ...,  # (6)
) -> CreateLayerResultTypeDef:  # (7)
    ...
  1. See LayerTypeType
  2. See LayerAttributesKeysType
  3. See CloudWatchLogsConfigurationTypeDef
  4. See VolumeConfigurationTypeDef
  5. See RecipesTypeDef
  6. See LifecycleEventConfigurationTypeDef
  7. See CreateLayerResultTypeDef
# create_layer method usage example with argument unpacking

kwargs: CreateLayerRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "Type": ...,
    "Name": ...,
    "Shortname": ...,
}

parent.create_layer(**kwargs)
  1. See CreateLayerRequestRequestTypeDef

create_stack#

Creates a new stack.

Type annotations and code completion for session.create_client("opsworks").create_stack method. boto3 documentation

# create_stack method definition

await def create_stack(
    self,
    *,
    Name: str,
    Region: str,
    ServiceRoleArn: str,
    DefaultInstanceProfileArn: str,
    VpcId: str = ...,
    Attributes: Mapping[StackAttributesKeysType, str] = ...,  # (1)
    DefaultOs: str = ...,
    HostnameTheme: str = ...,
    DefaultAvailabilityZone: str = ...,
    DefaultSubnetId: str = ...,
    CustomJson: str = ...,
    ConfigurationManager: StackConfigurationManagerTypeDef = ...,  # (2)
    ChefConfiguration: ChefConfigurationTypeDef = ...,  # (3)
    UseCustomCookbooks: bool = ...,
    UseOpsworksSecurityGroups: bool = ...,
    CustomCookbooksSource: SourceTypeDef = ...,  # (4)
    DefaultSshKeyName: str = ...,
    DefaultRootDeviceType: RootDeviceTypeType = ...,  # (5)
    AgentVersion: str = ...,
) -> CreateStackResultTypeDef:  # (6)
    ...
  1. See StackAttributesKeysType
  2. See StackConfigurationManagerTypeDef
  3. See ChefConfigurationTypeDef
  4. See SourceTypeDef
  5. See RootDeviceTypeType
  6. See CreateStackResultTypeDef
# create_stack method usage example with argument unpacking

kwargs: CreateStackRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "Region": ...,
    "ServiceRoleArn": ...,
    "DefaultInstanceProfileArn": ...,
}

parent.create_stack(**kwargs)
  1. See CreateStackRequestRequestTypeDef

create_user_profile#

Creates a new user profile.

Type annotations and code completion for session.create_client("opsworks").create_user_profile method. boto3 documentation

# create_user_profile method definition

await def create_user_profile(
    self,
    *,
    IamUserArn: str,
    SshUsername: str = ...,
    SshPublicKey: str = ...,
    AllowSelfManagement: bool = ...,
) -> CreateUserProfileResultTypeDef:  # (1)
    ...
  1. See CreateUserProfileResultTypeDef
# create_user_profile method usage example with argument unpacking

kwargs: CreateUserProfileRequestRequestTypeDef = {  # (1)
    "IamUserArn": ...,
}

parent.create_user_profile(**kwargs)
  1. See CreateUserProfileRequestRequestTypeDef

delete_app#

Deletes a specified app.

Type annotations and code completion for session.create_client("opsworks").delete_app method. boto3 documentation

# delete_app method definition

await def delete_app(
    self,
    *,
    AppId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_app method usage example with argument unpacking

kwargs: DeleteAppRequestRequestTypeDef = {  # (1)
    "AppId": ...,
}

parent.delete_app(**kwargs)
  1. See DeleteAppRequestRequestTypeDef

delete_instance#

Deletes a specified instance, which terminates the associated Amazon EC2 instance.

Type annotations and code completion for session.create_client("opsworks").delete_instance method. boto3 documentation

# delete_instance method definition

await def delete_instance(
    self,
    *,
    InstanceId: str,
    DeleteElasticIp: bool = ...,
    DeleteVolumes: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_instance method usage example with argument unpacking

kwargs: DeleteInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.delete_instance(**kwargs)
  1. See DeleteInstanceRequestRequestTypeDef

delete_layer#

Deletes a specified layer.

Type annotations and code completion for session.create_client("opsworks").delete_layer method. boto3 documentation

# delete_layer method definition

await def delete_layer(
    self,
    *,
    LayerId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_layer method usage example with argument unpacking

kwargs: DeleteLayerRequestRequestTypeDef = {  # (1)
    "LayerId": ...,
}

parent.delete_layer(**kwargs)
  1. See DeleteLayerRequestRequestTypeDef

delete_stack#

Deletes a specified stack.

Type annotations and code completion for session.create_client("opsworks").delete_stack method. boto3 documentation

# delete_stack method definition

await def delete_stack(
    self,
    *,
    StackId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_stack method usage example with argument unpacking

kwargs: DeleteStackRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.delete_stack(**kwargs)
  1. See DeleteStackRequestRequestTypeDef

delete_user_profile#

Deletes a user profile.

Type annotations and code completion for session.create_client("opsworks").delete_user_profile method. boto3 documentation

# delete_user_profile method definition

await def delete_user_profile(
    self,
    *,
    IamUserArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_user_profile method usage example with argument unpacking

kwargs: DeleteUserProfileRequestRequestTypeDef = {  # (1)
    "IamUserArn": ...,
}

parent.delete_user_profile(**kwargs)
  1. See DeleteUserProfileRequestRequestTypeDef

deregister_ecs_cluster#

Deregisters a specified Amazon ECS cluster from a stack.

Type annotations and code completion for session.create_client("opsworks").deregister_ecs_cluster method. boto3 documentation

# deregister_ecs_cluster method definition

await def deregister_ecs_cluster(
    self,
    *,
    EcsClusterArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_ecs_cluster method usage example with argument unpacking

kwargs: DeregisterEcsClusterRequestRequestTypeDef = {  # (1)
    "EcsClusterArn": ...,
}

parent.deregister_ecs_cluster(**kwargs)
  1. See DeregisterEcsClusterRequestRequestTypeDef

deregister_elastic_ip#

Deregisters a specified Elastic IP address.

Type annotations and code completion for session.create_client("opsworks").deregister_elastic_ip method. boto3 documentation

# deregister_elastic_ip method definition

await def deregister_elastic_ip(
    self,
    *,
    ElasticIp: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_elastic_ip method usage example with argument unpacking

kwargs: DeregisterElasticIpRequestRequestTypeDef = {  # (1)
    "ElasticIp": ...,
}

parent.deregister_elastic_ip(**kwargs)
  1. See DeregisterElasticIpRequestRequestTypeDef

deregister_instance#

Deregister a registered Amazon EC2 or on-premises instance.

Type annotations and code completion for session.create_client("opsworks").deregister_instance method. boto3 documentation

# deregister_instance method definition

await def deregister_instance(
    self,
    *,
    InstanceId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_instance method usage example with argument unpacking

kwargs: DeregisterInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.deregister_instance(**kwargs)
  1. See DeregisterInstanceRequestRequestTypeDef

deregister_rds_db_instance#

Deregisters an Amazon RDS instance.

Type annotations and code completion for session.create_client("opsworks").deregister_rds_db_instance method. boto3 documentation

# deregister_rds_db_instance method definition

await def deregister_rds_db_instance(
    self,
    *,
    RdsDbInstanceArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_rds_db_instance method usage example with argument unpacking

kwargs: DeregisterRdsDbInstanceRequestRequestTypeDef = {  # (1)
    "RdsDbInstanceArn": ...,
}

parent.deregister_rds_db_instance(**kwargs)
  1. See DeregisterRdsDbInstanceRequestRequestTypeDef

deregister_volume#

Deregisters an Amazon EBS volume.

Type annotations and code completion for session.create_client("opsworks").deregister_volume method. boto3 documentation

# deregister_volume method definition

await def deregister_volume(
    self,
    *,
    VolumeId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_volume method usage example with argument unpacking

kwargs: DeregisterVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.deregister_volume(**kwargs)
  1. See DeregisterVolumeRequestRequestTypeDef

describe_agent_versions#

Describes the available AWS OpsWorks Stacks agent versions.

Type annotations and code completion for session.create_client("opsworks").describe_agent_versions method. boto3 documentation

# describe_agent_versions method definition

await def describe_agent_versions(
    self,
    *,
    StackId: str = ...,
    ConfigurationManager: StackConfigurationManagerTypeDef = ...,  # (1)
) -> DescribeAgentVersionsResultTypeDef:  # (2)
    ...
  1. See StackConfigurationManagerTypeDef
  2. See DescribeAgentVersionsResultTypeDef
# describe_agent_versions method usage example with argument unpacking

kwargs: DescribeAgentVersionsRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_agent_versions(**kwargs)
  1. See DescribeAgentVersionsRequestRequestTypeDef

describe_apps#

Requests a description of a specified set of apps.

Type annotations and code completion for session.create_client("opsworks").describe_apps method. boto3 documentation

# describe_apps method definition

await def describe_apps(
    self,
    *,
    StackId: str = ...,
    AppIds: Sequence[str] = ...,
) -> DescribeAppsResultTypeDef:  # (1)
    ...
  1. See DescribeAppsResultTypeDef
# describe_apps method usage example with argument unpacking

kwargs: DescribeAppsRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_apps(**kwargs)
  1. See DescribeAppsRequestRequestTypeDef

describe_commands#

Describes the results of specified commands.

Type annotations and code completion for session.create_client("opsworks").describe_commands method. boto3 documentation

# describe_commands method definition

await def describe_commands(
    self,
    *,
    DeploymentId: str = ...,
    InstanceId: str = ...,
    CommandIds: Sequence[str] = ...,
) -> DescribeCommandsResultTypeDef:  # (1)
    ...
  1. See DescribeCommandsResultTypeDef
# describe_commands method usage example with argument unpacking

kwargs: DescribeCommandsRequestRequestTypeDef = {  # (1)
    "DeploymentId": ...,
}

parent.describe_commands(**kwargs)
  1. See DescribeCommandsRequestRequestTypeDef

describe_deployments#

Requests a description of a specified set of deployments.

Type annotations and code completion for session.create_client("opsworks").describe_deployments method. boto3 documentation

# describe_deployments method definition

await def describe_deployments(
    self,
    *,
    StackId: str = ...,
    AppId: str = ...,
    DeploymentIds: Sequence[str] = ...,
) -> DescribeDeploymentsResultTypeDef:  # (1)
    ...
  1. See DescribeDeploymentsResultTypeDef
# describe_deployments method usage example with argument unpacking

kwargs: DescribeDeploymentsRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_deployments(**kwargs)
  1. See DescribeDeploymentsRequestRequestTypeDef

describe_ecs_clusters#

Describes Amazon ECS clusters that are registered with a stack.

Type annotations and code completion for session.create_client("opsworks").describe_ecs_clusters method. boto3 documentation

# describe_ecs_clusters method definition

await def describe_ecs_clusters(
    self,
    *,
    EcsClusterArns: Sequence[str] = ...,
    StackId: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeEcsClustersResultTypeDef:  # (1)
    ...
  1. See DescribeEcsClustersResultTypeDef
# describe_ecs_clusters method usage example with argument unpacking

kwargs: DescribeEcsClustersRequestRequestTypeDef = {  # (1)
    "EcsClusterArns": ...,
}

parent.describe_ecs_clusters(**kwargs)
  1. See DescribeEcsClustersRequestRequestTypeDef

describe_elastic_ips#

Describes Elastic IP addresses_.

Type annotations and code completion for session.create_client("opsworks").describe_elastic_ips method. boto3 documentation

# describe_elastic_ips method definition

await def describe_elastic_ips(
    self,
    *,
    InstanceId: str = ...,
    StackId: str = ...,
    Ips: Sequence[str] = ...,
) -> DescribeElasticIpsResultTypeDef:  # (1)
    ...
  1. See DescribeElasticIpsResultTypeDef
# describe_elastic_ips method usage example with argument unpacking

kwargs: DescribeElasticIpsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.describe_elastic_ips(**kwargs)
  1. See DescribeElasticIpsRequestRequestTypeDef

describe_elastic_load_balancers#

Describes a stack's Elastic Load Balancing instances.

Type annotations and code completion for session.create_client("opsworks").describe_elastic_load_balancers method. boto3 documentation

# describe_elastic_load_balancers method definition

await def describe_elastic_load_balancers(
    self,
    *,
    StackId: str = ...,
    LayerIds: Sequence[str] = ...,
) -> DescribeElasticLoadBalancersResultTypeDef:  # (1)
    ...
  1. See DescribeElasticLoadBalancersResultTypeDef
# describe_elastic_load_balancers method usage example with argument unpacking

kwargs: DescribeElasticLoadBalancersRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_elastic_load_balancers(**kwargs)
  1. See DescribeElasticLoadBalancersRequestRequestTypeDef

describe_instances#

Requests a description of a set of instances.

Type annotations and code completion for session.create_client("opsworks").describe_instances method. boto3 documentation

# describe_instances method definition

await def describe_instances(
    self,
    *,
    StackId: str = ...,
    LayerId: str = ...,
    InstanceIds: Sequence[str] = ...,
) -> DescribeInstancesResultTypeDef:  # (1)
    ...
  1. See DescribeInstancesResultTypeDef
# describe_instances method usage example with argument unpacking

kwargs: DescribeInstancesRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_instances(**kwargs)
  1. See DescribeInstancesRequestRequestTypeDef

describe_layers#

Requests a description of one or more layers in a specified stack.

Type annotations and code completion for session.create_client("opsworks").describe_layers method. boto3 documentation

# describe_layers method definition

await def describe_layers(
    self,
    *,
    StackId: str = ...,
    LayerIds: Sequence[str] = ...,
) -> DescribeLayersResultTypeDef:  # (1)
    ...
  1. See DescribeLayersResultTypeDef
# describe_layers method usage example with argument unpacking

kwargs: DescribeLayersRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_layers(**kwargs)
  1. See DescribeLayersRequestRequestTypeDef

describe_load_based_auto_scaling#

Describes load-based auto scaling configurations for specified layers.

Type annotations and code completion for session.create_client("opsworks").describe_load_based_auto_scaling method. boto3 documentation

# describe_load_based_auto_scaling method definition

await def describe_load_based_auto_scaling(
    self,
    *,
    LayerIds: Sequence[str],
) -> DescribeLoadBasedAutoScalingResultTypeDef:  # (1)
    ...
  1. See DescribeLoadBasedAutoScalingResultTypeDef
# describe_load_based_auto_scaling method usage example with argument unpacking

kwargs: DescribeLoadBasedAutoScalingRequestRequestTypeDef = {  # (1)
    "LayerIds": ...,
}

parent.describe_load_based_auto_scaling(**kwargs)
  1. See DescribeLoadBasedAutoScalingRequestRequestTypeDef

describe_my_user_profile#

Describes a user's SSH information.

Type annotations and code completion for session.create_client("opsworks").describe_my_user_profile method. boto3 documentation

# describe_my_user_profile method definition

await def describe_my_user_profile(
    self,
) -> DescribeMyUserProfileResultTypeDef:  # (1)
    ...
  1. See DescribeMyUserProfileResultTypeDef

describe_operating_systems#

Describes the operating systems that are supported by AWS OpsWorks Stacks.

Type annotations and code completion for session.create_client("opsworks").describe_operating_systems method. boto3 documentation

# describe_operating_systems method definition

await def describe_operating_systems(
    self,
) -> DescribeOperatingSystemsResponseTypeDef:  # (1)
    ...
  1. See DescribeOperatingSystemsResponseTypeDef

describe_permissions#

Describes the permissions for a specified stack.

Type annotations and code completion for session.create_client("opsworks").describe_permissions method. boto3 documentation

# describe_permissions method definition

await def describe_permissions(
    self,
    *,
    IamUserArn: str = ...,
    StackId: str = ...,
) -> DescribePermissionsResultTypeDef:  # (1)
    ...
  1. See DescribePermissionsResultTypeDef
# describe_permissions method usage example with argument unpacking

kwargs: DescribePermissionsRequestRequestTypeDef = {  # (1)
    "IamUserArn": ...,
}

parent.describe_permissions(**kwargs)
  1. See DescribePermissionsRequestRequestTypeDef

describe_raid_arrays#

Describe an instance's RAID arrays.

Type annotations and code completion for session.create_client("opsworks").describe_raid_arrays method. boto3 documentation

# describe_raid_arrays method definition

await def describe_raid_arrays(
    self,
    *,
    InstanceId: str = ...,
    StackId: str = ...,
    RaidArrayIds: Sequence[str] = ...,
) -> DescribeRaidArraysResultTypeDef:  # (1)
    ...
  1. See DescribeRaidArraysResultTypeDef
# describe_raid_arrays method usage example with argument unpacking

kwargs: DescribeRaidArraysRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.describe_raid_arrays(**kwargs)
  1. See DescribeRaidArraysRequestRequestTypeDef

describe_rds_db_instances#

Describes Amazon RDS instances.

Type annotations and code completion for session.create_client("opsworks").describe_rds_db_instances method. boto3 documentation

# describe_rds_db_instances method definition

await def describe_rds_db_instances(
    self,
    *,
    StackId: str,
    RdsDbInstanceArns: Sequence[str] = ...,
) -> DescribeRdsDbInstancesResultTypeDef:  # (1)
    ...
  1. See DescribeRdsDbInstancesResultTypeDef
# describe_rds_db_instances method usage example with argument unpacking

kwargs: DescribeRdsDbInstancesRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_rds_db_instances(**kwargs)
  1. See DescribeRdsDbInstancesRequestRequestTypeDef

describe_service_errors#

Describes AWS OpsWorks Stacks service errors.

Type annotations and code completion for session.create_client("opsworks").describe_service_errors method. boto3 documentation

# describe_service_errors method definition

await def describe_service_errors(
    self,
    *,
    StackId: str = ...,
    InstanceId: str = ...,
    ServiceErrorIds: Sequence[str] = ...,
) -> DescribeServiceErrorsResultTypeDef:  # (1)
    ...
  1. See DescribeServiceErrorsResultTypeDef
# describe_service_errors method usage example with argument unpacking

kwargs: DescribeServiceErrorsRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_service_errors(**kwargs)
  1. See DescribeServiceErrorsRequestRequestTypeDef

describe_stack_provisioning_parameters#

Requests a description of a stack's provisioning parameters.

Type annotations and code completion for session.create_client("opsworks").describe_stack_provisioning_parameters method. boto3 documentation

# describe_stack_provisioning_parameters method definition

await def describe_stack_provisioning_parameters(
    self,
    *,
    StackId: str,
) -> DescribeStackProvisioningParametersResultTypeDef:  # (1)
    ...
  1. See DescribeStackProvisioningParametersResultTypeDef
# describe_stack_provisioning_parameters method usage example with argument unpacking

kwargs: DescribeStackProvisioningParametersRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_stack_provisioning_parameters(**kwargs)
  1. See DescribeStackProvisioningParametersRequestRequestTypeDef

describe_stack_summary#

Describes the number of layers and apps in a specified stack, and the number of instances in each state, such as running_setup or online.

Type annotations and code completion for session.create_client("opsworks").describe_stack_summary method. boto3 documentation

# describe_stack_summary method definition

await def describe_stack_summary(
    self,
    *,
    StackId: str,
) -> DescribeStackSummaryResultTypeDef:  # (1)
    ...
  1. See DescribeStackSummaryResultTypeDef
# describe_stack_summary method usage example with argument unpacking

kwargs: DescribeStackSummaryRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.describe_stack_summary(**kwargs)
  1. See DescribeStackSummaryRequestRequestTypeDef

describe_stacks#

Requests a description of one or more stacks.

Type annotations and code completion for session.create_client("opsworks").describe_stacks method. boto3 documentation

# describe_stacks method definition

await def describe_stacks(
    self,
    *,
    StackIds: Sequence[str] = ...,
) -> DescribeStacksResultTypeDef:  # (1)
    ...
  1. See DescribeStacksResultTypeDef
# describe_stacks method usage example with argument unpacking

kwargs: DescribeStacksRequestRequestTypeDef = {  # (1)
    "StackIds": ...,
}

parent.describe_stacks(**kwargs)
  1. See DescribeStacksRequestRequestTypeDef

describe_time_based_auto_scaling#

Describes time-based auto scaling configurations for specified instances.

Type annotations and code completion for session.create_client("opsworks").describe_time_based_auto_scaling method. boto3 documentation

# describe_time_based_auto_scaling method definition

await def describe_time_based_auto_scaling(
    self,
    *,
    InstanceIds: Sequence[str],
) -> DescribeTimeBasedAutoScalingResultTypeDef:  # (1)
    ...
  1. See DescribeTimeBasedAutoScalingResultTypeDef
# describe_time_based_auto_scaling method usage example with argument unpacking

kwargs: DescribeTimeBasedAutoScalingRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.describe_time_based_auto_scaling(**kwargs)
  1. See DescribeTimeBasedAutoScalingRequestRequestTypeDef

describe_user_profiles#

Describe specified users.

Type annotations and code completion for session.create_client("opsworks").describe_user_profiles method. boto3 documentation

# describe_user_profiles method definition

await def describe_user_profiles(
    self,
    *,
    IamUserArns: Sequence[str] = ...,
) -> DescribeUserProfilesResultTypeDef:  # (1)
    ...
  1. See DescribeUserProfilesResultTypeDef
# describe_user_profiles method usage example with argument unpacking

kwargs: DescribeUserProfilesRequestRequestTypeDef = {  # (1)
    "IamUserArns": ...,
}

parent.describe_user_profiles(**kwargs)
  1. See DescribeUserProfilesRequestRequestTypeDef

describe_volumes#

Describes an instance's Amazon EBS volumes.

Type annotations and code completion for session.create_client("opsworks").describe_volumes method. boto3 documentation

# describe_volumes method definition

await def describe_volumes(
    self,
    *,
    InstanceId: str = ...,
    StackId: str = ...,
    RaidArrayId: str = ...,
    VolumeIds: Sequence[str] = ...,
) -> DescribeVolumesResultTypeDef:  # (1)
    ...
  1. See DescribeVolumesResultTypeDef
# describe_volumes method usage example with argument unpacking

kwargs: DescribeVolumesRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.describe_volumes(**kwargs)
  1. See DescribeVolumesRequestRequestTypeDef

detach_elastic_load_balancer#

Detaches a specified Elastic Load Balancing instance from its layer.

Type annotations and code completion for session.create_client("opsworks").detach_elastic_load_balancer method. boto3 documentation

# detach_elastic_load_balancer method definition

await def detach_elastic_load_balancer(
    self,
    *,
    ElasticLoadBalancerName: str,
    LayerId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_elastic_load_balancer method usage example with argument unpacking

kwargs: DetachElasticLoadBalancerRequestRequestTypeDef = {  # (1)
    "ElasticLoadBalancerName": ...,
    "LayerId": ...,
}

parent.detach_elastic_load_balancer(**kwargs)
  1. See DetachElasticLoadBalancerRequestRequestTypeDef

disassociate_elastic_ip#

Disassociates an Elastic IP address from its instance.

Type annotations and code completion for session.create_client("opsworks").disassociate_elastic_ip method. boto3 documentation

# disassociate_elastic_ip method definition

await def disassociate_elastic_ip(
    self,
    *,
    ElasticIp: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disassociate_elastic_ip method usage example with argument unpacking

kwargs: DisassociateElasticIpRequestRequestTypeDef = {  # (1)
    "ElasticIp": ...,
}

parent.disassociate_elastic_ip(**kwargs)
  1. See DisassociateElasticIpRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for session.create_client("opsworks").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

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

get_hostname_suggestion#

Gets a generated host name for the specified layer, based on the current host name theme.

Type annotations and code completion for session.create_client("opsworks").get_hostname_suggestion method. boto3 documentation

# get_hostname_suggestion method definition

await def get_hostname_suggestion(
    self,
    *,
    LayerId: str,
) -> GetHostnameSuggestionResultTypeDef:  # (1)
    ...
  1. See GetHostnameSuggestionResultTypeDef
# get_hostname_suggestion method usage example with argument unpacking

kwargs: GetHostnameSuggestionRequestRequestTypeDef = {  # (1)
    "LayerId": ...,
}

parent.get_hostname_suggestion(**kwargs)
  1. See GetHostnameSuggestionRequestRequestTypeDef

grant_access#

.

Type annotations and code completion for session.create_client("opsworks").grant_access method. boto3 documentation

# grant_access method definition

await def grant_access(
    self,
    *,
    InstanceId: str,
    ValidForInMinutes: int = ...,
) -> GrantAccessResultTypeDef:  # (1)
    ...
  1. See GrantAccessResultTypeDef
# grant_access method usage example with argument unpacking

kwargs: GrantAccessRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.grant_access(**kwargs)
  1. See GrantAccessRequestRequestTypeDef

list_tags#

Returns a list of tags that are applied to the specified stack or layer.

Type annotations and code completion for session.create_client("opsworks").list_tags method. boto3 documentation

# list_tags method definition

await def list_tags(
    self,
    *,
    ResourceArn: str,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListTagsResultTypeDef:  # (1)
    ...
  1. See ListTagsResultTypeDef
# list_tags method usage example with argument unpacking

kwargs: ListTagsRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags(**kwargs)
  1. See ListTagsRequestRequestTypeDef

reboot_instance#

Reboots a specified instance.

Type annotations and code completion for session.create_client("opsworks").reboot_instance method. boto3 documentation

# reboot_instance method definition

await def reboot_instance(
    self,
    *,
    InstanceId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# reboot_instance method usage example with argument unpacking

kwargs: RebootInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.reboot_instance(**kwargs)
  1. See RebootInstanceRequestRequestTypeDef

register_ecs_cluster#

Registers a specified Amazon ECS cluster with a stack.

Type annotations and code completion for session.create_client("opsworks").register_ecs_cluster method. boto3 documentation

# register_ecs_cluster method definition

await def register_ecs_cluster(
    self,
    *,
    EcsClusterArn: str,
    StackId: str,
) -> RegisterEcsClusterResultTypeDef:  # (1)
    ...
  1. See RegisterEcsClusterResultTypeDef
# register_ecs_cluster method usage example with argument unpacking

kwargs: RegisterEcsClusterRequestRequestTypeDef = {  # (1)
    "EcsClusterArn": ...,
    "StackId": ...,
}

parent.register_ecs_cluster(**kwargs)
  1. See RegisterEcsClusterRequestRequestTypeDef

register_elastic_ip#

Registers an Elastic IP address with a specified stack.

Type annotations and code completion for session.create_client("opsworks").register_elastic_ip method. boto3 documentation

# register_elastic_ip method definition

await def register_elastic_ip(
    self,
    *,
    ElasticIp: str,
    StackId: str,
) -> RegisterElasticIpResultTypeDef:  # (1)
    ...
  1. See RegisterElasticIpResultTypeDef
# register_elastic_ip method usage example with argument unpacking

kwargs: RegisterElasticIpRequestRequestTypeDef = {  # (1)
    "ElasticIp": ...,
    "StackId": ...,
}

parent.register_elastic_ip(**kwargs)
  1. See RegisterElasticIpRequestRequestTypeDef

register_instance#

Registers instances that were created outside of AWS OpsWorks Stacks with a specified stack.

Type annotations and code completion for session.create_client("opsworks").register_instance method. boto3 documentation

# register_instance method definition

await def register_instance(
    self,
    *,
    StackId: str,
    Hostname: str = ...,
    PublicIp: str = ...,
    PrivateIp: str = ...,
    RsaPublicKey: str = ...,
    RsaPublicKeyFingerprint: str = ...,
    InstanceIdentity: InstanceIdentityTypeDef = ...,  # (1)
) -> RegisterInstanceResultTypeDef:  # (2)
    ...
  1. See InstanceIdentityTypeDef
  2. See RegisterInstanceResultTypeDef
# register_instance method usage example with argument unpacking

kwargs: RegisterInstanceRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.register_instance(**kwargs)
  1. See RegisterInstanceRequestRequestTypeDef

register_rds_db_instance#

Registers an Amazon RDS instance with a stack.

Type annotations and code completion for session.create_client("opsworks").register_rds_db_instance method. boto3 documentation

# register_rds_db_instance method definition

await def register_rds_db_instance(
    self,
    *,
    StackId: str,
    RdsDbInstanceArn: str,
    DbUser: str,
    DbPassword: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# register_rds_db_instance method usage example with argument unpacking

kwargs: RegisterRdsDbInstanceRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "RdsDbInstanceArn": ...,
    "DbUser": ...,
    "DbPassword": ...,
}

parent.register_rds_db_instance(**kwargs)
  1. See RegisterRdsDbInstanceRequestRequestTypeDef

register_volume#

Registers an Amazon EBS volume with a specified stack.

Type annotations and code completion for session.create_client("opsworks").register_volume method. boto3 documentation

# register_volume method definition

await def register_volume(
    self,
    *,
    StackId: str,
    Ec2VolumeId: str = ...,
) -> RegisterVolumeResultTypeDef:  # (1)
    ...
  1. See RegisterVolumeResultTypeDef
# register_volume method usage example with argument unpacking

kwargs: RegisterVolumeRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.register_volume(**kwargs)
  1. See RegisterVolumeRequestRequestTypeDef

set_load_based_auto_scaling#

Specify the load-based auto scaling configuration for a specified layer.

Type annotations and code completion for session.create_client("opsworks").set_load_based_auto_scaling method. boto3 documentation

# set_load_based_auto_scaling method definition

await def set_load_based_auto_scaling(
    self,
    *,
    LayerId: str,
    Enable: bool = ...,
    UpScaling: AutoScalingThresholdsTypeDef = ...,  # (1)
    DownScaling: AutoScalingThresholdsTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See AutoScalingThresholdsTypeDef
  2. See AutoScalingThresholdsTypeDef
  3. See EmptyResponseMetadataTypeDef
# set_load_based_auto_scaling method usage example with argument unpacking

kwargs: SetLoadBasedAutoScalingRequestRequestTypeDef = {  # (1)
    "LayerId": ...,
}

parent.set_load_based_auto_scaling(**kwargs)
  1. See SetLoadBasedAutoScalingRequestRequestTypeDef

set_permission#

Specifies a user's permissions.

Type annotations and code completion for session.create_client("opsworks").set_permission method. boto3 documentation

# set_permission method definition

await def set_permission(
    self,
    *,
    StackId: str,
    IamUserArn: str,
    AllowSsh: bool = ...,
    AllowSudo: bool = ...,
    Level: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# set_permission method usage example with argument unpacking

kwargs: SetPermissionRequestRequestTypeDef = {  # (1)
    "StackId": ...,
    "IamUserArn": ...,
}

parent.set_permission(**kwargs)
  1. See SetPermissionRequestRequestTypeDef

set_time_based_auto_scaling#

Specify the time-based auto scaling configuration for a specified instance.

Type annotations and code completion for session.create_client("opsworks").set_time_based_auto_scaling method. boto3 documentation

# set_time_based_auto_scaling method definition

await def set_time_based_auto_scaling(
    self,
    *,
    InstanceId: str,
    AutoScalingSchedule: WeeklyAutoScalingScheduleTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See WeeklyAutoScalingScheduleTypeDef
  2. See EmptyResponseMetadataTypeDef
# set_time_based_auto_scaling method usage example with argument unpacking

kwargs: SetTimeBasedAutoScalingRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.set_time_based_auto_scaling(**kwargs)
  1. See SetTimeBasedAutoScalingRequestRequestTypeDef

start_instance#

Starts a specified instance.

Type annotations and code completion for session.create_client("opsworks").start_instance method. boto3 documentation

# start_instance method definition

await def start_instance(
    self,
    *,
    InstanceId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# start_instance method usage example with argument unpacking

kwargs: StartInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.start_instance(**kwargs)
  1. See StartInstanceRequestRequestTypeDef

start_stack#

Starts a stack's instances.

Type annotations and code completion for session.create_client("opsworks").start_stack method. boto3 documentation

# start_stack method definition

await def start_stack(
    self,
    *,
    StackId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# start_stack method usage example with argument unpacking

kwargs: StartStackRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.start_stack(**kwargs)
  1. See StartStackRequestRequestTypeDef

stop_instance#

Stops a specified instance.

Type annotations and code completion for session.create_client("opsworks").stop_instance method. boto3 documentation

# stop_instance method definition

await def stop_instance(
    self,
    *,
    InstanceId: str,
    Force: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# stop_instance method usage example with argument unpacking

kwargs: StopInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.stop_instance(**kwargs)
  1. See StopInstanceRequestRequestTypeDef

stop_stack#

Stops a specified stack.

Type annotations and code completion for session.create_client("opsworks").stop_stack method. boto3 documentation

# stop_stack method definition

await def stop_stack(
    self,
    *,
    StackId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# stop_stack method usage example with argument unpacking

kwargs: StopStackRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.stop_stack(**kwargs)
  1. See StopStackRequestRequestTypeDef

tag_resource#

Apply cost-allocation tags to a specified stack or layer in AWS OpsWorks Stacks.

Type annotations and code completion for session.create_client("opsworks").tag_resource method. boto3 documentation

# tag_resource method definition

await def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# tag_resource method usage example with argument unpacking

kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

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

unassign_instance#

Unassigns a registered instance from all layers that are using the instance.

Type annotations and code completion for session.create_client("opsworks").unassign_instance method. boto3 documentation

# unassign_instance method definition

await def unassign_instance(
    self,
    *,
    InstanceId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# unassign_instance method usage example with argument unpacking

kwargs: UnassignInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.unassign_instance(**kwargs)
  1. See UnassignInstanceRequestRequestTypeDef

unassign_volume#

Unassigns an assigned Amazon EBS volume.

Type annotations and code completion for session.create_client("opsworks").unassign_volume method. boto3 documentation

# unassign_volume method definition

await def unassign_volume(
    self,
    *,
    VolumeId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# unassign_volume method usage example with argument unpacking

kwargs: UnassignVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.unassign_volume(**kwargs)
  1. See UnassignVolumeRequestRequestTypeDef

untag_resource#

Removes tags from a specified stack or layer.

Type annotations and code completion for session.create_client("opsworks").untag_resource method. boto3 documentation

# untag_resource method definition

await def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# untag_resource method usage example with argument unpacking

kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

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

update_app#

Updates a specified app.

Type annotations and code completion for session.create_client("opsworks").update_app method. boto3 documentation

# update_app method definition

await def update_app(
    self,
    *,
    AppId: str,
    Name: str = ...,
    Description: str = ...,
    DataSources: Sequence[DataSourceTypeDef] = ...,  # (1)
    Type: AppTypeType = ...,  # (2)
    AppSource: SourceTypeDef = ...,  # (3)
    Domains: Sequence[str] = ...,
    EnableSsl: bool = ...,
    SslConfiguration: SslConfigurationTypeDef = ...,  # (4)
    Attributes: Mapping[AppAttributesKeysType, str] = ...,  # (5)
    Environment: Sequence[EnvironmentVariableTypeDef] = ...,  # (6)
) -> EmptyResponseMetadataTypeDef:  # (7)
    ...
  1. See DataSourceTypeDef
  2. See AppTypeType
  3. See SourceTypeDef
  4. See SslConfigurationTypeDef
  5. See AppAttributesKeysType
  6. See EnvironmentVariableTypeDef
  7. See EmptyResponseMetadataTypeDef
# update_app method usage example with argument unpacking

kwargs: UpdateAppRequestRequestTypeDef = {  # (1)
    "AppId": ...,
}

parent.update_app(**kwargs)
  1. See UpdateAppRequestRequestTypeDef

update_elastic_ip#

Updates a registered Elastic IP address's name.

Type annotations and code completion for session.create_client("opsworks").update_elastic_ip method. boto3 documentation

# update_elastic_ip method definition

await def update_elastic_ip(
    self,
    *,
    ElasticIp: str,
    Name: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# update_elastic_ip method usage example with argument unpacking

kwargs: UpdateElasticIpRequestRequestTypeDef = {  # (1)
    "ElasticIp": ...,
}

parent.update_elastic_ip(**kwargs)
  1. See UpdateElasticIpRequestRequestTypeDef

update_instance#

Updates a specified instance.

Type annotations and code completion for session.create_client("opsworks").update_instance method. boto3 documentation

# update_instance method definition

await def update_instance(
    self,
    *,
    InstanceId: str,
    LayerIds: Sequence[str] = ...,
    InstanceType: str = ...,
    AutoScalingType: AutoScalingTypeType = ...,  # (1)
    Hostname: str = ...,
    Os: str = ...,
    AmiId: str = ...,
    SshKeyName: str = ...,
    Architecture: ArchitectureType = ...,  # (2)
    InstallUpdatesOnBoot: bool = ...,
    EbsOptimized: bool = ...,
    AgentVersion: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See AutoScalingTypeType
  2. See ArchitectureType
  3. See EmptyResponseMetadataTypeDef
# update_instance method usage example with argument unpacking

kwargs: UpdateInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.update_instance(**kwargs)
  1. See UpdateInstanceRequestRequestTypeDef

update_layer#

Updates a specified layer.

Type annotations and code completion for session.create_client("opsworks").update_layer method. boto3 documentation

# update_layer method definition

await def update_layer(
    self,
    *,
    LayerId: str,
    Name: str = ...,
    Shortname: str = ...,
    Attributes: Mapping[LayerAttributesKeysType, str] = ...,  # (1)
    CloudWatchLogsConfiguration: CloudWatchLogsConfigurationTypeDef = ...,  # (2)
    CustomInstanceProfileArn: str = ...,
    CustomJson: str = ...,
    CustomSecurityGroupIds: Sequence[str] = ...,
    Packages: Sequence[str] = ...,
    VolumeConfigurations: Sequence[VolumeConfigurationTypeDef] = ...,  # (3)
    EnableAutoHealing: bool = ...,
    AutoAssignElasticIps: bool = ...,
    AutoAssignPublicIps: bool = ...,
    CustomRecipes: RecipesTypeDef = ...,  # (4)
    InstallUpdatesOnBoot: bool = ...,
    UseEbsOptimizedInstances: bool = ...,
    LifecycleEventConfiguration: LifecycleEventConfigurationTypeDef = ...,  # (5)
) -> EmptyResponseMetadataTypeDef:  # (6)
    ...
  1. See LayerAttributesKeysType
  2. See CloudWatchLogsConfigurationTypeDef
  3. See VolumeConfigurationTypeDef
  4. See RecipesTypeDef
  5. See LifecycleEventConfigurationTypeDef
  6. See EmptyResponseMetadataTypeDef
# update_layer method usage example with argument unpacking

kwargs: UpdateLayerRequestRequestTypeDef = {  # (1)
    "LayerId": ...,
}

parent.update_layer(**kwargs)
  1. See UpdateLayerRequestRequestTypeDef

update_my_user_profile#

Updates a user's SSH public key.

Type annotations and code completion for session.create_client("opsworks").update_my_user_profile method. boto3 documentation

# update_my_user_profile method definition

await def update_my_user_profile(
    self,
    *,
    SshPublicKey: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# update_my_user_profile method usage example with argument unpacking

kwargs: UpdateMyUserProfileRequestRequestTypeDef = {  # (1)
    "SshPublicKey": ...,
}

parent.update_my_user_profile(**kwargs)
  1. See UpdateMyUserProfileRequestRequestTypeDef

update_rds_db_instance#

Updates an Amazon RDS instance.

Type annotations and code completion for session.create_client("opsworks").update_rds_db_instance method. boto3 documentation

# update_rds_db_instance method definition

await def update_rds_db_instance(
    self,
    *,
    RdsDbInstanceArn: str,
    DbUser: str = ...,
    DbPassword: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# update_rds_db_instance method usage example with argument unpacking

kwargs: UpdateRdsDbInstanceRequestRequestTypeDef = {  # (1)
    "RdsDbInstanceArn": ...,
}

parent.update_rds_db_instance(**kwargs)
  1. See UpdateRdsDbInstanceRequestRequestTypeDef

update_stack#

Updates a specified stack.

Type annotations and code completion for session.create_client("opsworks").update_stack method. boto3 documentation

# update_stack method definition

await def update_stack(
    self,
    *,
    StackId: str,
    Name: str = ...,
    Attributes: Mapping[StackAttributesKeysType, str] = ...,  # (1)
    ServiceRoleArn: str = ...,
    DefaultInstanceProfileArn: str = ...,
    DefaultOs: str = ...,
    HostnameTheme: str = ...,
    DefaultAvailabilityZone: str = ...,
    DefaultSubnetId: str = ...,
    CustomJson: str = ...,
    ConfigurationManager: StackConfigurationManagerTypeDef = ...,  # (2)
    ChefConfiguration: ChefConfigurationTypeDef = ...,  # (3)
    UseCustomCookbooks: bool = ...,
    CustomCookbooksSource: SourceTypeDef = ...,  # (4)
    DefaultSshKeyName: str = ...,
    DefaultRootDeviceType: RootDeviceTypeType = ...,  # (5)
    UseOpsworksSecurityGroups: bool = ...,
    AgentVersion: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (6)
    ...
  1. See StackAttributesKeysType
  2. See StackConfigurationManagerTypeDef
  3. See ChefConfigurationTypeDef
  4. See SourceTypeDef
  5. See RootDeviceTypeType
  6. See EmptyResponseMetadataTypeDef
# update_stack method usage example with argument unpacking

kwargs: UpdateStackRequestRequestTypeDef = {  # (1)
    "StackId": ...,
}

parent.update_stack(**kwargs)
  1. See UpdateStackRequestRequestTypeDef

update_user_profile#

Updates a specified user profile.

Type annotations and code completion for session.create_client("opsworks").update_user_profile method. boto3 documentation

# update_user_profile method definition

await def update_user_profile(
    self,
    *,
    IamUserArn: str,
    SshUsername: str = ...,
    SshPublicKey: str = ...,
    AllowSelfManagement: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# update_user_profile method usage example with argument unpacking

kwargs: UpdateUserProfileRequestRequestTypeDef = {  # (1)
    "IamUserArn": ...,
}

parent.update_user_profile(**kwargs)
  1. See UpdateUserProfileRequestRequestTypeDef

update_volume#

Updates an Amazon EBS volume's name or mount point.

Type annotations and code completion for session.create_client("opsworks").update_volume method. boto3 documentation

# update_volume method definition

await def update_volume(
    self,
    *,
    VolumeId: str,
    Name: str = ...,
    MountPoint: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# update_volume method usage example with argument unpacking

kwargs: UpdateVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.update_volume(**kwargs)
  1. See UpdateVolumeRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("opsworks").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> OpsWorksClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("opsworks").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("opsworks").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for session.create_client("opsworks").get_waiter method with overloads.