Skip to main content

preferences

Creates, updates, deletes or gets a preference resource or lists preferences in a region

Overview

Namepreferences
TypeResource
DescriptionDefinition of AWS::SSMGuiConnect::Preferences Resource Type
Idawscc.ssmguiconnect.preferences

Fields

NameDatatypeDescription
account_idstringThe AWS Account Id that the preference is associated with, used as the unique identifier for this resource.
connection_recording_preferencesobjectThe set of preferences used for recording RDP connections in the requesting AWS account and AWS Region. This includes details such as which S3 bucket recordings are stored in.
regionstringAWS region.

For more information, see AWS::SSMGuiConnect::Preferences.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual preference.

SELECT
region,
account_id,
connection_recording_preferences
FROM awscc.ssmguiconnect.preferences
WHERE region = 'us-east-1' AND data__Identifier = '<AccountId>';

INSERT example

Use the following StackQL query and manifest file to create a new preference resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.ssmguiconnect.preferences (
ConnectionRecordingPreferences,
region
)
SELECT
'{{ ConnectionRecordingPreferences }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.ssmguiconnect.preferences
WHERE data__Identifier = '<AccountId>'
AND region = 'us-east-1';

Permissions

To operate on the preferences resource, the following permissions are required:

Create

kms:CreateGrant,
ssm-guiconnect:UpdateConnectionRecordingPreferences,
ssm-guiconnect:GetConnectionRecordingPreferences

Read

ssm-guiconnect:GetConnectionRecordingPreferences

Update

kms:CreateGrant,
ssm-guiconnect:UpdateConnectionRecordingPreferences,
ssm-guiconnect:GetConnectionRecordingPreferences,
ssm-guiconnect:DeleteConnectionRecordingPreferences

Delete

ssm-guiconnect:GetConnectionRecordingPreferences,
ssm-guiconnect:DeleteConnectionRecordingPreferences

List

ssm-guiconnect:GetConnectionRecordingPreferences