get_repository_endpoint
async
¶
get_repository_endpoint(
domain: DomainName,
repository: RepositoryName,
format: PackageFormat,
*,
config_overrides: Optional[AsynccodeartifactClientConfig] = None,
domain_owner: Optional[AccountId] = None,
endpoint_type: Optional[EndpointType] = None,
) -> GetRepositoryEndpointResult
Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
-
cargo -
generic -
maven -
npm -
nuget -
pypi -
ruby -
swift
Parameters:
-
domain(DomainName) –The name of the domain that contains the repository.
-
domain_owner(Optional[AccountId], default:None) –The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces.
-
repository(RepositoryName) –The name of the repository.
-
format(PackageFormat) –Returns which endpoint of a repository to return. A repository has one endpoint for each package format.
-
endpoint_type(Optional[EndpointType], default:None) –A string that specifies the type of endpoint.
Raises:
-
AccessDeniedException–The operation did not succeed because of an unauthorized access attempt.
-
InternalServerException–The operation did not succeed because of an error that occurred inside CodeArtifact.
-
ResourceNotFoundException–The operation did not succeed because the resource requested is not found in the service.
-
ThrottlingException–The operation did not succeed because too many requests are sent to the service.
-
ValidationException–The operation did not succeed because a parameter in the request was sent with an invalid value.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codeartifact/_services/async_codeartifact.py
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 | |