@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
101 lines • 3.47 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the artifact and optional version.
*
* ## Example Usage
*/
export declare function getMavenArtifact(args: GetMavenArtifactArgs, opts?: pulumi.InvokeOptions): Promise<GetMavenArtifactResult>;
/**
* A collection of arguments for invoking getMavenArtifact.
*/
export interface GetMavenArtifactArgs {
/**
* The name of the artifact to fetch. Can optionally include a specific version (e.g., `my_artifact:1.2.3`). If no version is provided, the latest version is used.
*/
artifactId: string;
/**
* Group ID for the artifact. Example: `com.google.guava`
*/
groupId: string;
/**
* The location of the Artifact Registry repository.
*/
location: string;
/**
* The ID of the project that owns the repository. If not provided, the provider-level project is used.
*/
project?: string;
/**
* The ID of the repository containing the Maven artifact.
*/
repositoryId: string;
}
/**
* A collection of values returned by getMavenArtifact.
*/
export interface GetMavenArtifactResult {
readonly artifactId: string;
/**
* The time the artifact was created.
*/
readonly createTime: string;
readonly groupId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
/**
* The fully qualified name of the fetched artifact. Format:
* ```
* projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}}
* ```
*/
readonly name: string;
/**
* URL to access the pom file of the artifact. Example: `us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom`
*/
readonly pomUri: string;
readonly project?: string;
readonly repositoryId: string;
/**
* The time the artifact was last updated.
*/
readonly updateTime: string;
/**
* The version of the Maven artifact.
*/
readonly version: string;
}
/**
* This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the artifact and optional version.
*
* ## Example Usage
*/
export declare function getMavenArtifactOutput(args: GetMavenArtifactOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetMavenArtifactResult>;
/**
* A collection of arguments for invoking getMavenArtifact.
*/
export interface GetMavenArtifactOutputArgs {
/**
* The name of the artifact to fetch. Can optionally include a specific version (e.g., `my_artifact:1.2.3`). If no version is provided, the latest version is used.
*/
artifactId: pulumi.Input<string>;
/**
* Group ID for the artifact. Example: `com.google.guava`
*/
groupId: pulumi.Input<string>;
/**
* The location of the Artifact Registry repository.
*/
location: pulumi.Input<string>;
/**
* The ID of the project that owns the repository. If not provided, the provider-level project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The ID of the repository containing the Maven artifact.
*/
repositoryId: pulumi.Input<string>;
}
//# sourceMappingURL=getMavenArtifact.d.ts.map