update_configuration_profile
¶
update_configuration_profile(
application_id: Name,
configuration_profile_id: LongName,
*,
config_overrides: Optional[AppConfigClientConfig] = 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.
>>> 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/app_config.py
3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 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 | |