list_hosted_configuration_versions
¶
list_hosted_configuration_versions(
application_id: Name,
configuration_profile_id: LongName,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
version_label: Optional[QueryName] = None,
) -> HostedConfigurationVersions
Lists configurations stored in the AppConfig hosted configuration store by version.
Parameters:
-
application_id(Name) –The application ID.
-
configuration_profile_id(LongName) –The configuration profile ID.
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return for this call. If
MaxResultsis not provided in the call, AppConfig returns the maximum of 50. The call also returns a token that you can specify in a subsequent call to get the next set of results. -
next_token(Optional[NextToken], default:None) –A token to start the list. Use this token to get the next set of results.
-
version_label(Optional[QueryName], default:None) –An optional filter that can be used to specify the version label of an AppConfig hosted configuration version. This parameter supports filtering by prefix using a wildcard, for example "v2*". If you don't specify an asterisk at the end of the value, only an exact match is returned.
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 list the available hosted configuration versions The following list-hosted-configuration-versions example lists the configurations versions hosted in the AWS AppConfig hosted configuration store for the specified application and configuration profile.
>>> client.list_hosted_configuration_versions(application_id='339ohji', configuration_profile_id='ur8hx2f')
Source code in docs_src/capo_appconfig/_services/app_config.py
2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 | |