AWS Classic

v5.16.2 published on Tuesday, Oct 4, 2022 by Pulumi

getRepositoryEndpoint

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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:     aws_codeartifact_domain.Test.Domain,
			Repository: aws_codeartifact_repository.Test.Repository,
			Format:     "npm",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

test = aws.codeartifact.get_repository_endpoint(domain=aws_codeartifact_domain["test"]["domain"],
    repository=aws_codeartifact_repository["test"]["repository"],
    format="npm")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const test = aws.codeartifact.getRepositoryEndpoint({
    domain: aws_codeartifact_domain.test.domain,
    repository: aws_codeartifact_repository.test.repository,
    format: "npm",
});
variables:
  test:
    Fn::Invoke:
      Function: aws:codeartifact:getRepositoryEndpoint
      Arguments:
        domain: ${aws_codeartifact_domain.test.domain}
        repository: ${aws_codeartifact_repository.test.repository}
        format: npm

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>
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]
func GetRepositoryEndpoint(ctx *Context, args *GetRepositoryEndpointArgs, opts ...InvokeOption) (*GetRepositoryEndpointResult, error)
func GetRepositoryEndpointOutput(ctx *Context, args *GetRepositoryEndpointOutputArgs, opts ...InvokeOption) GetRepositoryEndpointResultOutput

> 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)
}
public static CompletableFuture<GetRepositoryEndpointResult> getRepositoryEndpoint(GetRepositoryEndpointArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:codeartifact/getRepositoryEndpoint:getRepositoryEndpoint
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Domain string

Name of the domain that contains the repository.

Format string

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

Repository string

Name of the repository.

DomainOwner string

Account number of the AWS account that owns the domain.

Domain string

Name of the domain that contains the repository.

Format string

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

Repository string

Name of the repository.

DomainOwner string

Account number of the AWS account that owns the domain.

domain String

Name of the domain that contains the repository.

format String

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

repository String

Name of the repository.

domainOwner String

Account number of the AWS account that owns the domain.

domain string

Name of the domain that contains the repository.

format string

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

repository string

Name of the repository.

domainOwner string

Account number of the AWS account that owns the domain.

domain str

Name of the domain that contains the repository.

format str

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

repository str

Name of the repository.

domain_owner str

Account number of the AWS account that owns the domain.

domain String

Name of the domain that contains the repository.

format String

Which endpoint of a repository to return. A repository has one endpoint for each package format: npm, pypi, maven, and nuget.

repository 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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.