get Repository Endpoint
suspend fun getRepositoryEndpoint(argument: GetRepositoryEndpointPlainArgs): GetRepositoryEndpointResult
The CodeArtifact Repository Endpoint data source returns the endpoint of a repository for a specific package format.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.codeartifact.CodeartifactFunctions;
import com.pulumi.aws.codeartifact.inputs.GetRepositoryEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = CodeartifactFunctions.getRepositoryEndpoint(GetRepositoryEndpointArgs.builder()
.domain(aws_codeartifact_domain.test().domain())
.repository(aws_codeartifact_repository.test().repository())
.format("npm")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getRepositoryEndpoint.
Parameters
argument
A collection of arguments for invoking getRepositoryEndpoint.
suspend fun getRepositoryEndpoint(domain: String, domainOwner: String? = null, format: String, repository: String): GetRepositoryEndpointResult
Return
A collection of values returned by getRepositoryEndpoint.
Parameters
domain
Name of the domain that contains the repository.
domain Owner
Account number of the AWS account that owns the domain.
format
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm
, pypi
, maven
, and nuget
.
repository
Name of the repository.
See also
suspend fun getRepositoryEndpoint(argument: suspend GetRepositoryEndpointPlainArgsBuilder.() -> Unit): GetRepositoryEndpointResult
Return
A collection of values returned by getRepositoryEndpoint.
Parameters
argument
Builder for com.pulumi.aws.codeartifact.kotlin.inputs.GetRepositoryEndpointPlainArgs.