Skip to main content

instance_profiles

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

Overview

Nameinstance_profiles
TypeResource
Idaws.dms.instance_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
instance_profilesarrayA description of instance profiles.
markerstringSpecifies the unique pagination token that makes it possible to display the next page of results. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords. If Marker is returned by a previous response, there are more results available. The value of Marker is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token and keeping all other arguments unchanged.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_instance_profilesselectregionReturns a paginated list of instance profiles for your account in the current region. Required permissions: dms:ListInstanceProfiles. For more information, see Actions, resources, and condition keys for Database Migration Service.
create_instance_profileinsertregionCreates the instance profile using the specified parameters. Required permissions: dms:CreateInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service.
modify_instance_profileupdateregion, InstanceProfileIdentifierModifies the specified instance profile using the provided parameters. Required permissions: dms:UpdateInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the instance profile must be deleted or modified before you can modify the instance profile.
delete_instance_profiledeleteregionDeletes the specified instance profile. Required permissions: dms:DeleteInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the instance profile must be deleted or modified before you can delete the instance 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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a paginated list of instance profiles for your account in the current region. Required permissions: dms:ListInstanceProfiles. For more information, see Actions, resources, and condition keys for Database Migration Service.

SELECT
instance_profiles,
marker
FROM aws.dms.instance_profiles
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates the instance profile using the specified parameters. Required permissions: dms:CreateInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service.

INSERT INTO aws.dms.instance_profiles (
AvailabilityZone,
KmsKeyArn,
PubliclyAccessible,
Tags,
NetworkType,
InstanceProfileName,
Description,
SubnetGroupIdentifier,
VpcSecurityGroups,
region
)
SELECT
'{{ AvailabilityZone }}',
'{{ KmsKeyArn }}',
{{ PubliclyAccessible }},
'{{ Tags }}',
'{{ NetworkType }}',
'{{ InstanceProfileName }}',
'{{ Description }}',
'{{ SubnetGroupIdentifier }}',
'{{ VpcSecurityGroups }}',
'{{ region }}'
RETURNING
instance_profile
;

UPDATE examples

Modifies the specified instance profile using the provided parameters. Required permissions: dms:UpdateInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the instance profile must be deleted or modified before you can modify the instance profile.

UPDATE aws.dms.instance_profiles
SET
InstanceProfileIdentifier = '{{ InstanceProfileIdentifier }}',
AvailabilityZone = '{{ AvailabilityZone }}',
KmsKeyArn = '{{ KmsKeyArn }}',
PubliclyAccessible = {{ PubliclyAccessible }},
NetworkType = '{{ NetworkType }}',
InstanceProfileName = '{{ InstanceProfileName }}',
Description = '{{ Description }}',
SubnetGroupIdentifier = '{{ SubnetGroupIdentifier }}',
VpcSecurityGroups = '{{ VpcSecurityGroups }}'
WHERE
region = '{{ region }}' --required
AND InstanceProfileIdentifier = '{{ InstanceProfileIdentifier }}' --required
RETURNING
instance_profile;

DELETE examples

Deletes the specified instance profile. Required permissions: dms:DeleteInstanceProfile. For more information, see Actions, resources, and condition keys for Database Migration Service. All migration projects associated with the instance profile must be deleted or modified before you can delete the instance profile.

DELETE FROM aws.dms.instance_profiles
WHERE region = '{{ region }}' --required
;