modify_instance_profile
async
¶
modify_instance_profile(
instance_profile_identifier: String,
*,
config_overrides: Optional[AsyncDatabaseMigrationServiceClientConfig] = None,
availability_zone: Optional[String] = None,
kms_key_arn: Optional[String] = None,
publicly_accessible: Optional[BooleanOptional] = None,
network_type: Optional[String] = None,
instance_profile_name: Optional[String] = None,
description: Optional[String] = None,
subnet_group_identifier: Optional[String] = None,
vpc_security_groups: Optional[StringList] = None,
) -> ModifyInstanceProfileResponse
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.
Parameters:
-
instance_profile_identifier(String) –The identifier of the instance profile. Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens.
-
availability_zone(Optional[String], default:None) –The Availability Zone where the instance profile runs.
-
kms_key_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) of the KMS key that is used to encrypt the connection parameters for the instance profile.
If you don't specify a value for the
KmsKeyArnparameter, then DMS uses an Amazon Web Services owned encryption key to encrypt your resources. -
publicly_accessible(Optional[BooleanOptional], default:None) –Specifies the accessibility options for the instance profile. A value of
truerepresents an instance profile with a public IP address. A value offalserepresents an instance profile with a private IP address. The default value istrue. -
network_type(Optional[String], default:None) –Specifies the network type for the instance profile. A value of
IPV4represents an instance profile with IPv4 network type and only supports IPv4 addressing. A value ofIPV6represents an instance profile with IPv6 network type and only supports IPv6 addressing. A value ofDUALrepresents an instance profile with dual network type that supports IPv4 and IPv6 addressing. -
instance_profile_name(Optional[String], default:None) –A user-friendly name for the instance profile.
-
description(Optional[String], default:None) –A user-friendly description for the instance profile.
-
subnet_group_identifier(Optional[String], default:None) –A subnet group to associate with the instance profile.
-
vpc_security_groups(Optional[StringList], default:None) –Specifies the VPC security groups to be used with the instance profile. The VPC security group must work with the VPC containing the instance profile.
Raises:
-
AccessDeniedFault–DMS was denied access to the endpoint. Check that the role is correctly configured.
-
FailedDependencyFault–A dependency threw an exception.
-
InvalidResourceStateFault–The resource is in a state that prevents it from being used for database migration.
-
KMSKeyNotAccessibleFault–DMS cannot access the KMS key.
-
ResourceNotFoundFault–The resource could not be found.
-
S3AccessDeniedFault–Insufficient privileges are preventing access to an Amazon S3 object.
-
S3ResourceNotFoundFault–A specified Amazon S3 bucket, bucket folder, or other object can't be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Modify an instance profile The following example updates the description and network type of an instance profile.
>>> await client.modify_instance_profile(instance_profile_identifier='arn:aws:dms:us-east-1:111122223333:instance-profile:EXAMPLEABCDEFGHIJKLMNOPQRS', description='Updated instance profile description', network_type='DUAL')
Source code in docs_src/capo_database_migration_service/_services/async_database_migration_service.py
7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 | |