UNPKG

@pulumi/azuredevops

Version:

A Pulumi package for creating and managing Azure DevOps.

187 lines (186 loc) 6.9 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Manages a Service Fabric service endpoint within Azure DevOps. * * ## Example Usage * * ### Azure Active Directory Authentication * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const project = new azuredevops.Project("project", { * name: "Sample Project", * visibility: "private", * versionControl: "Git", * workItemTemplate: "Agile", * }); * const test = new azuredevops.ServiceEndpointServiceFabric("test", { * projectId: project.id, * serviceEndpointName: "Sample Service Fabric", * description: "Managed by Pulumi", * clusterEndpoint: "tcp://test", * azureActiveDirectory: { * serverCertificateLookup: "Thumbprint", * serverCertificateThumbprint: "0000000000000000000000000000000000000000", * username: "username", * password: "password", * }, * }); * ``` * * ### Windows Authentication * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuredevops from "@pulumi/azuredevops"; * * const project = new azuredevops.Project("project", { * name: "Sample Project", * visibility: "private", * versionControl: "Git", * workItemTemplate: "Agile", * }); * const test = new azuredevops.ServiceEndpointServiceFabric("test", { * projectId: project.id, * serviceEndpointName: "Sample Service Fabric", * description: "Managed by Pulumi", * clusterEndpoint: "tcp://test", * none: { * unsecured: false, * clusterSpn: "HTTP/www.contoso.com", * }, * }); * ``` * * ## Relevant Links * * - [Azure DevOps Service REST API 7.0 - Endpoints](https://docs.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints?view=azure-devops-rest-7.0) * * ## Import * * Azure DevOps Service Fabric Service Endpoint can be imported using **projectID/serviceEndpointID** or **projectName/serviceEndpointID** * * ```sh * $ pulumi import azuredevops:index/serviceEndpointServiceFabric:ServiceEndpointServiceFabric example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000 * ``` */ export declare class ServiceEndpointServiceFabric extends pulumi.CustomResource { /** * Get an existing ServiceEndpointServiceFabric resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ServiceEndpointServiceFabricState, opts?: pulumi.CustomResourceOptions): ServiceEndpointServiceFabric; /** * Returns true if the given object is an instance of ServiceEndpointServiceFabric. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ServiceEndpointServiceFabric; readonly authorization: pulumi.Output<{ [key: string]: string; }>; /** * An `azureActiveDirectory` block as documented below. */ readonly azureActiveDirectory: pulumi.Output<outputs.ServiceEndpointServiceFabricAzureActiveDirectory | undefined>; /** * A `certificate` block as documented below. */ readonly certificate: pulumi.Output<outputs.ServiceEndpointServiceFabricCertificate | undefined>; /** * Client connection endpoint for the cluster. Prefix the value with `tcp://`;. This value overrides the publish profile. */ readonly clusterEndpoint: pulumi.Output<string>; readonly description: pulumi.Output<string | undefined>; /** * A `none` block as documented below. */ readonly none: pulumi.Output<outputs.ServiceEndpointServiceFabricNone | undefined>; /** * The ID of the project. */ readonly projectId: pulumi.Output<string>; /** * The Service Endpoint name. */ readonly serviceEndpointName: pulumi.Output<string>; /** * Create a ServiceEndpointServiceFabric resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ServiceEndpointServiceFabricArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServiceEndpointServiceFabric resources. */ export interface ServiceEndpointServiceFabricState { authorization?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * An `azureActiveDirectory` block as documented below. */ azureActiveDirectory?: pulumi.Input<inputs.ServiceEndpointServiceFabricAzureActiveDirectory>; /** * A `certificate` block as documented below. */ certificate?: pulumi.Input<inputs.ServiceEndpointServiceFabricCertificate>; /** * Client connection endpoint for the cluster. Prefix the value with `tcp://`;. This value overrides the publish profile. */ clusterEndpoint?: pulumi.Input<string>; description?: pulumi.Input<string>; /** * A `none` block as documented below. */ none?: pulumi.Input<inputs.ServiceEndpointServiceFabricNone>; /** * The ID of the project. */ projectId?: pulumi.Input<string>; /** * The Service Endpoint name. */ serviceEndpointName?: pulumi.Input<string>; } /** * The set of arguments for constructing a ServiceEndpointServiceFabric resource. */ export interface ServiceEndpointServiceFabricArgs { /** * An `azureActiveDirectory` block as documented below. */ azureActiveDirectory?: pulumi.Input<inputs.ServiceEndpointServiceFabricAzureActiveDirectory>; /** * A `certificate` block as documented below. */ certificate?: pulumi.Input<inputs.ServiceEndpointServiceFabricCertificate>; /** * Client connection endpoint for the cluster. Prefix the value with `tcp://`;. This value overrides the publish profile. */ clusterEndpoint: pulumi.Input<string>; description?: pulumi.Input<string>; /** * A `none` block as documented below. */ none?: pulumi.Input<inputs.ServiceEndpointServiceFabricNone>; /** * The ID of the project. */ projectId: pulumi.Input<string>; /** * The Service Endpoint name. */ serviceEndpointName: pulumi.Input<string>; }