AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.codeartifact.getRepositoryEndpoint
Explore with Pulumi AI
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
, andnuget
. - Repository string
- Name of the repository.
- Domain
Owner 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
, andnuget
. - Repository string
- Name of the repository.
- Domain
Owner 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
, andnuget
. - repository String
- Name of the repository.
- domain
Owner 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
, andnuget
. - repository string
- Name of the repository.
- domain
Owner 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
, andnuget
. - 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
, andnuget
. - repository String
- Name of the repository.
- domain
Owner String - Account number of the AWS account that owns the domain.
getRepositoryEndpoint Result
The following output properties are available:
- Domain string
- Domain
Owner string - Format string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository string
- Repository
Endpoint string - URL of the returned endpoint.
- Domain string
- Domain
Owner string - Format string
- Id string
- The provider-assigned unique ID for this managed resource.
- Repository string
- Repository
Endpoint string - URL of the returned endpoint.
- domain String
- domain
Owner String - format String
- id String
- The provider-assigned unique ID for this managed resource.
- repository String
- repository
Endpoint String - URL of the returned endpoint.
- domain string
- domain
Owner string - format string
- id string
- The provider-assigned unique ID for this managed resource.
- repository string
- repository
Endpoint 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
- domain
Owner String - format String
- id String
- The provider-assigned unique ID for this managed resource.
- repository String
- repository
Endpoint 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.