Struct aws_sdk_ssm::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 values 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.

§Waiters

This client provides wait_until methods behind the Waiters trait. To use them, simply import the trait, and then call one of the wait_until methods. This will return a waiter fluent builder that takes various parameters, which are documented on the builder type. Once parameters have been provided, the wait method can be called to initiate waiting.

For example, if there was a wait_until_thing method, it could look like:

let result = client.wait_until_thing()
    .thing_id("someId")
    .wait(Duration::from_secs(120))
    .await;

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>):
      required: true

      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>):
      required: true

      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>>):
      required: true

      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>):
      required: false

      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>):
      required: false

      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>):
      required: true

      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 and multicloud 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>):
      required: false

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


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

      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>>):
      required: false

      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>>):
      required: false

      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.

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

      The name of the SSM Command document or Automation runbook that contains the configuration information for the managed node.

      You can specify Amazon Web Services-predefined documents, documents you created, or a document that is shared with you from another Amazon Web Services account.

      For Systems Manager documents (SSM documents) that are shared with you from other Amazon Web Services accounts, you must specify the complete SSM document ARN, in the following format:

      arn:partition:ssm:region:account-id:document/document-name

      For example:

      arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document

      For Amazon Web Services-predefined documents and SSM documents you created in your account, you only need to specify the document name. For example, AWS-ApplyPatchBaseline or My-Document.


    • document_version(impl Into<String>) / set_document_version(Option<String>):
      required: false

      The document version you want to associate with the targets. Can be a specific version or the default version.

      State Manager doesn’t support running associations that use a new version of a document if that document is shared from another account. State Manager always runs the default version of a document if shared from another account, even though the Systems Manager console shows that a new version was processed. If you want to run an association using a new version of a document shared form another account, you must set the document version to default.


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

      The managed node ID.

      InstanceId has been deprecated. To specify a managed node ID for an association, use the Targets parameter. Requests that include the parameter InstanceID with Systems Manager documents (SSM documents) that use schema version 2.0 or later will fail. In addition, if you use the parameter InstanceId, you can’t use the parameters AssociationName, DocumentVersion, MaxErrors, MaxConcurrency, OutputLocation, or ScheduleExpression. To use these parameters, you must use the Targets parameter.


    • parameters(impl Into<String>, Vec::<String>) / set_parameters(Option<HashMap::<String, Vec::<String>>>):
      required: false

      The parameters for the runtime configuration of the document.


    • targets(Target) / set_targets(Option<Vec::<Target>>):
      required: false

      The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of *. For more information about choosing targets for an association, see About targets and rate controls in State Manager associations in the Amazon Web Services Systems Manager User Guide.


    • schedule_expression(impl Into<String>) / set_schedule_expression(Option<String>):
      required: false

      A cron expression when the association will be applied to the targets.


    • output_location(InstanceAssociationOutputLocation) / set_output_location(Option<InstanceAssociationOutputLocation>):
      required: false

      An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output details of the request.


    • association_name(impl Into<String>) / set_association_name(Option<String>):
      required: false

      Specify a descriptive name for the association.


    • automation_target_parameter_name(impl Into<String>) / set_automation_target_parameter_name(Option<String>):
      required: false

      Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of Amazon Web Services Systems Manager.


    • max_errors(impl Into<String>) / set_max_errors(Option<String>):
      required: false

      The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

      Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won’t be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.


    • max_concurrency(impl Into<String>) / set_max_concurrency(Option<String>):
      required: false

      The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

      If a new managed node starts and attempts to run an association while Systems Manager is running MaxConcurrency associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified for MaxConcurrency.


    • compliance_severity(AssociationComplianceSeverity) / set_compliance_severity(Option<AssociationComplianceSeverity>):
      required: false

      The severity level to assign to the association.


    • sync_compliance(AssociationSyncCompliance) / set_sync_compliance(Option<AssociationSyncCompliance>):
      required: false

      The mode for generating association compliance. You can specify AUTO or MANUAL. In AUTO mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association is COMPLIANT. If the association execution doesn’t run successfully, the association is NON-COMPLIANT.

      In MANUAL mode, you must specify the AssociationId as a parameter for the PutComplianceItems API operation. In this case, compliance data isn’t managed by State Manager. It is managed by your direct call to the PutComplianceItems API operation.

      By default, all associations use AUTO mode.


    • apply_only_at_cron_interval(bool) / set_apply_only_at_cron_interval(Option<bool>):
      required: false

      By default, when you create a new association, the system runs it immediately after it is created and then according to the schedule you specified. Specify this option if you don’t want an association to run immediately after you create it. This parameter isn’t supported for rate expressions.


    • calendar_names(impl Into<String>) / set_calendar_names(Option<Vec::<String>>):
      required: false

      The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to gate your associations under. The associations only run when that change calendar is open. For more information, see Amazon Web Services Systems Manager Change Calendar.


    • target_locations(TargetLocation) / set_target_locations(Option<Vec::<TargetLocation>>):
      required: false

      A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the association. Use this action to create an association in multiple Regions and multiple accounts.


    • schedule_offset(i32) / set_schedule_offset(Option<i32>):
      required: false

      Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

      To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.


    • duration(i32) / set_duration(Option<i32>):
      required: false

      The number of hours the association can run before it is canceled. Duration applies to associations that are currently running, and any pending and in progress commands on all targets. If a target was taken offline for the association to run, it is made available again immediately, without a reboot.

      The Duration parameter applies only when both these conditions are true:

      • The association for which you specify a duration is cancelable according to the parameters of the SSM command document or Automation runbook associated with this execution.

      • The command specifies the ApplyOnlyAtCronInterval parameter, which means that the association doesn’t run immediately after it is created, but only according to the specified schedule.


    • target_maps(HashMap::<String, Vec::<String>>) / set_target_maps(Option<Vec::<HashMap::<String, Vec::<String>>>>):
      required: false

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can’t be specified together.


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

      Adds or overwrites one or more tags for a State Manager association. Tags are metadata that you can assign to your Amazon Web Services resources. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define.


    • alarm_configuration(AlarmConfiguration) / set_alarm_configuration(Option<AlarmConfiguration>):
      required: false

      The details for the CloudWatch alarm you want to apply to an automation or command.


  • On success, responds with CreateAssociationOutput with field(s):
  • On failure, responds with SdkError<CreateAssociationError>
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_item(&self) -> DeleteOpsItemFluentBuilder

Constructs a fluent builder for the DeleteOpsItem 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>>):
      required: false

      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>):
      required: false

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


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

      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_instance_properties( &self ) -> DescribeInstancePropertiesFluentBuilder

Constructs a fluent builder for the DescribeInstanceProperties 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>>):
      required: false

      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>):
      required: false

      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>):
      required: false

      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: true

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


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

      (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>):
      required: false

      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.

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

      The retrieved maintenance window ID.

    • window_task_id(Option<String>):

      The retrieved maintenance window task ID.

    • targets(Option<Vec::<Target>>):

      The targets where the task should run.

    • task_arn(Option<String>):

      The resource that the task used during execution. For RUN_COMMAND and AUTOMATION task types, the value of TaskArn is the SSM document name/ARN. For LAMBDA tasks, the value is the function name/ARN. For STEP_FUNCTIONS tasks, the value is the state machine ARN.

    • service_role_arn(Option<String>):

      The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for maintenance window Run Command tasks.

    • task_type(Option<MaintenanceWindowTaskType>):

      The type of task to run.

    • task_parameters(Option<HashMap::<String, MaintenanceWindowTaskParameterValueExpression>>):

      The parameters to pass to the task when it runs.

      TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

    • task_invocation_parameters(Option<MaintenanceWindowTaskInvocationParameters>):

      The parameters to pass to the task when it runs.

    • priority(i32):

      The priority of the task when it runs. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.

    • max_concurrency(Option<String>):

      The maximum number of targets allowed to run this task in parallel.

      For maintenance window tasks without a target specified, you can’t supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn’t affect the running of your task and can be ignored.

    • max_errors(Option<String>):

      The maximum number of errors allowed before the task stops being scheduled.

      For maintenance window tasks without a target specified, you can’t supply a value for this option. Instead, the system inserts a placeholder value of 1, which may be reported in the response to this command. This value doesn’t affect the running of your task and can be ignored.

    • logging_info(Option<LoggingInfo>):

      The location in Amazon Simple Storage Service (Amazon S3) where the task results are logged.

      LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters.

    • name(Option<String>):

      The retrieved task name.

    • description(Option<String>):

      The retrieved task description.

    • cutoff_behavior(Option<MaintenanceWindowTaskCutoffBehavior>):

      The action to take on tasks when the maintenance window cutoff time is reached. CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently running task invocations continue, but no new task invocations are started. For Run Command tasks, CANCEL_TASK means the system attempts to stop the task by sending a CancelCommand operation.

    • alarm_configuration(Option<AlarmConfiguration>):

      The details for the CloudWatch alarm you applied to your maintenance window task.

  • On failure, responds with SdkError<GetMaintenanceWindowTaskError>
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.

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

      The ID of the service setting to get. 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 GetServiceSettingOutput with field(s):
  • On failure, responds with SdkError<GetServiceSettingError>
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>):
      required: true

      The fully qualified name of the parameter that you want to add to the system.

      You can’t enter the Amazon Resource Name (ARN) for a parameter, only the parameter name itself.

      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>):
      required: false

      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>):
      required: true

      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>):
      required: false

      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>):
      required: false

      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>):
      required: false

      Overwrite an existing parameter. The default value is false.


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

      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>>):
      required: false

      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>):
      required: false

      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 Managing 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>):
      required: false

      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>):
      required: false

      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 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>):
      required: true

      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>):
      required: true

      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>>):
      required: true

      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>):
      required: true

      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.

  • The fluent builder is configurable:
  • On success, responds with StartSessionOutput 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. This token is used to authenticate the connection to the managed node, and is valid only long enough to ensure the connection is successful. Never share your session’s token.

    • 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 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<StartSessionError>
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.

  • The fluent builder is configurable:
    • association_id(impl Into<String>) / set_association_id(Option<String>):
      required: true

      The ID of the association you want to update.


    • parameters(impl Into<String>, Vec::<String>) / set_parameters(Option<HashMap::<String, Vec::<String>>>):
      required: false

      The parameters you want to update for the association. If you create a parameter using Parameter Store, a capability of Amazon Web Services Systems Manager, you can reference the parameter using {{ssm:parameter-name}}.


    • document_version(impl Into<String>) / set_document_version(Option<String>):
      required: false

      The document version you want update for the association.

      State Manager doesn’t support running associations that use a new version of a document if that document is shared from another account. State Manager always runs the default version of a document if shared from another account, even though the Systems Manager console shows that a new version was processed. If you want to run an association using a new version of a document shared form another account, you must set the document version to default.


    • schedule_expression(impl Into<String>) / set_schedule_expression(Option<String>):
      required: false

      The cron expression used to schedule the association that you want to update.


    • output_location(InstanceAssociationOutputLocation) / set_output_location(Option<InstanceAssociationOutputLocation>):
      required: false

      An S3 bucket where you want to store the results of this request.


    • name(impl Into<String>) / set_name(Option<String>):
      required: false

      The name of the SSM Command document or Automation runbook that contains the configuration information for the managed node.

      You can specify Amazon Web Services-predefined documents, documents you created, or a document that is shared with you from another account.

      For Systems Manager document (SSM document) that are shared with you from other Amazon Web Services accounts, you must specify the complete SSM document ARN, in the following format:

      arn:aws:ssm:region:account-id:document/document-name

      For example:

      arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document

      For Amazon Web Services-predefined documents and SSM documents you created in your account, you only need to specify the document name. For example, AWS-ApplyPatchBaseline or My-Document.


    • targets(Target) / set_targets(Option<Vec::<Target>>):
      required: false

      The targets of the association.


    • association_name(impl Into<String>) / set_association_name(Option<String>):
      required: false

      The name of the association that you want to update.


    • association_version(impl Into<String>) / set_association_version(Option<String>):
      required: false

      This parameter is provided for concurrency control purposes. You must specify the latest association version in the service. If you want to ensure that this request succeeds, either specify $LATEST, or omit this parameter.


    • automation_target_parameter_name(impl Into<String>) / set_automation_target_parameter_name(Option<String>):
      required: false

      Choose the parameter that will define how your automation will branch out. This target is required for associations that use an Automation runbook and target resources by using rate controls. Automation is a capability of Amazon Web Services Systems Manager.


    • max_errors(impl Into<String>) / set_max_errors(Option<String>):
      required: false

      The number of errors that are allowed before the system stops sending requests to run the association on additional targets. You can specify either an absolute number of errors, for example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, the system stops sending requests when the fourth error is received. If you specify 0, then the system stops sending requests after the first error is returned. If you run an association on 50 managed nodes and set MaxError to 10%, then the system stops sending the request when the sixth error is received.

      Executions that are already running an association when MaxErrors is reached are allowed to complete, but some of these executions may fail as well. If you need to ensure that there won’t be more than max-errors failed executions, set MaxConcurrency to 1 so that executions proceed one at a time.


    • max_concurrency(impl Into<String>) / set_max_concurrency(Option<String>):
      required: false

      The maximum number of targets allowed to run the association at the same time. You can specify a number, for example 10, or a percentage of the target set, for example 10%. The default value is 100%, which means all targets run the association at the same time.

      If a new managed node starts and attempts to run an association while Systems Manager is running MaxConcurrency associations, the association is allowed to run. During the next association interval, the new managed node will process its association within the limit specified for MaxConcurrency.


    • compliance_severity(AssociationComplianceSeverity) / set_compliance_severity(Option<AssociationComplianceSeverity>):
      required: false

      The severity level to assign to the association.


    • sync_compliance(AssociationSyncCompliance) / set_sync_compliance(Option<AssociationSyncCompliance>):
      required: false

      The mode for generating association compliance. You can specify AUTO or MANUAL. In AUTO mode, the system uses the status of the association execution to determine the compliance status. If the association execution runs successfully, then the association is COMPLIANT. If the association execution doesn’t run successfully, the association is NON-COMPLIANT.

      In MANUAL mode, you must specify the AssociationId as a parameter for the PutComplianceItems API operation. In this case, compliance data isn’t managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the PutComplianceItems API operation.

      By default, all associations use AUTO mode.


    • apply_only_at_cron_interval(bool) / set_apply_only_at_cron_interval(Option<bool>):
      required: false

      By default, when you update an association, the system runs it immediately after it is updated and then according to the schedule you specified. Specify this option if you don’t want an association to run immediately after you update it. This parameter isn’t supported for rate expressions.

      If you chose this option when you created an association and later you edit that association or you make changes to the SSM document on which that association is based (by using the Documents page in the console), State Manager applies the association at the next specified cron interval. For example, if you chose the Latest version of an SSM document when you created an association and you edit the association by choosing a different document version on the Documents page, State Manager applies the association at the next specified cron interval if you previously selected this option. If this option wasn’t selected, State Manager immediately runs the association.

      You can reset this option. To do so, specify the no-apply-only-at-cron-interval parameter when you update the association from the command line. This parameter forces the association to run immediately after updating it and according to the interval specified.


    • calendar_names(impl Into<String>) / set_calendar_names(Option<Vec::<String>>):
      required: false

      The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to gate your associations under. The associations only run when that change calendar is open. For more information, see Amazon Web Services Systems Manager Change Calendar.


    • target_locations(TargetLocation) / set_target_locations(Option<Vec::<TargetLocation>>):
      required: false

      A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the association. Use this action to update an association in multiple Regions and multiple accounts.


    • schedule_offset(i32) / set_schedule_offset(Option<i32>):
      required: false

      Number of days to wait after the scheduled day to run an association. For example, if you specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 to run the association each Sunday after the second Thursday of the month. For more information about cron schedules for associations, see Reference: Cron and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

      To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This option tells the system not to run an association immediately after you create it.


    • duration(i32) / set_duration(Option<i32>):
      required: false

      The number of hours the association can run before it is canceled. Duration applies to associations that are currently running, and any pending and in progress commands on all targets. If a target was taken offline for the association to run, it is made available again immediately, without a reboot.

      The Duration parameter applies only when both these conditions are true:

      • The association for which you specify a duration is cancelable according to the parameters of the SSM command document or Automation runbook associated with this execution.

      • The command specifies the ApplyOnlyAtCronInterval parameter, which means that the association doesn’t run immediately after it is updated, but only according to the specified schedule.


    • target_maps(HashMap::<String, Vec::<String>>) / set_target_maps(Option<Vec::<HashMap::<String, Vec::<String>>>>):
      required: false

      A key-value mapping of document parameters to target resources. Both Targets and TargetMaps can’t be specified together.


    • alarm_configuration(AlarmConfiguration) / set_alarm_configuration(Option<AlarmConfiguration>):
      required: false

      The details for the CloudWatch alarm you want to apply to an automation or command.


  • On success, responds with UpdateAssociationOutput with field(s):
  • On failure, responds with SdkError<UpdateAssociationError>
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>):
      required: true

      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>):
      required: true

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

      • For /ssm/managed-instance/default-ec2-instance-management-role, enter the name of an IAM role.

      • For /ssm/automation/customer-script-log-destination, enter CloudWatch.

      • For /ssm/automation/customer-script-log-group-name, enter the name of an Amazon CloudWatch Logs log group.

      • For /ssm/documents/console/public-sharing-permission, enter Enable or Disable.

      • For /ssm/managed-instance/activation-tier, enter standard or advanced.

      • For /ssm/opsinsights/opscenter, enter Enabled or Disabled.

      • For /ssm/parameter-store/default-parameter-tier, enter Standard, Advanced, or Intelligent-Tiering

      • For /ssm/parameter-store/high-throughput-enabled, enter 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 in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

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.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

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
source§

impl Waiters for Client

Auto Trait Implementations§

§

impl Freeze for Client

§

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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
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