Skip to main content

profiles

Creates, updates, deletes, gets or lists a profiles resource.

Overview

Nameprofiles
TypeResource
Idaws.transfer.profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe unique Amazon Resource Name (ARN) for the profile. (pattern: <code>arn:\S+</code>)
as_2_idstringThe As2Id is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the AS2-From header for the AS2 messages sent from the partner. For outbound connectors, this is the AS2-To header for the AS2 messages sent to the partner using the StartFileTransfer API operation. This ID cannot include spaces. (pattern: <code>[\u0020-\u007E\s]*</code>)
certificate_idsarrayAn array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
profile_idstringA unique identifier for the local or partner AS2 profile. (pattern: <code>p-([0-9a-f]{17})</code>)
profile_typestringIndicates whether to list only LOCAL type profiles or only PARTNER type profiles. If not supplied in the request, the command lists all types of profiles. (LOCAL, PARTNER)
tagsarrayKey-value pairs that can be used to group and search for profiles.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_profileselectregionReturns the details of the profile that's specified by the ProfileId.
list_profilesselectregionReturns a list of the profiles for your system. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for NextToken, you can supply that value to continue listing profiles from where you left off.
create_profileinsertregion, As2Id, ProfileTypeCreates the local or partner profile to use for AS2 transfers.
update_profileupdateregion, ProfileIdUpdates some of the parameters for an existing profile. Provide the ProfileId for the profile that you want to update, along with the new values for the parameters to update.
delete_profiledeleteregionDeletes the profile that's specified in the ProfileId parameter.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the details of the profile that's specified by the ProfileId.

SELECT
arn,
as_2_id,
certificate_ids,
profile_id,
profile_type,
tags
FROM aws.transfer.profiles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates the local or partner profile to use for AS2 transfers.

INSERT INTO aws.transfer.profiles (
As2Id,
ProfileType,
CertificateIds,
Tags,
region
)
SELECT
'{{ As2Id }}' /* required */,
'{{ ProfileType }}' /* required */,
'{{ CertificateIds }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
profile_id
;

UPDATE examples

Updates some of the parameters for an existing profile. Provide the ProfileId for the profile that you want to update, along with the new values for the parameters to update.

UPDATE aws.transfer.profiles
SET
ProfileId = '{{ ProfileId }}',
CertificateIds = '{{ CertificateIds }}'
WHERE
region = '{{ region }}' --required
AND ProfileId = '{{ ProfileId }}' --required
RETURNING
profile_id;

DELETE examples

Deletes the profile that's specified in the ProfileId parameter.

DELETE FROM aws.transfer.profiles
WHERE region = '{{ region }}' --required
;