1. Packages
  2. AWS
  3. API Docs
  4. codeartifact
  5. getRepositoryEndpoint
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.codeartifact.getRepositoryEndpoint

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: aws:codeartifact:getRepositoryEndpoint
          Arguments:
            domain: ${testAwsCodeartifactDomain.domain}
            repository: ${testAwsCodeartifactRepository.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
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi