Skip to main content

authentication_profiles

Creates, updates, deletes, gets or lists an authentication_profiles resource.

Overview

Nameauthentication_profiles
TypeResource
Idaws.redshift.authentication_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authentication_profile_contentstringThe content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.
authentication_profile_namestringThe name of the authentication profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_authentication_profilesselectregionAuthenticationProfileNameDescribes an authentication profile.
create_authentication_profileinsertAuthenticationProfileName, AuthenticationProfileContent, regionCreates an authentication profile with the specified parameters.
modify_authentication_profileupdateAuthenticationProfileName, AuthenticationProfileContent, regionModifies an authentication profile.
delete_authentication_profiledeleteAuthenticationProfileName, regionDeletes an authentication profile.

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
AuthenticationProfileContentstringThe new content of the authentication profile in JSON format. The maximum length of the JSON string is determined by a quota for your account.
AuthenticationProfileNamestringThe name of the authentication profile to delete.
regionstringAWS region (default: us-east-1)
AuthenticationProfileNamestringThe name of the authentication profile to describe. If not specified then all authentication profiles owned by the account are listed.

SELECT examples

Describes an authentication profile.

SELECT
authentication_profile_content,
authentication_profile_name
FROM aws.redshift.authentication_profiles
WHERE region = '{{ region }}' -- required
AND AuthenticationProfileName = '{{ AuthenticationProfileName }}'
;

INSERT examples

Creates an authentication profile with the specified parameters.

INSERT INTO aws.redshift.authentication_profiles (
AuthenticationProfileName,
AuthenticationProfileContent,
region
)
SELECT
'{{ AuthenticationProfileName }}',
'{{ AuthenticationProfileContent }}',
'{{ region }}'
RETURNING
authentication_profile_content,
authentication_profile_name
;

UPDATE examples

Modifies an authentication profile.

UPDATE aws.redshift.authentication_profiles
SET
-- No updatable properties
WHERE
AuthenticationProfileName = '{{ AuthenticationProfileName }}' --required
AND AuthenticationProfileContent = '{{ AuthenticationProfileContent }}' --required
AND region = '{{ region }}' --required
RETURNING
authentication_profile_content,
authentication_profile_name;

DELETE examples

Deletes an authentication profile.

DELETE FROM aws.redshift.authentication_profiles
WHERE AuthenticationProfileName = '{{ AuthenticationProfileName }}' --required
AND region = '{{ region }}' --required
;