swap_environment_cnam_es
async
¶
swap_environment_cnam_es(
*,
config_overrides: Optional[AsyncElasticBeanstalkClientConfig] = None,
source_environment_id: Optional[EnvironmentId] = None,
source_environment_name: Optional[EnvironmentName] = None,
destination_environment_id: Optional[EnvironmentId] = None,
destination_environment_name: Optional[EnvironmentName] = None,
) -> None
Swaps the CNAMEs of two environments.
Parameters:
-
source_environment_id(Optional[EnvironmentId], default:None) –The ID of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentId, you must specify theDestinationEnvironmentId. -
source_environment_name(Optional[EnvironmentName], default:None) –The name of the source environment.
Condition: You must specify at least the
SourceEnvironmentIDor theSourceEnvironmentName. You may also specify both. If you specify theSourceEnvironmentName, you must specify theDestinationEnvironmentName. -
destination_environment_id(Optional[EnvironmentId], default:None) –The ID of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentIdwith theDestinationEnvironmentId. -
destination_environment_name(Optional[EnvironmentName], default:None) –The name of the destination environment.
Condition: You must specify at least the
DestinationEnvironmentIDor theDestinationEnvironmentName. You may also specify both. You must specify theSourceEnvironmentNamewith theDestinationEnvironmentName.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To swap environment CNAMES The following operation swaps the assigned subdomains of two environments:
>>> await client.swap_environment_cnam_es(source_environment_name='my-env-blue', destination_environment_name='my-env-green')
Source code in docs_src/capo_elastic_beanstalk/_services/async_elastic_beanstalk.py
2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 | |