update_http_namespace
async
¶
update_http_namespace(
id: Arn,
namespace: HttpNamespaceChange,
*,
config_overrides: Optional[AsyncServiceDiscoveryClientConfig] = None,
updater_request_id: Optional[ResourceId] = None,
) -> UpdateHttpNamespaceResponse
Updates an HTTP namespace.
Parameters:
-
id(Arn) –The ID or Amazon Resource Name (ARN) of the namespace that you want to update.
-
updater_request_id(Optional[ResourceId], default:None) –A unique string that identifies the request and that allows failed
UpdateHttpNamespacerequests to be retried without the risk of running the operation twice.UpdaterRequestIdcan be any unique string (for example, a date/timestamp). -
namespace(HttpNamespaceChange) –Updated properties for the the HTTP namespace.
Raises:
-
DuplicateRequest–The operation is already in progress.
-
InvalidInput–One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.
-
NamespaceNotFound–No namespace exists with the specified ID.
-
ResourceInUse–The specified resource can't be deleted because it contains other resources. For example, you can't delete a service that contains any instances.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a HTTP namespace The following example updates the description of a HTTP namespace.
>>> await client.update_http_namespace(id='ns-vh4nbmEXAMPLE', namespace={'Description': 'The updated namespace description.'})
Update HTTP namespace using namespace ARN for shared namespace
This example updates an HTTP namespace using a namespace ARN instead of namespace ID.
>>> await client.update_http_namespace(id='arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-vh4nbmexample', namespace={'Description': 'Updated description for shared HTTP namespace.'})
Source code in docs_src/capo_servicediscovery/_services/async_service_discovery.py
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | |