UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

104 lines (103 loc) 3.41 kB
import * as pulumi from "@pulumi/pulumi"; /** * The CodeArtifact Repository Endpoint data source returns the endpoint of a repository for a specific package format. * * ## Example Usage * * ```typescript * 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", * }); * ``` */ export declare function getRepositoryEndpoint(args: GetRepositoryEndpointArgs, opts?: pulumi.InvokeOptions): Promise<GetRepositoryEndpointResult>; /** * A collection of arguments for invoking getRepositoryEndpoint. */ export interface GetRepositoryEndpointArgs { /** * Name of the domain that contains the repository. */ domain: string; /** * Account number of the AWS account that owns the domain. */ domainOwner?: string; /** * Which endpoint of a repository to return. A repository has one endpoint for each package format: `npm`, `pypi`, `maven`, and `nuget`. */ format: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Name of the repository. */ repository: string; } /** * A collection of values returned by getRepositoryEndpoint. */ export interface GetRepositoryEndpointResult { readonly domain: string; readonly domainOwner: string; readonly format: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; readonly repository: string; /** * URL of the returned endpoint. */ readonly repositoryEndpoint: string; } /** * The CodeArtifact Repository Endpoint data source returns the endpoint of a repository for a specific package format. * * ## Example Usage * * ```typescript * 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", * }); * ``` */ export declare function getRepositoryEndpointOutput(args: GetRepositoryEndpointOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRepositoryEndpointResult>; /** * A collection of arguments for invoking getRepositoryEndpoint. */ export interface GetRepositoryEndpointOutputArgs { /** * Name of the domain that contains the repository. */ domain: pulumi.Input<string>; /** * Account number of the AWS account that owns the domain. */ domainOwner?: pulumi.Input<string>; /** * Which endpoint of a repository to return. A repository has one endpoint for each package format: `npm`, `pypi`, `maven`, and `nuget`. */ format: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Name of the repository. */ repository: pulumi.Input<string>; }