modify_instance_profile
¶
modify_instance_profile(
instance_profile_identifier: String,
*,
config_overrides: Optional[DatabaseMigrationServiceClientConfig] = 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.
>>> 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/database_migration_service.py
7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 | |