1. Packages
  2. AWS
  3. API Docs
  4. codeartifact
  5. getRepositoryEndpoint
AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi

aws.codeartifact.getRepositoryEndpoint

Explore with Pulumi AI

AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi

The CodeArtifact Repository Endpoint data source returns the endpoint of a repository for a specific package format.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = aws.codeartifact.getRepositoryEndpoint({
    domain: testAwsCodeartifactDomain.domain,
    repository: testAwsCodeartifactRepository.repository,
    format: "npm",
});
Copy
import pulumi
import pulumi_aws as aws

test = aws.codeartifact.get_repository_endpoint(domain=test_aws_codeartifact_domain["domain"],
    repository=test_aws_codeartifact_repository["repository"],
    format="npm")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/codeartifact"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := codeartifact.GetRepositoryEndpoint(ctx, &codeartifact.GetRepositoryEndpointArgs{
			Domain:     testAwsCodeartifactDomain.Domain,
			Repository: testAwsCodeartifactRepository.Repository,
			Format:     "npm",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var test = Aws.CodeArtifact.GetRepositoryEndpoint.Invoke(new()
    {
        Domain = testAwsCodeartifactDomain.Domain,
        Repository = testAwsCodeartifactRepository.Repository,
        Format = "npm",
    });

});
Copy
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(testAwsCodeartifactDomain.domain())
            .repository(testAwsCodeartifactRepository.repository())
            .format("npm")
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: aws:codeartifact:getRepositoryEndpoint
      arguments:
        domain: ${testAwsCodeartifactDomain.domain}
        repository: ${testAwsCodeartifactRepository.repository}
        format: npm
Copy

Using getRepositoryEndpoint

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRepositoryEndpoint(args: GetRepositoryEndpointArgs, opts?: InvokeOptions): Promise<GetRepositoryEndpointResult>
function getRepositoryEndpointOutput(args: GetRepositoryEndpointOutputArgs, opts?: InvokeOptions): Output<GetRepositoryEndpointResult>
Copy
def get_repository_endpoint(domain: Optional[str] = None,
                            domain_owner: Optional[str] = None,
                            format: Optional[str] = None,
                            repository: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRepositoryEndpointResult
def get_repository_endpoint_output(domain: Optional[pulumi.Input[str]] = None,
                            domain_owner: Optional[pulumi.Input[str]] = None,
                            format: Optional[pulumi.Input[str]] = None,
                            repository: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryEndpointResult]
Copy
func GetRepositoryEndpoint(ctx *Context, args *GetRepositoryEndpointArgs, opts ...InvokeOption) (*GetRepositoryEndpointResult, error)
func GetRepositoryEndpointOutput(ctx *Context, args *GetRepositoryEndpointOutputArgs, opts ...InvokeOption) GetRepositoryEndpointResultOutput
Copy

> Note: This function is named GetRepositoryEndpoint in the Go SDK.

public static class GetRepositoryEndpoint 
{
    public static Task<GetRepositoryEndpointResult> InvokeAsync(GetRepositoryEndpointArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryEndpointResult> Invoke(GetRepositoryEndpointInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRepositoryEndpointResult> getRepositoryEndpoint(GetRepositoryEndpointArgs args, InvokeOptions options)
public static Output<GetRepositoryEndpointResult> getRepositoryEndpoint(GetRepositoryEndpointArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:codeartifact/getRepositoryEndpoint:getRepositoryEndpoint
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain This property is required. string
Name of the domain that contains the repository.
Format This property is required. string
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
Repository This property is required. string
Name of the repository.
DomainOwner string
Account number of the AWS account that owns the domain.
Domain This property is required. string
Name of the domain that contains the repository.
Format This property is required. string
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
Repository This property is required. string
Name of the repository.
DomainOwner string
Account number of the AWS account that owns the domain.
domain This property is required. String
Name of the domain that contains the repository.
format This property is required. String
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
repository This property is required. String
Name of the repository.
domainOwner String
Account number of the AWS account that owns the domain.
domain This property is required. string
Name of the domain that contains the repository.
format This property is required. string
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
repository This property is required. string
Name of the repository.
domainOwner string
Account number of the AWS account that owns the domain.
domain This property is required. str
Name of the domain that contains the repository.
format This property is required. str
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
repository This property is required. str
Name of the repository.
domain_owner str
Account number of the AWS account that owns the domain.
domain This property is required. String
Name of the domain that contains the repository.
format This property is required. String
Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.
repository This property is required. String
Name of the repository.
domainOwner String
Account number of the AWS account that owns the domain.

getRepositoryEndpoint Result

The following output properties are available:

Domain string
DomainOwner string
Format string
Id string
The provider-assigned unique ID for this managed resource.
Repository string
RepositoryEndpoint string
URL of the returned endpoint.
Domain string
DomainOwner string
Format string
Id string
The provider-assigned unique ID for this managed resource.
Repository string
RepositoryEndpoint string
URL of the returned endpoint.
domain String
domainOwner String
format String
id String
The provider-assigned unique ID for this managed resource.
repository String
repositoryEndpoint String
URL of the returned endpoint.
domain string
domainOwner string
format string
id string
The provider-assigned unique ID for this managed resource.
repository string
repositoryEndpoint string
URL of the returned endpoint.
domain str
domain_owner str
format str
id str
The provider-assigned unique ID for this managed resource.
repository str
repository_endpoint str
URL of the returned endpoint.
domain String
domainOwner String
format String
id String
The provider-assigned unique ID for this managed resource.
repository String
repositoryEndpoint String
URL of the returned endpoint.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi