Struct aws_sdk_ssm::client::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for Amazon Simple Systems Manager (SSM)

Client for invoking operations on Amazon Simple Systems Manager (SSM). Each operation on Amazon Simple Systems Manager (SSM) is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_ssm::Client::new(&config);

Occasionally, SDKs may have additional service-specific that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_ssm::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

Using the Client

A client has a function for every operation that can be performed by the service. For example, the AddTagsToResource operation has a Client::add_tags_to_resource, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.add_tags_to_resource()
    .resource_type("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn add_tags_to_resource(&self) -> AddTagsToResourceFluentBuilder

Constructs a fluent builder for the AddTagsToResource operation.

  • The fluent builder is configurable:
    • resource_type(ResourceTypeForTagging) / set_resource_type(Option<ResourceTypeForTagging>):

      Specifies the type of resource you are tagging.

      The ManagedInstance type for this API operation is for on-premises managed nodes. You must specify the name of the managed node in the following format: mi-ID_number . For example, mi-1a2b3c4d5e6f.

    • resource_id(impl Into<String>) / set_resource_id(Option<String>):

      The resource ID you want to tag.

      Use the ID of the resource. Here are some examples:

      MaintenanceWindow: mw-012345abcde

      PatchBaseline: pb-012345abcde

      Automation: example-c160-4567-8519-012345abcde

      OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

      For the Document and Parameter values, use the name of the resource. If you’re tagging a shared document, you must use the full ARN of the document.

      ManagedInstance: mi-012345abcde

      The ManagedInstance type for this API operation is only for on-premises managed nodes. You must specify the name of the managed node in the following format: mi-ID_number . For example, mi-1a2b3c4d5e6f.

    • tags(Tag) / set_tags(Option<Vec<Tag>>):

      One or more tags. The value parameter is required.

      Don’t enter personally identifiable information in this field.

  • On success, responds with AddTagsToResourceOutput
  • On failure, responds with SdkError<AddTagsToResourceError>
source§

impl Client

Constructs a fluent builder for the AssociateOpsItemRelatedItem operation.

source§

impl Client

source

pub fn cancel_command(&self) -> CancelCommandFluentBuilder

Constructs a fluent builder for the CancelCommand operation.

source§

impl Client

source

pub fn cancel_maintenance_window_execution( &self ) -> CancelMaintenanceWindowExecutionFluentBuilder

Constructs a fluent builder for the CancelMaintenanceWindowExecution operation.

source§

impl Client

source

pub fn create_activation(&self) -> CreateActivationFluentBuilder

Constructs a fluent builder for the CreateActivation operation.

  • The fluent builder is configurable:
    • description(impl Into<String>) / set_description(Option<String>):

      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(impl Into<String>) / set_default_instance_name(Option<String>):

      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.

    • iam_role(impl Into<String>) / set_iam_role(Option<String>):

      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 an IAM service role for a hybrid environment in the Amazon Web Services Systems Manager User Guide.

      You can’t specify an IAM service-linked role for this parameter. You must create a unique role.

    • registration_limit(i32) / set_registration_limit(Option<i32>):

      Specify the maximum number of managed nodes you want to register. The default value is 1.

    • expiration_date(DateTime) / set_expiration_date(Option<DateTime>):

      The date by which this activation request should expire, in timestamp format, such as “2021-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(Tag) / set_tags(Option<Vec<Tag>>):

      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

      • Key=Environment,Value=Production

      When you install SSM Agent on your on-premises servers and VMs, you specify an activation ID and code. When you specify the activation ID and code, tags assigned to the activation are automatically applied to the on-premises servers or VMs.

      You can’t add tags to or delete tags from an existing activation. You can tag your on-premises servers, edge devices, and VMs after they connect to Systems Manager for the first time and are assigned a managed node ID. This means they are listed in the Amazon Web Services Systems Manager console with an ID that is prefixed with “mi-”. For information about how to add tags to your managed nodes, see AddTagsToResource. For information about how to remove tags from your managed nodes, see RemoveTagsFromResource.

    • registration_metadata(RegistrationMetadataItem) / set_registration_metadata(Option<Vec<RegistrationMetadataItem>>):

      Reserved for internal use.

  • On success, responds with CreateActivationOutput with field(s):
    • activation_id(Option<String>):

      The ID number generated by the system when it processed the activation. The activation ID functions like a user name.

    • activation_code(Option<String>):

      The code the system generates when it processes the activation. The activation code functions like a password to validate the activation ID.

  • On failure, responds with SdkError<CreateActivationError>
source§

impl Client

source

pub fn create_association(&self) -> CreateAssociationFluentBuilder

Constructs a fluent builder for the CreateAssociation operation.

source§

impl Client

source

pub fn create_association_batch(&self) -> CreateAssociationBatchFluentBuilder

Constructs a fluent builder for the CreateAssociationBatch operation.

source§

impl Client

source

pub fn create_document(&self) -> CreateDocumentFluentBuilder

Constructs a fluent builder for the CreateDocument operation.

source§

impl Client

source

pub fn create_maintenance_window(&self) -> CreateMaintenanceWindowFluentBuilder

Constructs a fluent builder for the CreateMaintenanceWindow operation.

source§

impl Client

source

pub fn create_ops_item(&self) -> CreateOpsItemFluentBuilder

Constructs a fluent builder for the CreateOpsItem operation.

source§

impl Client

source

pub fn create_ops_metadata(&self) -> CreateOpsMetadataFluentBuilder

Constructs a fluent builder for the CreateOpsMetadata operation.

source§

impl Client

source

pub fn create_patch_baseline(&self) -> CreatePatchBaselineFluentBuilder

Constructs a fluent builder for the CreatePatchBaseline operation.

source§

impl Client

source

pub fn create_resource_data_sync(&self) -> CreateResourceDataSyncFluentBuilder

Constructs a fluent builder for the CreateResourceDataSync operation.

source§

impl Client

source

pub fn delete_activation(&self) -> DeleteActivationFluentBuilder

Constructs a fluent builder for the DeleteActivation operation.

source§

impl Client

source

pub fn delete_association(&self) -> DeleteAssociationFluentBuilder

Constructs a fluent builder for the DeleteAssociation operation.

source§

impl Client

source

pub fn delete_document(&self) -> DeleteDocumentFluentBuilder

Constructs a fluent builder for the DeleteDocument operation.

source§

impl Client

source

pub fn delete_inventory(&self) -> DeleteInventoryFluentBuilder

Constructs a fluent builder for the DeleteInventory operation.

source§

impl Client

source

pub fn delete_maintenance_window(&self) -> DeleteMaintenanceWindowFluentBuilder

Constructs a fluent builder for the DeleteMaintenanceWindow operation.

source§

impl Client

source

pub fn delete_ops_metadata(&self) -> DeleteOpsMetadataFluentBuilder

Constructs a fluent builder for the DeleteOpsMetadata operation.

source§

impl Client

source

pub fn delete_parameter(&self) -> DeleteParameterFluentBuilder

Constructs a fluent builder for the DeleteParameter operation.

source§

impl Client

source

pub fn delete_parameters(&self) -> DeleteParametersFluentBuilder

Constructs a fluent builder for the DeleteParameters operation.

source§

impl Client

source

pub fn delete_patch_baseline(&self) -> DeletePatchBaselineFluentBuilder

Constructs a fluent builder for the DeletePatchBaseline operation.

source§

impl Client

source

pub fn delete_resource_data_sync(&self) -> DeleteResourceDataSyncFluentBuilder

Constructs a fluent builder for the DeleteResourceDataSync operation.

source§

impl Client

source

pub fn delete_resource_policy(&self) -> DeleteResourcePolicyFluentBuilder

Constructs a fluent builder for the DeleteResourcePolicy operation.

source§

impl Client

source

pub fn deregister_managed_instance( &self ) -> DeregisterManagedInstanceFluentBuilder

Constructs a fluent builder for the DeregisterManagedInstance operation.

source§

impl Client

source

pub fn deregister_patch_baseline_for_patch_group( &self ) -> DeregisterPatchBaselineForPatchGroupFluentBuilder

Constructs a fluent builder for the DeregisterPatchBaselineForPatchGroup operation.

source§

impl Client

source

pub fn deregister_target_from_maintenance_window( &self ) -> DeregisterTargetFromMaintenanceWindowFluentBuilder

Constructs a fluent builder for the DeregisterTargetFromMaintenanceWindow operation.

source§

impl Client

source

pub fn deregister_task_from_maintenance_window( &self ) -> DeregisterTaskFromMaintenanceWindowFluentBuilder

Constructs a fluent builder for the DeregisterTaskFromMaintenanceWindow operation.

source§

impl Client

source

pub fn describe_activations(&self) -> DescribeActivationsFluentBuilder

Constructs a fluent builder for the DescribeActivations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_association(&self) -> DescribeAssociationFluentBuilder

Constructs a fluent builder for the DescribeAssociation operation.

source§

impl Client

source

pub fn describe_association_execution_targets( &self ) -> DescribeAssociationExecutionTargetsFluentBuilder

Constructs a fluent builder for the DescribeAssociationExecutionTargets operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_association_executions( &self ) -> DescribeAssociationExecutionsFluentBuilder

Constructs a fluent builder for the DescribeAssociationExecutions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_automation_executions( &self ) -> DescribeAutomationExecutionsFluentBuilder

Constructs a fluent builder for the DescribeAutomationExecutions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_automation_step_executions( &self ) -> DescribeAutomationStepExecutionsFluentBuilder

Constructs a fluent builder for the DescribeAutomationStepExecutions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_available_patches( &self ) -> DescribeAvailablePatchesFluentBuilder

Constructs a fluent builder for the DescribeAvailablePatches operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • filters(PatchOrchestratorFilter) / set_filters(Option<Vec<PatchOrchestratorFilter>>):

      Each element in the array is a structure containing a key-value pair.

      Windows Server

      Supported keys for Windows Server managed node patches include the following:

      • PATCH_SET

        Sample values: OS | APPLICATION

      • PRODUCT

        Sample values: WindowsServer2012 | Office 2010 | MicrosoftDefenderAntivirus

      • PRODUCT_FAMILY

        Sample values: Windows | Office

      • MSRC_SEVERITY

        Sample values: ServicePacks | Important | Moderate

      • CLASSIFICATION

        Sample values: ServicePacks | SecurityUpdates | DefinitionUpdates

      • PATCH_ID

        Sample values: KB123456 | KB4516046

      Linux

      When specifying filters for Linux patches, you must specify a key-pair for PRODUCT. For example, using the Command Line Interface (CLI), the following command fails:

      aws ssm describe-available-patches –filters Key=CVE_ID,Values=CVE-2018-3615

      However, the following command succeeds:

      aws ssm describe-available-patches –filters Key=PRODUCT,Values=AmazonLinux2018.03 Key=CVE_ID,Values=CVE-2018-3615

      Supported keys for Linux managed node patches include the following:

      • PRODUCT

        Sample values: AmazonLinux2018.03 | AmazonLinux2.0

      • NAME

        Sample values: kernel-headers | samba-python | php

      • SEVERITY

        Sample values: Critical | Important | Medium | Low

      • EPOCH

        Sample values: 0 | 1

      • VERSION

        Sample values: 78.6.1 | 4.10.16

      • RELEASE

        Sample values: 9.56.amzn1 | 1.amzn2

      • ARCH

        Sample values: i686 | x86_64

      • REPOSITORY

        Sample values: Core | Updates

      • ADVISORY_ID

        Sample values: ALAS-2018-1058 | ALAS2-2021-1594

      • CVE_ID

        Sample values: CVE-2018-3615 | CVE-2020-1472

      • BUGZILLA_ID

        Sample values: 1463241

    • max_results(i32) / set_max_results(Option<i32>):

      The maximum number of patches to return (per page).

    • next_token(impl Into<String>) / set_next_token(Option<String>):

      The token for the next set of items to return. (You received this token from a previous call.)

  • On success, responds with DescribeAvailablePatchesOutput with field(s):
  • On failure, responds with SdkError<DescribeAvailablePatchesError>
source§

impl Client

source

pub fn describe_document(&self) -> DescribeDocumentFluentBuilder

Constructs a fluent builder for the DescribeDocument operation.

source§

impl Client

source

pub fn describe_document_permission( &self ) -> DescribeDocumentPermissionFluentBuilder

Constructs a fluent builder for the DescribeDocumentPermission operation.

source§

impl Client

source

pub fn describe_effective_instance_associations( &self ) -> DescribeEffectiveInstanceAssociationsFluentBuilder

Constructs a fluent builder for the DescribeEffectiveInstanceAssociations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_effective_patches_for_patch_baseline( &self ) -> DescribeEffectivePatchesForPatchBaselineFluentBuilder

Constructs a fluent builder for the DescribeEffectivePatchesForPatchBaseline operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_instance_associations_status( &self ) -> DescribeInstanceAssociationsStatusFluentBuilder

Constructs a fluent builder for the DescribeInstanceAssociationsStatus operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_instance_information( &self ) -> DescribeInstanceInformationFluentBuilder

Constructs a fluent builder for the DescribeInstanceInformation operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_instance_patch_states( &self ) -> DescribeInstancePatchStatesFluentBuilder

Constructs a fluent builder for the DescribeInstancePatchStates operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_instance_patch_states_for_patch_group( &self ) -> DescribeInstancePatchStatesForPatchGroupFluentBuilder

Constructs a fluent builder for the DescribeInstancePatchStatesForPatchGroup operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_instance_patches(&self) -> DescribeInstancePatchesFluentBuilder

Constructs a fluent builder for the DescribeInstancePatches operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_inventory_deletions( &self ) -> DescribeInventoryDeletionsFluentBuilder

Constructs a fluent builder for the DescribeInventoryDeletions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_execution_task_invocations( &self ) -> DescribeMaintenanceWindowExecutionTaskInvocationsFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowExecutionTaskInvocations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_execution_tasks( &self ) -> DescribeMaintenanceWindowExecutionTasksFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowExecutionTasks operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_executions( &self ) -> DescribeMaintenanceWindowExecutionsFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowExecutions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_schedule( &self ) -> DescribeMaintenanceWindowScheduleFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowSchedule operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_targets( &self ) -> DescribeMaintenanceWindowTargetsFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowTargets operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_window_tasks( &self ) -> DescribeMaintenanceWindowTasksFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowTasks operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_windows( &self ) -> DescribeMaintenanceWindowsFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindows operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_maintenance_windows_for_target( &self ) -> DescribeMaintenanceWindowsForTargetFluentBuilder

Constructs a fluent builder for the DescribeMaintenanceWindowsForTarget operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_ops_items(&self) -> DescribeOpsItemsFluentBuilder

Constructs a fluent builder for the DescribeOpsItems operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • ops_item_filters(OpsItemFilter) / set_ops_item_filters(Option<Vec<OpsItemFilter>>):

      One or more filters to limit the response.

      • Key: CreatedTime

        Operations: GreaterThan, LessThan

      • Key: LastModifiedBy

        Operations: Contains, Equals

      • Key: LastModifiedTime

        Operations: GreaterThan, LessThan

      • Key: Priority

        Operations: Equals

      • Key: Source

        Operations: Contains, Equals

      • Key: Status

        Operations: Equals

      • Key: Title*

        Operations: Equals,Contains

      • Key: OperationalData**

        Operations: Equals

      • Key: OperationalDataKey

        Operations: Equals

      • Key: OperationalDataValue

        Operations: Equals, Contains

      • Key: OpsItemId

        Operations: Equals

      • Key: ResourceId

        Operations: Contains

      • Key: AutomationId

        Operations: Equals

      • Key: AccountId

        Operations: Equals

      *The Equals operator for Title matches the first 100 characters. If you specify more than 100 characters, they system returns an error that the filter value exceeds the length limit.

      **If you filter the response by using the OperationalData operator, specify a key-value pair by using the following JSON format: {“key”:“key_name”,“value”:“a_value”}

    • max_results(i32) / set_max_results(Option<i32>):

      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(impl Into<String>) / set_next_token(Option<String>):

      A token to start the list. Use this token to get the next set of results.

  • On success, responds with DescribeOpsItemsOutput with field(s):
  • On failure, responds with SdkError<DescribeOpsItemsError>
source§

impl Client

source

pub fn describe_parameters(&self) -> DescribeParametersFluentBuilder

Constructs a fluent builder for the DescribeParameters operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_patch_baselines(&self) -> DescribePatchBaselinesFluentBuilder

Constructs a fluent builder for the DescribePatchBaselines operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_patch_group_state(&self) -> DescribePatchGroupStateFluentBuilder

Constructs a fluent builder for the DescribePatchGroupState operation.

source§

impl Client

source

pub fn describe_patch_groups(&self) -> DescribePatchGroupsFluentBuilder

Constructs a fluent builder for the DescribePatchGroups operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_patch_properties(&self) -> DescribePatchPropertiesFluentBuilder

Constructs a fluent builder for the DescribePatchProperties operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn describe_sessions(&self) -> DescribeSessionsFluentBuilder

Constructs a fluent builder for the DescribeSessions operation. This operation supports pagination; See into_paginator().

source§

impl Client

Constructs a fluent builder for the DisassociateOpsItemRelatedItem operation.

source§

impl Client

source

pub fn get_automation_execution(&self) -> GetAutomationExecutionFluentBuilder

Constructs a fluent builder for the GetAutomationExecution operation.

source§

impl Client

source

pub fn get_calendar_state(&self) -> GetCalendarStateFluentBuilder

Constructs a fluent builder for the GetCalendarState operation.

source§

impl Client

source

pub fn get_command_invocation(&self) -> GetCommandInvocationFluentBuilder

Constructs a fluent builder for the GetCommandInvocation operation.

  • The fluent builder is configurable:
    • command_id(impl Into<String>) / set_command_id(Option<String>):

      (Required) The parent command ID of the invocation plugin.

    • instance_id(impl Into<String>) / set_instance_id(Option<String>):

      (Required) The ID of the managed node targeted by the command. A managed node can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.

    • plugin_name(impl Into<String>) / set_plugin_name(Option<String>):

      The name of the step for which you want detailed results. If the document contains only one step, you can omit the name and details for that step. If the document contains more than one step, you must specify the name of the step for which you want to view details. Be sure to specify the name of the step, not the name of a plugin like aws:RunShellScript.

      To find the PluginName, check the document content and find the name of the step you want details for. Alternatively, use ListCommandInvocations with the CommandId and Details parameters. The PluginName is the Name attribute of the CommandPlugin object in the CommandPlugins list.

  • On success, responds with GetCommandInvocationOutput with field(s):
    • command_id(Option<String>):

      The parent command ID of the invocation plugin.

    • instance_id(Option<String>):

      The ID of the managed node targeted by the command. A managed node can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid environment that is configured for Amazon Web Services Systems Manager.

    • comment(Option<String>):

      The comment text for the command.

    • document_name(Option<String>):

      The name of the document that was run. For example, AWS-RunShellScript.

    • document_version(Option<String>):

      The Systems Manager document (SSM document) version used in the request.

    • plugin_name(Option<String>):

      The name of the plugin, or step name, for which details are reported. For example, aws:RunShellScript is a plugin.

    • response_code(i32):

      The error level response code for the plugin script. If the response code is -1, then the command hasn’t started running on the managed node, or it wasn’t received by the node.

    • execution_start_date_time(Option<String>):

      The date and time the plugin started running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the InvokedBefore filter.

      aws ssm list-commands –filters key=InvokedBefore,value=2017-06-07T00:00:00Z

      If the plugin hasn’t started to run, the string is empty.

    • execution_elapsed_time(Option<String>):

      Duration since ExecutionStartDateTime.

    • execution_end_date_time(Option<String>):

      The date and time the plugin finished running. Date and time are written in ISO 8601 format. For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses the InvokedAfter filter.

      aws ssm list-commands –filters key=InvokedAfter,value=2017-06-07T00:00:00Z

      If the plugin hasn’t started to run, the string is empty.

    • status(Option<CommandInvocationStatus>):

      The status of this invocation plugin. This status can be different than StatusDetails.

    • status_details(Option<String>):

      A detailed status of the command execution for an invocation. StatusDetails includes more information than Status because it includes states resulting from error and concurrency control parameters. StatusDetails can show different results than Status. For more information about these statuses, see Understanding command statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the following values:

      • Pending: The command hasn’t been sent to the managed node.

      • In Progress: The command has been sent to the managed node but hasn’t reached a terminal state.

      • Delayed: The system attempted to send the command to the target, but the target wasn’t available. The managed node might not be available because of network issues, because the node was stopped, or for similar reasons. The system will try to send the command again.

      • Success: The command or plugin ran successfully. This is a terminal state.

      • Delivery Timed Out: The command wasn’t delivered to the managed node before the delivery timeout expired. Delivery timeouts don’t count against the parent command’s MaxErrors limit, but they do contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

      • Execution Timed Out: The command started to run on the managed node, but the execution wasn’t complete before the timeout expired. Execution timeouts count against the MaxErrors limit of the parent command. This is a terminal state.

      • Failed: The command wasn’t run successfully on the managed node. For a plugin, this indicates that the result code wasn’t zero. For a command invocation, this indicates that the result code for one or more plugins wasn’t zero. Invocation failures count against the MaxErrors limit of the parent command. This is a terminal state.

      • Cancelled: The command was terminated before it was completed. This is a terminal state.

      • Undeliverable: The command can’t be delivered to the managed node. The node might not exist or might not be responding. Undeliverable invocations don’t count against the parent command’s MaxErrors limit and don’t contribute to whether the parent command status is Success or Incomplete. This is a terminal state.

      • Terminated: The parent command exceeded its MaxErrors limit and subsequent command invocations were canceled by the system. This is a terminal state.

    • standard_output_content(Option<String>):

      The first 24,000 characters written by the plugin to stdout. If the command hasn’t finished running, if ExecutionStatus is neither Succeeded nor Failed, then this string is empty.

    • standard_output_url(Option<String>):

      The URL for the complete text written by the plugin to stdout in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn’t specified, then this string is empty.

    • standard_error_content(Option<String>):

      The first 8,000 characters written by the plugin to stderr. If the command hasn’t finished running, then this string is empty.

    • standard_error_url(Option<String>):

      The URL for the complete text written by the plugin to stderr. If the command hasn’t finished running, then this string is empty.

    • cloud_watch_output_config(Option<CloudWatchOutputConfig>):

      Amazon CloudWatch Logs information where Systems Manager sent the command output.

  • On failure, responds with SdkError<GetCommandInvocationError>
source§

impl Client

source

pub fn get_connection_status(&self) -> GetConnectionStatusFluentBuilder

Constructs a fluent builder for the GetConnectionStatus operation.

source§

impl Client

source

pub fn get_default_patch_baseline(&self) -> GetDefaultPatchBaselineFluentBuilder

Constructs a fluent builder for the GetDefaultPatchBaseline operation.

source§

impl Client

source

pub fn get_deployable_patch_snapshot_for_instance( &self ) -> GetDeployablePatchSnapshotForInstanceFluentBuilder

Constructs a fluent builder for the GetDeployablePatchSnapshotForInstance operation.

source§

impl Client

source

pub fn get_document(&self) -> GetDocumentFluentBuilder

Constructs a fluent builder for the GetDocument operation.

source§

impl Client

source

pub fn get_inventory(&self) -> GetInventoryFluentBuilder

Constructs a fluent builder for the GetInventory operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_inventory_schema(&self) -> GetInventorySchemaFluentBuilder

Constructs a fluent builder for the GetInventorySchema operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_maintenance_window(&self) -> GetMaintenanceWindowFluentBuilder

Constructs a fluent builder for the GetMaintenanceWindow operation.

source§

impl Client

source

pub fn get_maintenance_window_execution( &self ) -> GetMaintenanceWindowExecutionFluentBuilder

Constructs a fluent builder for the GetMaintenanceWindowExecution operation.

source§

impl Client

source

pub fn get_maintenance_window_execution_task( &self ) -> GetMaintenanceWindowExecutionTaskFluentBuilder

Constructs a fluent builder for the GetMaintenanceWindowExecutionTask operation.

source§

impl Client

source

pub fn get_maintenance_window_execution_task_invocation( &self ) -> GetMaintenanceWindowExecutionTaskInvocationFluentBuilder

Constructs a fluent builder for the GetMaintenanceWindowExecutionTaskInvocation operation.

source§

impl Client

source

pub fn get_maintenance_window_task( &self ) -> GetMaintenanceWindowTaskFluentBuilder

Constructs a fluent builder for the GetMaintenanceWindowTask operation.

source§

impl Client

source

pub fn get_ops_item(&self) -> GetOpsItemFluentBuilder

Constructs a fluent builder for the GetOpsItem operation.

source§

impl Client

source

pub fn get_ops_metadata(&self) -> GetOpsMetadataFluentBuilder

Constructs a fluent builder for the GetOpsMetadata operation.

source§

impl Client

source

pub fn get_ops_summary(&self) -> GetOpsSummaryFluentBuilder

Constructs a fluent builder for the GetOpsSummary operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_parameter(&self) -> GetParameterFluentBuilder

Constructs a fluent builder for the GetParameter operation.

source§

impl Client

source

pub fn get_parameter_history(&self) -> GetParameterHistoryFluentBuilder

Constructs a fluent builder for the GetParameterHistory operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_parameters(&self) -> GetParametersFluentBuilder

Constructs a fluent builder for the GetParameters operation.

source§

impl Client

source

pub fn get_parameters_by_path(&self) -> GetParametersByPathFluentBuilder

Constructs a fluent builder for the GetParametersByPath operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_patch_baseline(&self) -> GetPatchBaselineFluentBuilder

Constructs a fluent builder for the GetPatchBaseline operation.

source§

impl Client

source

pub fn get_patch_baseline_for_patch_group( &self ) -> GetPatchBaselineForPatchGroupFluentBuilder

Constructs a fluent builder for the GetPatchBaselineForPatchGroup operation.

source§

impl Client

source

pub fn get_resource_policies(&self) -> GetResourcePoliciesFluentBuilder

Constructs a fluent builder for the GetResourcePolicies operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn get_service_setting(&self) -> GetServiceSettingFluentBuilder

Constructs a fluent builder for the GetServiceSetting operation.

source§

impl Client

source

pub fn label_parameter_version(&self) -> LabelParameterVersionFluentBuilder

Constructs a fluent builder for the LabelParameterVersion operation.

source§

impl Client

source

pub fn list_association_versions(&self) -> ListAssociationVersionsFluentBuilder

Constructs a fluent builder for the ListAssociationVersions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_associations(&self) -> ListAssociationsFluentBuilder

Constructs a fluent builder for the ListAssociations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_command_invocations(&self) -> ListCommandInvocationsFluentBuilder

Constructs a fluent builder for the ListCommandInvocations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_commands(&self) -> ListCommandsFluentBuilder

Constructs a fluent builder for the ListCommands operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_compliance_items(&self) -> ListComplianceItemsFluentBuilder

Constructs a fluent builder for the ListComplianceItems operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_compliance_summaries(&self) -> ListComplianceSummariesFluentBuilder

Constructs a fluent builder for the ListComplianceSummaries operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_document_metadata_history( &self ) -> ListDocumentMetadataHistoryFluentBuilder

Constructs a fluent builder for the ListDocumentMetadataHistory operation.

source§

impl Client

source

pub fn list_document_versions(&self) -> ListDocumentVersionsFluentBuilder

Constructs a fluent builder for the ListDocumentVersions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_documents(&self) -> ListDocumentsFluentBuilder

Constructs a fluent builder for the ListDocuments operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_inventory_entries(&self) -> ListInventoryEntriesFluentBuilder

Constructs a fluent builder for the ListInventoryEntries operation.

source§

impl Client

source

pub fn list_ops_item_events(&self) -> ListOpsItemEventsFluentBuilder

Constructs a fluent builder for the ListOpsItemEvents operation. This operation supports pagination; See into_paginator().

source§

impl Client

Constructs a fluent builder for the ListOpsItemRelatedItems operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_ops_metadata(&self) -> ListOpsMetadataFluentBuilder

Constructs a fluent builder for the ListOpsMetadata operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resource_compliance_summaries( &self ) -> ListResourceComplianceSummariesFluentBuilder

Constructs a fluent builder for the ListResourceComplianceSummaries operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resource_data_sync(&self) -> ListResourceDataSyncFluentBuilder

Constructs a fluent builder for the ListResourceDataSync operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn modify_document_permission( &self ) -> ModifyDocumentPermissionFluentBuilder

Constructs a fluent builder for the ModifyDocumentPermission operation.

source§

impl Client

source

pub fn put_compliance_items(&self) -> PutComplianceItemsFluentBuilder

Constructs a fluent builder for the PutComplianceItems operation.

source§

impl Client

source

pub fn put_inventory(&self) -> PutInventoryFluentBuilder

Constructs a fluent builder for the PutInventory operation.

source§

impl Client

source

pub fn put_parameter(&self) -> PutParameterFluentBuilder

Constructs a fluent builder for the PutParameter operation.

  • The fluent builder is configurable:
    • name(impl Into<String>) / set_name(Option<String>):

      The fully qualified name of the parameter that you want to add to the system. The fully qualified name includes the complete hierarchy of the parameter path and name. For parameters in a hierarchy, you must include a leading forward slash character (/) when you create or reference a parameter. For example: /Dev/DBServer/MySQL/db-string13

      Naming Constraints:

      • Parameter names are case sensitive.

      • A parameter name must be unique within an Amazon Web Services Region

      • A parameter name can’t be prefixed with “aws” or “ssm” (case-insensitive).

      • Parameter names can include only the following symbols and letters: a-zA-Z0-9_.-

        In addition, the slash character ( / ) is used to delineate hierarchies in parameter names. For example: /Dev/Production/East/Project-ABC/MyParameter

      • A parameter name can’t include spaces.

      • Parameter hierarchies are limited to a maximum depth of fifteen levels.

      For additional information about valid values for parameter names, see Creating Systems Manager parameters in the Amazon Web Services Systems Manager User Guide.

      The maximum length constraint of 2048 characters listed below includes 1037 characters reserved for internal use by Systems Manager. The maximum length for a parameter name that you create is 1011 characters. This includes the characters in the ARN that precede the name you specify, such as arn:aws:ssm:us-east-2:111122223333:parameter/.

    • description(impl Into<String>) / set_description(Option<String>):

      Information about the parameter that you want to add to the system. Optional but recommended.

      Don’t enter personally identifiable information in this field.

    • value(impl Into<String>) / set_value(Option<String>):

      The parameter value that you want to add to the system. Standard parameters have a value limit of 4 KB. Advanced parameters have a value limit of 8 KB.

      Parameters can’t be referenced or nested in the values of other parameters. You can’t include {{}} or {{ssm:parameter-name}} in a parameter value.

    • r#type(ParameterType) / set_type(Option<ParameterType>):

      The type of parameter that you want to add to the system.

      SecureString isn’t currently supported for CloudFormation templates.

      Items in a StringList must be separated by a comma (,). You can’t use other punctuation or special character to escape items in the list. If you have a parameter value that requires a comma, then use the String data type.

      Specifying a parameter type isn’t required when updating a parameter. You must specify a parameter type when creating a parameter.

    • key_id(impl Into<String>) / set_key_id(Option<String>):

      The Key Management Service (KMS) ID that you want to use to encrypt a parameter. Use a custom key for better security. Required for parameters that use the SecureString data type.

      If you don’t specify a key ID, the system uses the default key associated with your Amazon Web Services account which is not as secure as using a custom key.

      • To use a custom KMS key, choose the SecureString data type with the Key ID parameter.

    • overwrite(bool) / set_overwrite(Option<bool>):

      Overwrite an existing parameter. The default value is false.

    • allowed_pattern(impl Into<String>) / set_allowed_pattern(Option<String>):

      A regular expression used to validate the parameter value. For example, for String types with values restricted to numbers, you can specify the following: AllowedPattern=^\d+$

    • tags(Tag) / set_tags(Option<Vec<Tag>>):

      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 a Systems Manager parameter to identify the type of resource to which it applies, the environment, or the type of configuration data referenced by the parameter. In this case, you could specify the following key-value pairs:

      • Key=Resource,Value=S3bucket

      • Key=OS,Value=Windows

      • Key=ParameterType,Value=LicenseKey

      To add tags to an existing Systems Manager parameter, use the AddTagsToResource operation.

    • tier(ParameterTier) / set_tier(Option<ParameterTier>):

      The parameter tier to assign to a parameter.

      Parameter Store offers a standard tier and an advanced tier for parameters. Standard parameters have a content size limit of 4 KB and can’t be configured to use parameter policies. You can create a maximum of 10,000 standard parameters for each Region in an Amazon Web Services account. Standard parameters are offered at no additional cost.

      Advanced parameters have a content size limit of 8 KB and can be configured to use parameter policies. You can create a maximum of 100,000 advanced parameters for each Region in an Amazon Web Services account. Advanced parameters incur a charge. For more information, see Standard and advanced parameter tiers in the Amazon Web Services Systems Manager User Guide.

      You can change a standard parameter to an advanced parameter any time. But you can’t revert an advanced parameter to a standard parameter. Reverting an advanced parameter to a standard parameter would result in data loss because the system would truncate the size of the parameter from 8 KB to 4 KB. Reverting would also remove any policies attached to the parameter. Lastly, advanced parameters use a different form of encryption than standard parameters.

      If you no longer need an advanced parameter, or if you no longer want to incur charges for an advanced parameter, you must delete it and recreate it as a new standard parameter.

      Using the Default Tier Configuration

      In PutParameter requests, you can specify the tier to create the parameter in. Whenever you specify a tier in the request, Parameter Store creates or updates the parameter according to that request. However, if you don’t specify a tier in a request, Parameter Store assigns the tier based on the current Parameter Store default tier configuration.

      The default tier when you begin using Parameter Store is the standard-parameter tier. If you use the advanced-parameter tier, you can specify one of the following as the default:

      • Advanced: With this option, Parameter Store evaluates all requests as advanced parameters.

      • Intelligent-Tiering: With this option, Parameter Store evaluates each request to determine if the parameter is standard or advanced.

        If the request doesn’t include any options that require an advanced parameter, the parameter is created in the standard-parameter tier. If one or more options requiring an advanced parameter are included in the request, Parameter Store create a parameter in the advanced-parameter tier.

        This approach helps control your parameter-related costs by always creating standard parameters unless an advanced parameter is necessary.

      Options that require an advanced parameter include the following:

      • The content size of the parameter is more than 4 KB.

      • The parameter uses a parameter policy.

      • More than 10,000 parameters already exist in your Amazon Web Services account in the current Amazon Web Services Region.

      For more information about configuring the default tier option, see Specifying a default parameter tier in the Amazon Web Services Systems Manager User Guide.

    • policies(impl Into<String>) / set_policies(Option<String>):

      One or more policies to apply to a parameter. This operation takes a JSON array. Parameter Store, a capability of Amazon Web Services Systems Manager supports the following policy types:

      Expiration: This policy deletes the parameter after it expires. When you create the policy, you specify the expiration date. You can update the expiration date and time by updating the policy. Updating the parameter doesn’t affect the expiration date and time. When the expiration time is reached, Parameter Store deletes the parameter.

      ExpirationNotification: This policy initiates an event in Amazon CloudWatch Events that notifies you about the expiration. By using this policy, you can receive notification before or after the expiration time is reached, in units of days or hours.

      NoChangeNotification: This policy initiates a CloudWatch Events event if a parameter hasn’t been modified for a specified period of time. This policy type is useful when, for example, a secret needs to be changed within a period of time, but it hasn’t been changed.

      All existing policies are preserved until you send new policies or an empty policy. For more information about parameter policies, see Assigning parameter policies.

    • data_type(impl Into<String>) / set_data_type(Option<String>):

      The data type for a String parameter. Supported data types include plain text and Amazon Machine Image (AMI) IDs.

      The following data type values are supported.

      • text

      • aws:ec2:image

      • aws:ssm:integration

      When you create a String parameter and specify aws:ec2:image, Amazon Web Services Systems Manager validates the parameter value is in the required format, such as ami-12345abcdeEXAMPLE, and that the specified AMI is available in your Amazon Web Services account.

      If the action is successful, the service sends back an HTTP 200 response which indicates a successful PutParameter call for all cases except for data type aws:ec2:image. If you call PutParameter with aws:ec2:image data type, a successful HTTP 200 response does not guarantee that your parameter was successfully created or updated. The aws:ec2:image value is validated asynchronously, and the PutParameter call returns before the validation is complete. If you submit an invalid AMI value, the PutParameter operation will return success, but the asynchronous validation will fail and the parameter will not be created or updated. To monitor whether your aws:ec2:image parameters are created successfully, see Setting up notifications or trigger actions based on Parameter Store events. For more information about AMI format validation , see Native parameter support for Amazon Machine Image (AMI) IDs.

  • On success, responds with PutParameterOutput with field(s):
    • version(i64):

      The new version number of a parameter. If you edit a parameter value, Parameter Store automatically creates a new version and assigns this new version a unique ID. You can reference a parameter version ID in API operations or in Systems Manager documents (SSM documents). By default, if you don’t specify a specific version, the system returns the latest parameter value when a parameter is called.

    • tier(Option<ParameterTier>):

      The tier assigned to the parameter.

  • On failure, responds with SdkError<PutParameterError>
source§

impl Client

source

pub fn put_resource_policy(&self) -> PutResourcePolicyFluentBuilder

Constructs a fluent builder for the PutResourcePolicy operation.

source§

impl Client

source

pub fn register_default_patch_baseline( &self ) -> RegisterDefaultPatchBaselineFluentBuilder

Constructs a fluent builder for the RegisterDefaultPatchBaseline operation.

source§

impl Client

source

pub fn register_patch_baseline_for_patch_group( &self ) -> RegisterPatchBaselineForPatchGroupFluentBuilder

Constructs a fluent builder for the RegisterPatchBaselineForPatchGroup operation.

source§

impl Client

source

pub fn register_target_with_maintenance_window( &self ) -> RegisterTargetWithMaintenanceWindowFluentBuilder

Constructs a fluent builder for the RegisterTargetWithMaintenanceWindow operation.

source§

impl Client

source

pub fn register_task_with_maintenance_window( &self ) -> RegisterTaskWithMaintenanceWindowFluentBuilder

Constructs a fluent builder for the RegisterTaskWithMaintenanceWindow operation.

source§

impl Client

source

pub fn remove_tags_from_resource(&self) -> RemoveTagsFromResourceFluentBuilder

Constructs a fluent builder for the RemoveTagsFromResource operation.

  • The fluent builder is configurable:
    • resource_type(ResourceTypeForTagging) / set_resource_type(Option<ResourceTypeForTagging>):

      The type of resource from which you want to remove a tag.

      The ManagedInstance type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number . For example, mi-1a2b3c4d5e6f.

    • resource_id(impl Into<String>) / set_resource_id(Option<String>):

      The ID of the resource from which you want to remove tags. For example:

      ManagedInstance: mi-012345abcde

      MaintenanceWindow: mw-012345abcde

      Automation: example-c160-4567-8519-012345abcde

      PatchBaseline: pb-012345abcde

      OpsMetadata object: ResourceID for tagging is created from the Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from the strings that come after the word opsmetadata in the ARN. For example, an OpsMetadata object with an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a ResourceID of either aws/ssm/MyGroup/appmanager or /aws/ssm/MyGroup/appmanager.

      For the Document and Parameter values, use the name of the resource.

      The ManagedInstance type for this API operation is only for on-premises managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For example, mi-1a2b3c4d5e6f.

    • tag_keys(impl Into<String>) / set_tag_keys(Option<Vec<String>>):

      Tag keys that you want to remove from the specified resource.

  • On success, responds with RemoveTagsFromResourceOutput
  • On failure, responds with SdkError<RemoveTagsFromResourceError>
source§

impl Client

source

pub fn reset_service_setting(&self) -> ResetServiceSettingFluentBuilder

Constructs a fluent builder for the ResetServiceSetting operation.

  • The fluent builder is configurable:
    • setting_id(impl Into<String>) / set_setting_id(Option<String>):

      The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of the following.

      • /ssm/managed-instance/default-ec2-instance-management-role

      • /ssm/automation/customer-script-log-destination

      • /ssm/automation/customer-script-log-group-name

      • /ssm/documents/console/public-sharing-permission

      • /ssm/managed-instance/activation-tier

      • /ssm/opsinsights/opscenter

      • /ssm/parameter-store/default-parameter-tier

      • /ssm/parameter-store/high-throughput-enabled

  • On success, responds with ResetServiceSettingOutput with field(s):
  • On failure, responds with SdkError<ResetServiceSettingError>
source§

impl Client

source

pub fn resume_session(&self) -> ResumeSessionFluentBuilder

Constructs a fluent builder for the ResumeSession operation.

  • The fluent builder is configurable:
  • On success, responds with ResumeSessionOutput with field(s):
    • session_id(Option<String>):

      The ID of the session.

    • token_value(Option<String>):

      An encrypted token value containing session and caller information. Used to authenticate the connection to the managed node.

    • stream_url(Option<String>):

      A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and receive output from the managed node. Format: wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output).

      region represents the Region identifier for an Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as us-east-2 for the US East (Ohio) Region. For a list of supported region values, see the Region column in Systems Manager service endpoints in the Amazon Web Services General Reference.

      session-id represents the ID of a Session Manager session, such as 1a2b3c4dEXAMPLE.

  • On failure, responds with SdkError<ResumeSessionError>
source§

impl Client

source

pub fn send_automation_signal(&self) -> SendAutomationSignalFluentBuilder

Constructs a fluent builder for the SendAutomationSignal operation.

source§

impl Client

source

pub fn send_command(&self) -> SendCommandFluentBuilder

Constructs a fluent builder for the SendCommand operation.

source§

impl Client

source

pub fn start_associations_once(&self) -> StartAssociationsOnceFluentBuilder

Constructs a fluent builder for the StartAssociationsOnce operation.

source§

impl Client

source

pub fn start_automation_execution( &self ) -> StartAutomationExecutionFluentBuilder

Constructs a fluent builder for the StartAutomationExecution operation.

source§

impl Client

source

pub fn start_change_request_execution( &self ) -> StartChangeRequestExecutionFluentBuilder

Constructs a fluent builder for the StartChangeRequestExecution operation.

source§

impl Client

source

pub fn start_session(&self) -> StartSessionFluentBuilder

Constructs a fluent builder for the StartSession operation.

source§

impl Client

source

pub fn stop_automation_execution(&self) -> StopAutomationExecutionFluentBuilder

Constructs a fluent builder for the StopAutomationExecution operation.

source§

impl Client

source

pub fn terminate_session(&self) -> TerminateSessionFluentBuilder

Constructs a fluent builder for the TerminateSession operation.

source§

impl Client

source

pub fn unlabel_parameter_version(&self) -> UnlabelParameterVersionFluentBuilder

Constructs a fluent builder for the UnlabelParameterVersion operation.

source§

impl Client

source

pub fn update_association(&self) -> UpdateAssociationFluentBuilder

Constructs a fluent builder for the UpdateAssociation operation.

source§

impl Client

source

pub fn update_association_status(&self) -> UpdateAssociationStatusFluentBuilder

Constructs a fluent builder for the UpdateAssociationStatus operation.

source§

impl Client

source

pub fn update_document(&self) -> UpdateDocumentFluentBuilder

Constructs a fluent builder for the UpdateDocument operation.

source§

impl Client

source

pub fn update_document_default_version( &self ) -> UpdateDocumentDefaultVersionFluentBuilder

Constructs a fluent builder for the UpdateDocumentDefaultVersion operation.

source§

impl Client

source

pub fn update_document_metadata(&self) -> UpdateDocumentMetadataFluentBuilder

Constructs a fluent builder for the UpdateDocumentMetadata operation.

source§

impl Client

source

pub fn update_maintenance_window(&self) -> UpdateMaintenanceWindowFluentBuilder

Constructs a fluent builder for the UpdateMaintenanceWindow operation.

source§

impl Client

source

pub fn update_maintenance_window_target( &self ) -> UpdateMaintenanceWindowTargetFluentBuilder

Constructs a fluent builder for the UpdateMaintenanceWindowTarget operation.

source§

impl Client

source

pub fn update_maintenance_window_task( &self ) -> UpdateMaintenanceWindowTaskFluentBuilder

Constructs a fluent builder for the UpdateMaintenanceWindowTask operation.

source§

impl Client

source

pub fn update_managed_instance_role( &self ) -> UpdateManagedInstanceRoleFluentBuilder

Constructs a fluent builder for the UpdateManagedInstanceRole operation.

source§

impl Client

source

pub fn update_ops_item(&self) -> UpdateOpsItemFluentBuilder

Constructs a fluent builder for the UpdateOpsItem operation.

source§

impl Client

source

pub fn update_ops_metadata(&self) -> UpdateOpsMetadataFluentBuilder

Constructs a fluent builder for the UpdateOpsMetadata operation.

source§

impl Client

source

pub fn update_patch_baseline(&self) -> UpdatePatchBaselineFluentBuilder

Constructs a fluent builder for the UpdatePatchBaseline operation.

source§

impl Client

source

pub fn update_resource_data_sync(&self) -> UpdateResourceDataSyncFluentBuilder

Constructs a fluent builder for the UpdateResourceDataSync operation.

source§

impl Client

source

pub fn update_service_setting(&self) -> UpdateServiceSettingFluentBuilder

Constructs a fluent builder for the UpdateServiceSetting operation.

  • The fluent builder is configurable:
    • setting_id(impl Into<String>) / set_setting_id(Option<String>):

      The Amazon Resource Name (ARN) of the service setting to update. For example, arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. The setting ID can be one of the following.

      • /ssm/managed-instance/default-ec2-instance-management-role

      • /ssm/automation/customer-script-log-destination

      • /ssm/automation/customer-script-log-group-name

      • /ssm/documents/console/public-sharing-permission

      • /ssm/managed-instance/activation-tier

      • /ssm/opsinsights/opscenter

      • /ssm/parameter-store/default-parameter-tier

      • /ssm/parameter-store/high-throughput-enabled

      Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting should only be provided to administrators. Implement least privilege access when allowing individuals to configure or modify the Default Host Management Configuration.

    • setting_value(impl Into<String>) / set_setting_value(Option<String>):

      The new value to specify for the service setting. The following list specifies the available values for each setting.

      • /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role

      • /ssm/automation/customer-script-log-destination: CloudWatch

      • /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log group

      • /ssm/documents/console/public-sharing-permission: Enable or Disable

      • /ssm/managed-instance/activation-tier: standard or advanced

      • /ssm/opsinsights/opscenter: Enabled or Disabled

      • /ssm/parameter-store/default-parameter-tier: Standard, Advanced, Intelligent-Tiering

      • /ssm/parameter-store/high-throughput-enabled: true or false

  • On success, responds with UpdateServiceSettingOutput
  • On failure, responds with SdkError<UpdateServiceSettingError>
source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

Panics

This method will panic if the conf has retry or timeouts enabled without a sleep_impl. If you experience this panic, it can be fixed by setting the sleep_impl, or by disabling retries and timeouts.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more