update_configuration_profile
async
¶
update_configuration_profile(
application_id: Name,
configuration_profile_id: LongName,
*,
config_overrides: Optional[AsyncAppConfigClientConfig] = None,
name: Optional[LongName] = None,
description: Optional[Description] = None,
retrieval_role_arn: Optional[RoleArn] = None,
validators: Optional[ValidatorList] = None,
kms_key_identifier: Optional[KmsKeyIdentifierOrEmpty] = None,
) -> ConfigurationProfile
Updates a configuration profile.
Parameters:
-
application_id(Name) –The application ID.
-
configuration_profile_id(LongName) –The ID of the configuration profile.
-
name(Optional[LongName], default:None) –The name of the configuration profile.
-
description(Optional[Description], default:None) –A description of the configuration profile.
-
retrieval_role_arn(Optional[RoleArn], default:None) –The ARN of an IAM role with permission to access the configuration at the specified
LocationUri.A retrieval role ARN is not required for configurations stored in CodePipeline or the AppConfig hosted configuration store. It is required for all other sources that store your configuration.
-
validators(Optional[ValidatorList], default:None) –A list of methods for validating the configuration.
-
kms_key_identifier(Optional[KmsKeyIdentifierOrEmpty], default:None) –The identifier for a Key Management Service key to encrypt new configuration data versions in the AppConfig hosted configuration store. This attribute is only used for
hostedconfiguration types. The identifier can be an KMS key ID, alias, or the Amazon Resource Name (ARN) of the key ID or alias. To encrypt data managed in other configuration stores, see the documentation for how to specify an KMS key for that particular service.
Raises:
-
BadRequestException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
InternalServerException–There was an internal failure in the AppConfig service.
-
ResourceNotFoundException–The requested resource could not be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a configuration profile The following update-configuration-profile example updates the description of the specified configuration profile.
>>> await client.update_configuration_profile(application_id='339ohji', configuration_profile_id='ur8hx2f', description='Configuration profile used for examples.')
Source code in docs_src/capo_appconfig/_services/async_app_config.py
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 | |