Class CfnUserSettings

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.122Z") @Stability(Stable) public class CfnUserSettings extends CfnResource implements IInspectable, ITaggableV2
This resource specifies user settings that can be associated with a web portal.

Once associated with a web portal, user settings control how users can transfer data between a streaming session and the their local devices.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.workspacesweb.*;
 CfnUserSettings cfnUserSettings = CfnUserSettings.Builder.create(this, "MyCfnUserSettings")
         .copyAllowed("copyAllowed")
         .downloadAllowed("downloadAllowed")
         .pasteAllowed("pasteAllowed")
         .printAllowed("printAllowed")
         .uploadAllowed("uploadAllowed")
         // the properties below are optional
         .additionalEncryptionContext(Map.of(
                 "additionalEncryptionContextKey", "additionalEncryptionContext"))
         .cookieSynchronizationConfiguration(CookieSynchronizationConfigurationProperty.builder()
                 .allowlist(List.of(CookieSpecificationProperty.builder()
                         .domain("domain")
                         // the properties below are optional
                         .name("name")
                         .path("path")
                         .build()))
                 // the properties below are optional
                 .blocklist(List.of(CookieSpecificationProperty.builder()
                         .domain("domain")
                         // the properties below are optional
                         .name("name")
                         .path("path")
                         .build()))
                 .build())
         .customerManagedKey("customerManagedKey")
         .disconnectTimeoutInMinutes(123)
         .idleDisconnectTimeoutInMinutes(123)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnUserSettings

      protected CfnUserSettings(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnUserSettings

      protected CfnUserSettings(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnUserSettings

      @Stability(Stable) public CfnUserSettings(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserSettingsProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAssociatedPortalArns

      @Stability(Stable) @NotNull public List<String> getAttrAssociatedPortalArns()
      A list of web portal ARNs that this user settings resource is associated with.
    • getAttrUserSettingsArn

      @Stability(Stable) @NotNull public String getAttrUserSettingsArn()
      The ARN of the user settings.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCopyAllowed

      @Stability(Stable) @NotNull public String getCopyAllowed()
      Specifies whether the user can copy text from the streaming session to the local device.
    • setCopyAllowed

      @Stability(Stable) public void setCopyAllowed(@NotNull String value)
      Specifies whether the user can copy text from the streaming session to the local device.
    • getDownloadAllowed

      @Stability(Stable) @NotNull public String getDownloadAllowed()
      Specifies whether the user can download files from the streaming session to the local device.
    • setDownloadAllowed

      @Stability(Stable) public void setDownloadAllowed(@NotNull String value)
      Specifies whether the user can download files from the streaming session to the local device.
    • getPasteAllowed

      @Stability(Stable) @NotNull public String getPasteAllowed()
      Specifies whether the user can paste text from the local device to the streaming session.
    • setPasteAllowed

      @Stability(Stable) public void setPasteAllowed(@NotNull String value)
      Specifies whether the user can paste text from the local device to the streaming session.
    • getPrintAllowed

      @Stability(Stable) @NotNull public String getPrintAllowed()
      Specifies whether the user can print to the local device.
    • setPrintAllowed

      @Stability(Stable) public void setPrintAllowed(@NotNull String value)
      Specifies whether the user can print to the local device.
    • getUploadAllowed

      @Stability(Stable) @NotNull public String getUploadAllowed()
      Specifies whether the user can upload files from the local device to the streaming session.
    • setUploadAllowed

      @Stability(Stable) public void setUploadAllowed(@NotNull String value)
      Specifies whether the user can upload files from the local device to the streaming session.
    • getAdditionalEncryptionContext

      @Stability(Stable) @Nullable public Object getAdditionalEncryptionContext()
      The additional encryption context of the user settings.
    • setAdditionalEncryptionContext

      @Stability(Stable) public void setAdditionalEncryptionContext(@Nullable IResolvable value)
      The additional encryption context of the user settings.
    • setAdditionalEncryptionContext

      @Stability(Stable) public void setAdditionalEncryptionContext(@Nullable Map<String,String> value)
      The additional encryption context of the user settings.
    • getCookieSynchronizationConfiguration

      @Stability(Stable) @Nullable public Object getCookieSynchronizationConfiguration()
      The configuration that specifies which cookies should be synchronized from the end user's local browser to the remote browser.
    • setCookieSynchronizationConfiguration

      @Stability(Stable) public void setCookieSynchronizationConfiguration(@Nullable IResolvable value)
      The configuration that specifies which cookies should be synchronized from the end user's local browser to the remote browser.
    • setCookieSynchronizationConfiguration

      @Stability(Stable) public void setCookieSynchronizationConfiguration(@Nullable CfnUserSettings.CookieSynchronizationConfigurationProperty value)
      The configuration that specifies which cookies should be synchronized from the end user's local browser to the remote browser.
    • getCustomerManagedKey

      @Stability(Stable) @Nullable public String getCustomerManagedKey()
      The customer managed key used to encrypt sensitive information in the user settings.
    • setCustomerManagedKey

      @Stability(Stable) public void setCustomerManagedKey(@Nullable String value)
      The customer managed key used to encrypt sensitive information in the user settings.
    • getDisconnectTimeoutInMinutes

      @Stability(Stable) @Nullable public Number getDisconnectTimeoutInMinutes()
      The amount of time that a streaming session remains active after users disconnect.
    • setDisconnectTimeoutInMinutes

      @Stability(Stable) public void setDisconnectTimeoutInMinutes(@Nullable Number value)
      The amount of time that a streaming session remains active after users disconnect.
    • getIdleDisconnectTimeoutInMinutes

      @Stability(Stable) @Nullable public Number getIdleDisconnectTimeoutInMinutes()
      The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect timeout interval begins.
    • setIdleDisconnectTimeoutInMinutes

      @Stability(Stable) public void setIdleDisconnectTimeoutInMinutes(@Nullable Number value)
      The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the disconnect timeout interval begins.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags to add to the user settings resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags to add to the user settings resource.