We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.WorkSpacesThinClient

Inherits:
AWS.Service show all
Identifier:
workspacesthinclient
API Version:
2023-08-22
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Amazon WorkSpaces Thin Client is an affordable device built to work with Amazon Web Services End User Computing (EUC) virtual desktops to provide users with a complete cloud desktop solution. WorkSpaces Thin Client is a compact device designed to connect up to two monitors and USB devices like a keyboard, mouse, headset, and webcam. To maximize endpoint security, WorkSpaces Thin Client devices do not allow local data storage or installation of unapproved applications. The WorkSpaces Thin Client device ships preloaded with device management software.

You can use these APIs to complete WorkSpaces Thin Client tasks, such as creating environments or viewing devices. For more information about WorkSpaces Thin Client, including the required permissions to use the service, see the Amazon WorkSpaces Thin Client Administrator Guide. For more information about using the Command Line Interface (CLI) to manage your WorkSpaces Thin Client resources, see the WorkSpaces Thin Client section of the CLI Reference.

Sending a Request Using WorkSpacesThinClient

var workspacesthinclient = new AWS.WorkSpacesThinClient();
workspacesthinclient.createEnvironment(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the WorkSpacesThinClient object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var workspacesthinclient = new AWS.WorkSpacesThinClient({apiVersion: '2023-08-22'});

You can also set the API version globally in AWS.config.apiVersions using the workspacesthinclient service identifier:

AWS.config.apiVersions = {
  workspacesthinclient: '2023-08-22',
  // other service API versions
};

var workspacesthinclient = new AWS.WorkSpacesThinClient();

Version:

  • 2023-08-22

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.WorkSpacesThinClient(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a WorkSpacesThinClient object

var workspacesthinclient = new AWS.WorkSpacesThinClient({apiVersion: '2023-08-22'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.WorkSpacesThinClient.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.WorkSpacesThinClient.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.WorkSpacesThinClient.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

createEnvironment(params = {}, callback) ⇒ AWS.Request

Creates an environment for your thin client devices.

Service Reference:

Examples:

Calling the createEnvironment operation

var params = {
  desktopArn: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  desiredSoftwareSetId: 'STRING_VALUE',
  desktopEndpoint: 'STRING_VALUE',
  kmsKeyArn: 'STRING_VALUE',
  maintenanceWindow: {
    applyTimeOf: UTC | DEVICE,
    daysOfTheWeek: [
      MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | SUNDAY,
      /* more items */
    ],
    endTimeHour: 'NUMBER_VALUE',
    endTimeMinute: 'NUMBER_VALUE',
    startTimeHour: 'NUMBER_VALUE',
    startTimeMinute: 'NUMBER_VALUE',
    type: SYSTEM | CUSTOM
  },
  name: 'STRING_VALUE',
  softwareSetUpdateMode: USE_LATEST | USE_DESIRED,
  softwareSetUpdateSchedule: USE_MAINTENANCE_WINDOW | APPLY_IMMEDIATELY,
  tags: {
    '<String>': 'STRING_VALUE',
    /* '<String>': ... */
  }
};
workspacesthinclient.createEnvironment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • name — (String)

      The name for the environment.

    • desktopArn — (String)

      The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

    • desktopEndpoint — (String)

      The URL for the identity provider login (only for environments that use AppStream 2.0).

    • softwareSetUpdateSchedule — (String)

      An option to define if software updates should be applied within a maintenance window.

      Possible values include:
      • "USE_MAINTENANCE_WINDOW"
      • "APPLY_IMMEDIATELY"
    • maintenanceWindow — (map)

      A specification for a time window to apply software updates.

      • type — (String)

        An option to select the default or custom maintenance window.

        Possible values include:
        • "SYSTEM"
        • "CUSTOM"
      • startTimeHour — (Integer)

        The hour for the maintenance window start (00-23).

      • startTimeMinute — (Integer)

        The minutes past the hour for the maintenance window start (00-59).

      • endTimeHour — (Integer)

        The hour for the maintenance window end (00-23).

      • endTimeMinute — (Integer)

        The minutes for the maintenance window end (00-59).

      • daysOfTheWeek — (Array<String>)

        The days of the week during which the maintenance window is open.

      • applyTimeOf — (String)

        The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

        Possible values include:
        • "UTC"
        • "DEVICE"
    • softwareSetUpdateMode — (String)

      An option to define which software updates to apply.

      Possible values include:
      • "USE_LATEST"
      • "USE_DESIRED"
    • desiredSoftwareSetId — (String)

      The ID of the software set to apply.

    • kmsKeyArn — (String)

      The Amazon Resource Name (ARN) of the Key Management Service key to use to encrypt the environment.

    • clientToken — (String)

      Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

      If you don't provide this value, then Amazon Web Services generates a random one for you.

      If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

      If a token is not provided, the SDK will use a version 4 UUID.
    • tags — (map<String>)

      A map of the key-value pairs of the tag or tags to assign to the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • environment — (map)

        Describes an environment.

        • id — (String)

          The ID of the environment.

        • name — (String)

          The name of the environment.

        • desktopArn — (String)

          The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

        • desktopEndpoint — (String)

          The URL for the identity provider login (only for environments that use AppStream 2.0).

        • desktopType — (String)

          The type of streaming desktop for the environment.

          Possible values include:
          • "workspaces"
          • "appstream"
          • "workspaces-web"
        • activationCode — (String)

          The activation code to register a device to the environment.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • maintenanceWindow — (map)

          A specification for a time window to apply software updates.

          • type — (String)

            An option to select the default or custom maintenance window.

            Possible values include:
            • "SYSTEM"
            • "CUSTOM"
          • startTimeHour — (Integer)

            The hour for the maintenance window start (00-23).

          • startTimeMinute — (Integer)

            The minutes past the hour for the maintenance window start (00-59).

          • endTimeHour — (Integer)

            The hour for the maintenance window end (00-23).

          • endTimeMinute — (Integer)

            The minutes for the maintenance window end (00-59).

          • daysOfTheWeek — (Array<String>)

            The days of the week during which the maintenance window is open.

          • applyTimeOf — (String)

            The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

            Possible values include:
            • "UTC"
            • "DEVICE"
        • softwareSetUpdateMode — (String)

          An option to define which software updates to apply.

          Possible values include:
          • "USE_LATEST"
          • "USE_DESIRED"
        • desiredSoftwareSetId — (String)

          The ID of the software set to apply.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed.

        • createdAt — (Date)

          The timestamp of when the environment was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the environment.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDevice(params = {}, callback) ⇒ AWS.Request

Deletes a thin client device.

Service Reference:

Examples:

Calling the deleteDevice operation

var params = {
  id: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE'
};
workspacesthinclient.deleteDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the device to delete.

    • clientToken — (String)

      Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

      If you don't provide this value, then Amazon Web Services generates a random one for you.

      If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteEnvironment(params = {}, callback) ⇒ AWS.Request

Deletes an environment.

Service Reference:

Examples:

Calling the deleteEnvironment operation

var params = {
  id: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE'
};
workspacesthinclient.deleteEnvironment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the environment to delete.

    • clientToken — (String)

      Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

      If you don't provide this value, then Amazon Web Services generates a random one for you.

      If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterDevice(params = {}, callback) ⇒ AWS.Request

Deregisters a thin client device.

Service Reference:

Examples:

Calling the deregisterDevice operation

var params = {
  id: 'STRING_VALUE', /* required */
  clientToken: 'STRING_VALUE',
  targetDeviceStatus: DEREGISTERED | ARCHIVED
};
workspacesthinclient.deregisterDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the device to deregister.

    • targetDeviceStatus — (String)

      The desired new status for the device.

      Possible values include:
      • "DEREGISTERED"
      • "ARCHIVED"
    • clientToken — (String)

      Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

      If you don't provide this value, then Amazon Web Services generates a random one for you.

      If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

      If a token is not provided, the SDK will use a version 4 UUID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDevice(params = {}, callback) ⇒ AWS.Request

Returns information for a thin client device.

Service Reference:

Examples:

Calling the getDevice operation

var params = {
  id: 'STRING_VALUE' /* required */
};
workspacesthinclient.getDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the device for which to return information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • device — (map)

        Describes an device.

        • id — (String)

          The ID of the device.

        • serialNumber — (String)

          The hardware serial number of the device.

        • name — (String)

          The name of the device.

        • model — (String)

          The model number of the device.

        • environmentId — (String)

          The ID of the environment the device is associated with.

        • status — (String)

          The status of the device.

          Possible values include:
          • "REGISTERED"
          • "DEREGISTERING"
          • "DEREGISTERED"
          • "ARCHIVED"
        • currentSoftwareSetId — (String)

          The ID of the software set currently installed on the device.

        • currentSoftwareSetVersion — (String)

          The version of the software set currently installed on the device.

        • desiredSoftwareSetId — (String)

          The ID of the software set which the device has been set to.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed on the device.

        • pendingSoftwareSetVersion — (String)

          The version of the software set that is pending to be installed on the device.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • softwareSetComplianceStatus — (String)

          Describes if the software currently installed on the device is a supported version.

          Possible values include:
          • "NONE"
          • "COMPLIANT"
          • "NOT_COMPLIANT"
        • softwareSetUpdateStatus — (String)

          Describes if the device has a supported version of software installed.

          Possible values include:
          • "AVAILABLE"
          • "IN_PROGRESS"
          • "UP_TO_DATE"
        • lastConnectedAt — (Date)

          The timestamp of the most recent session on the device.

        • lastPostureAt — (Date)

          The timestamp of the most recent check-in of the device.

        • createdAt — (Date)

          The timestamp of when the device was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the device.

        • kmsKeyArn — (String)

          The Amazon Resource Name (ARN) of the Key Management Service key used to encrypt the device.

        • tags — (map<String>)

          The tag keys and optional values for the resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getEnvironment(params = {}, callback) ⇒ AWS.Request

Returns information for an environment.

Service Reference:

Examples:

Calling the getEnvironment operation

var params = {
  id: 'STRING_VALUE' /* required */
};
workspacesthinclient.getEnvironment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the environment for which to return information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • environment — (map)

        Describes an environment.

        • id — (String)

          The ID of the environment.

        • name — (String)

          The name of the environment.

        • desktopArn — (String)

          The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

        • desktopEndpoint — (String)

          The URL for the identity provider login (only for environments that use AppStream 2.0).

        • desktopType — (String)

          The type of streaming desktop for the environment.

          Possible values include:
          • "workspaces"
          • "appstream"
          • "workspaces-web"
        • activationCode — (String)

          The activation code to register a device to the environment.

        • registeredDevicesCount — (Integer)

          The number of devices registered to the environment.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • maintenanceWindow — (map)

          A specification for a time window to apply software updates.

          • type — (String)

            An option to select the default or custom maintenance window.

            Possible values include:
            • "SYSTEM"
            • "CUSTOM"
          • startTimeHour — (Integer)

            The hour for the maintenance window start (00-23).

          • startTimeMinute — (Integer)

            The minutes past the hour for the maintenance window start (00-59).

          • endTimeHour — (Integer)

            The hour for the maintenance window end (00-23).

          • endTimeMinute — (Integer)

            The minutes for the maintenance window end (00-59).

          • daysOfTheWeek — (Array<String>)

            The days of the week during which the maintenance window is open.

          • applyTimeOf — (String)

            The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

            Possible values include:
            • "UTC"
            • "DEVICE"
        • softwareSetUpdateMode — (String)

          An option to define which software updates to apply.

          Possible values include:
          • "USE_LATEST"
          • "USE_DESIRED"
        • desiredSoftwareSetId — (String)

          The ID of the software set to apply.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed.

        • pendingSoftwareSetVersion — (String)

          The version of the software set that is pending to be installed.

        • softwareSetComplianceStatus — (String)

          Describes if the software currently installed on all devices in the environment is a supported version.

          Possible values include:
          • "NO_REGISTERED_DEVICES"
          • "COMPLIANT"
          • "NOT_COMPLIANT"
        • createdAt — (Date)

          The timestamp of when the environment was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the environment.

        • kmsKeyArn — (String)

          The Amazon Resource Name (ARN) of the Key Management Service key used to encrypt the environment.

        • tags — (map<String>)

          The tag keys and optional values for the resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSoftwareSet(params = {}, callback) ⇒ AWS.Request

Returns information for a software set.

Service Reference:

Examples:

Calling the getSoftwareSet operation

var params = {
  id: 'STRING_VALUE' /* required */
};
workspacesthinclient.getSoftwareSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the software set for which to return information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • softwareSet — (map)

        Describes a software set.

        • id — (String)

          The ID of the software set.

        • version — (String)

          The version of the software set.

        • releasedAt — (Date)

          The timestamp of when the software set was released.

        • supportedUntil — (Date)

          The timestamp of the end of support for the software set.

        • validationStatus — (String)

          An option to define if the software set has been validated.

          Possible values include:
          • "VALIDATED"
          • "NOT_VALIDATED"
        • software — (Array<map>)

          A list of the software components in the software set.

          • name — (String)

            The name of the software component.

          • version — (String)

            The version of the software component.

        • arn — (String)

          The Amazon Resource Name (ARN) of the software set.

        • tags — (map<String>)

          The tag keys and optional values for the resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listDevices(params = {}, callback) ⇒ AWS.Request

Returns a list of thin client devices.

Service Reference:

Examples:

Calling the listDevices operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
workspacesthinclient.listDevices(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • nextToken — (String)

      If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

    • maxResults — (Integer)

      The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results.

      This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • devices — (Array<map>)

        Describes devices.

        • id — (String)

          The ID of the device.

        • serialNumber — (String)

          The hardware serial number of the device.

        • name — (String)

          The name of the device.

        • model — (String)

          The model number of the device.

        • environmentId — (String)

          The ID of the environment the device is associated with.

        • status — (String)

          The status of the device.

          Possible values include:
          • "REGISTERED"
          • "DEREGISTERING"
          • "DEREGISTERED"
          • "ARCHIVED"
        • currentSoftwareSetId — (String)

          The ID of the software set currently installed on the device.

        • desiredSoftwareSetId — (String)

          The ID of the software set which the device has been set to.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed on the device.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • lastConnectedAt — (Date)

          The timestamp of the most recent session on the device.

        • lastPostureAt — (Date)

          The timestamp of the most recent check-in of the device.

        • createdAt — (Date)

          The timestamp of when the device was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the device.

      • nextToken — (String)

        If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listEnvironments(params = {}, callback) ⇒ AWS.Request

Returns a list of environments.

Service Reference:

Examples:

Calling the listEnvironments operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
workspacesthinclient.listEnvironments(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • nextToken — (String)

      If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

    • maxResults — (Integer)

      The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results.

      This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • environments — (Array<map>)

        Describes environments.

        • id — (String)

          The ID of the environment.

        • name — (String)

          The name of the environment.

        • desktopArn — (String)

          The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

        • desktopEndpoint — (String)

          The URL for the identity provider login (only for environments that use AppStream 2.0).

        • desktopType — (String)

          The type of streaming desktop for the environment.

          Possible values include:
          • "workspaces"
          • "appstream"
          • "workspaces-web"
        • activationCode — (String)

          The activation code to register a device to the environment.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • maintenanceWindow — (map)

          A specification for a time window to apply software updates.

          • type — (String)

            An option to select the default or custom maintenance window.

            Possible values include:
            • "SYSTEM"
            • "CUSTOM"
          • startTimeHour — (Integer)

            The hour for the maintenance window start (00-23).

          • startTimeMinute — (Integer)

            The minutes past the hour for the maintenance window start (00-59).

          • endTimeHour — (Integer)

            The hour for the maintenance window end (00-23).

          • endTimeMinute — (Integer)

            The minutes for the maintenance window end (00-59).

          • daysOfTheWeek — (Array<String>)

            The days of the week during which the maintenance window is open.

          • applyTimeOf — (String)

            The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

            Possible values include:
            • "UTC"
            • "DEVICE"
        • softwareSetUpdateMode — (String)

          An option to define which software updates to apply.

          Possible values include:
          • "USE_LATEST"
          • "USE_DESIRED"
        • desiredSoftwareSetId — (String)

          The ID of the software set to apply.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed.

        • createdAt — (Date)

          The timestamp of when the environment was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the environment.

      • nextToken — (String)

        If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSoftwareSets(params = {}, callback) ⇒ AWS.Request

Returns a list of software sets.

Service Reference:

Examples:

Calling the listSoftwareSets operation

var params = {
  maxResults: 'NUMBER_VALUE',
  nextToken: 'STRING_VALUE'
};
workspacesthinclient.listSoftwareSets(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • nextToken — (String)

      If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

    • maxResults — (Integer)

      The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results.

      This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • softwareSets — (Array<map>)

        Describes software sets.

        • id — (String)

          The ID of the software set.

        • version — (String)

          The version of the software set.

        • releasedAt — (Date)

          The timestamp of when the software set was released.

        • supportedUntil — (Date)

          The timestamp of the end of support for the software set.

        • validationStatus — (String)

          An option to define if the software set has been validated.

          Possible values include:
          • "VALIDATED"
          • "NOT_VALIDATED"
        • arn — (String)

          The Amazon Resource Name (ARN) of the software set.

      • nextToken — (String)

        If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Returns a list of tags for a resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  resourceArn: 'STRING_VALUE' /* required */
};
workspacesthinclient.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tags — (map<String>)

        A map of the key-value pairs for the tag or tags assigned to the specified resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Assigns one or more tags (key-value pairs) to the specified resource.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tags: { /* required */
    '<String>': 'STRING_VALUE',
    /* '<String>': ... */
  }
};
workspacesthinclient.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to tag.

    • tags — (map<String>)

      A map of the key-value pairs of the tag or tags to assign to the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes a tag or tags from a resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceArn: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
workspacesthinclient.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource that you want to untag.

    • tagKeys — (Array<String>)

      The keys of the key-value pairs for the tag or tags you want to remove from the specified resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDevice(params = {}, callback) ⇒ AWS.Request

Updates a thin client device.

Service Reference:

Examples:

Calling the updateDevice operation

var params = {
  id: 'STRING_VALUE', /* required */
  desiredSoftwareSetId: 'STRING_VALUE',
  name: 'STRING_VALUE',
  softwareSetUpdateSchedule: USE_MAINTENANCE_WINDOW | APPLY_IMMEDIATELY
};
workspacesthinclient.updateDevice(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the device to update.

    • name — (String)

      The name of the device to update.

    • desiredSoftwareSetId — (String)

      The ID of the software set to apply.

    • softwareSetUpdateSchedule — (String)

      An option to define if software updates should be applied within a maintenance window.

      Possible values include:
      • "USE_MAINTENANCE_WINDOW"
      • "APPLY_IMMEDIATELY"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • device — (map)

        Describes a device.

        • id — (String)

          The ID of the device.

        • serialNumber — (String)

          The hardware serial number of the device.

        • name — (String)

          The name of the device.

        • model — (String)

          The model number of the device.

        • environmentId — (String)

          The ID of the environment the device is associated with.

        • status — (String)

          The status of the device.

          Possible values include:
          • "REGISTERED"
          • "DEREGISTERING"
          • "DEREGISTERED"
          • "ARCHIVED"
        • currentSoftwareSetId — (String)

          The ID of the software set currently installed on the device.

        • desiredSoftwareSetId — (String)

          The ID of the software set which the device has been set to.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed on the device.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • lastConnectedAt — (Date)

          The timestamp of the most recent session on the device.

        • lastPostureAt — (Date)

          The timestamp of the most recent check-in of the device.

        • createdAt — (Date)

          The timestamp of when the device was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the device.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateEnvironment(params = {}, callback) ⇒ AWS.Request

Updates an environment.

Service Reference:

Examples:

Calling the updateEnvironment operation

var params = {
  id: 'STRING_VALUE', /* required */
  desiredSoftwareSetId: 'STRING_VALUE',
  desktopArn: 'STRING_VALUE',
  desktopEndpoint: 'STRING_VALUE',
  maintenanceWindow: {
    applyTimeOf: UTC | DEVICE,
    daysOfTheWeek: [
      MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | SUNDAY,
      /* more items */
    ],
    endTimeHour: 'NUMBER_VALUE',
    endTimeMinute: 'NUMBER_VALUE',
    startTimeHour: 'NUMBER_VALUE',
    startTimeMinute: 'NUMBER_VALUE',
    type: SYSTEM | CUSTOM
  },
  name: 'STRING_VALUE',
  softwareSetUpdateMode: USE_LATEST | USE_DESIRED,
  softwareSetUpdateSchedule: USE_MAINTENANCE_WINDOW | APPLY_IMMEDIATELY
};
workspacesthinclient.updateEnvironment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the environment to update.

    • name — (String)

      The name of the environment to update.

    • desktopArn — (String)

      The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

    • desktopEndpoint — (String)

      The URL for the identity provider login (only for environments that use AppStream 2.0).

    • softwareSetUpdateSchedule — (String)

      An option to define if software updates should be applied within a maintenance window.

      Possible values include:
      • "USE_MAINTENANCE_WINDOW"
      • "APPLY_IMMEDIATELY"
    • maintenanceWindow — (map)

      A specification for a time window to apply software updates.

      • type — (String)

        An option to select the default or custom maintenance window.

        Possible values include:
        • "SYSTEM"
        • "CUSTOM"
      • startTimeHour — (Integer)

        The hour for the maintenance window start (00-23).

      • startTimeMinute — (Integer)

        The minutes past the hour for the maintenance window start (00-59).

      • endTimeHour — (Integer)

        The hour for the maintenance window end (00-23).

      • endTimeMinute — (Integer)

        The minutes for the maintenance window end (00-59).

      • daysOfTheWeek — (Array<String>)

        The days of the week during which the maintenance window is open.

      • applyTimeOf — (String)

        The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

        Possible values include:
        • "UTC"
        • "DEVICE"
    • softwareSetUpdateMode — (String)

      An option to define which software updates to apply.

      Possible values include:
      • "USE_LATEST"
      • "USE_DESIRED"
    • desiredSoftwareSetId — (String)

      The ID of the software set to apply.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • environment — (map)

        Describes an environment.

        • id — (String)

          The ID of the environment.

        • name — (String)

          The name of the environment.

        • desktopArn — (String)

          The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Web, or AppStream 2.0.

        • desktopEndpoint — (String)

          The URL for the identity provider login (only for environments that use AppStream 2.0).

        • desktopType — (String)

          The type of streaming desktop for the environment.

          Possible values include:
          • "workspaces"
          • "appstream"
          • "workspaces-web"
        • activationCode — (String)

          The activation code to register a device to the environment.

        • softwareSetUpdateSchedule — (String)

          An option to define if software updates should be applied within a maintenance window.

          Possible values include:
          • "USE_MAINTENANCE_WINDOW"
          • "APPLY_IMMEDIATELY"
        • maintenanceWindow — (map)

          A specification for a time window to apply software updates.

          • type — (String)

            An option to select the default or custom maintenance window.

            Possible values include:
            • "SYSTEM"
            • "CUSTOM"
          • startTimeHour — (Integer)

            The hour for the maintenance window start (00-23).

          • startTimeMinute — (Integer)

            The minutes past the hour for the maintenance window start (00-59).

          • endTimeHour — (Integer)

            The hour for the maintenance window end (00-23).

          • endTimeMinute — (Integer)

            The minutes for the maintenance window end (00-59).

          • daysOfTheWeek — (Array<String>)

            The days of the week during which the maintenance window is open.

          • applyTimeOf — (String)

            The option to set the maintenance window during the device local time or Universal Coordinated Time (UTC).

            Possible values include:
            • "UTC"
            • "DEVICE"
        • softwareSetUpdateMode — (String)

          An option to define which software updates to apply.

          Possible values include:
          • "USE_LATEST"
          • "USE_DESIRED"
        • desiredSoftwareSetId — (String)

          The ID of the software set to apply.

        • pendingSoftwareSetId — (String)

          The ID of the software set that is pending to be installed.

        • createdAt — (Date)

          The timestamp of when the environment was created.

        • updatedAt — (Date)

          The timestamp of when the device was updated.

        • arn — (String)

          The Amazon Resource Name (ARN) of the environment.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSoftwareSet(params = {}, callback) ⇒ AWS.Request

Updates a software set.

Service Reference:

Examples:

Calling the updateSoftwareSet operation

var params = {
  id: 'STRING_VALUE', /* required */
  validationStatus: VALIDATED | NOT_VALIDATED /* required */
};
workspacesthinclient.updateSoftwareSet(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • id — (String)

      The ID of the software set to update.

    • validationStatus — (String)

      An option to define if the software set has been validated.

      Possible values include:
      • "VALIDATED"
      • "NOT_VALIDATED"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.