Skip to main content

instance_profiles

Creates, updates, deletes or gets an instance_profile resource or lists instance_profiles in a region

Overview

Nameinstance_profiles
TypeResource
DescriptionResource schema for AWS::DMS::InstanceProfile.
Idawscc.dms.instance_profiles

Fields

NameDatatypeDescription
instance_profile_arnstringThe property describes an ARN of the instance profile.
instance_profile_identifierstringThe property describes an identifier for the instance profile. It is used for describing/deleting/modifying. Can be name/arn
availability_zonestringThe property describes an availability zone of the instance profile.
descriptionstringThe optional description of the instance profile.
kms_key_arnstringThe property describes kms key arn for the instance profile.
publicly_accessiblebooleanThe property describes the publicly accessible of the instance profile
network_typestringThe property describes a network type for the instance profile.
instance_profile_namestringThe property describes a name for the instance profile.
instance_profile_creation_timestringThe property describes a creating time of the instance profile.
subnet_group_identifierstringThe property describes a subnet group identifier for the instance profile.
vpc_security_groupsarrayThe property describes vps security groups for the instance profile.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::DMS::InstanceProfile.

Methods

NameResourceAccessible byRequired Params
create_resourceinstance_profilesINSERTregion
delete_resourceinstance_profilesDELETEIdentifier, region
update_resourceinstance_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesinstance_profiles_list_onlySELECTregion
get_resourceinstance_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual instance_profile.

SELECT
region,
instance_profile_arn,
instance_profile_identifier,
availability_zone,
description,
kms_key_arn,
publicly_accessible,
network_type,
instance_profile_name,
instance_profile_creation_time,
subnet_group_identifier,
vpc_security_groups,
tags
FROM awscc.dms.instance_profiles
WHERE
region = 'us-east-1' AND
Identifier = '{{ instance_profile_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.dms.instance_profiles (
InstanceProfileIdentifier,
AvailabilityZone,
Description,
KmsKeyArn,
PubliclyAccessible,
NetworkType,
InstanceProfileName,
SubnetGroupIdentifier,
VpcSecurityGroups,
Tags,
region
)
SELECT
'{{ instance_profile_identifier }}',
'{{ availability_zone }}',
'{{ description }}',
'{{ kms_key_arn }}',
'{{ publicly_accessible }}',
'{{ network_type }}',
'{{ instance_profile_name }}',
'{{ subnet_group_identifier }}',
'{{ vpc_security_groups }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a instance_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.dms.instance_profiles
SET PatchDocument = string('{{ {
"InstanceProfileIdentifier": instance_profile_identifier,
"AvailabilityZone": availability_zone,
"Description": description,
"KmsKeyArn": kms_key_arn,
"PubliclyAccessible": publicly_accessible,
"NetworkType": network_type,
"InstanceProfileName": instance_profile_name,
"SubnetGroupIdentifier": subnet_group_identifier,
"VpcSecurityGroups": vpc_security_groups,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ instance_profile_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.dms.instance_profiles
WHERE
Identifier = '{{ instance_profile_arn }}' AND
region = 'us-east-1';

Permissions

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

dms:CreateInstanceProfile,
dms:ListInstanceProfiles,
dms:DescribeInstanceProfiles,
dms:AddTagsToResource,
dms:ListTagsForResource