Module Security
This page documents the language specification for the azuredevops package. If you're looking for help working with the inputs, outputs, or functions of azuredevops resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
Resources
Resource ResourceAuthorization
class ResourceAuthorization extends CustomResource# azuredevops.Security.ResourceAuthorization
Manages authorization of resources, e.g. for access in build pipelines.
Currently supported resources: service endpoint (aka service connection, endpoint).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const project = new azuredevops.Core.Project("project", {projectName: "Test Project"});
const bitbucketAccount = new azuredevops.ServiceEndpoint.BitBucket("bitbucketAccount", {
projectId: project.id,
username: "xxxx",
password: "xxxx",
serviceEndpointName: "test-bitbucket",
description: "test",
});
const auth = new azuredevops.Security.ResourceAuthorization("auth", {
projectId: project.id,
resourceId: bitbucketAccount.id,
authorized: true,
});Relevant Links
constructor
new ResourceAuthorization(name: string, args: ResourceAuthorizationArgs, opts?: pulumi.CustomResourceOptions)Create a ResourceAuthorization resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceAuthorizationState, opts?: pulumi.CustomResourceOptions): ResourceAuthorizationGet an existing ResourceAuthorization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ResourceAuthorizationReturns true if the given object is an instance of ResourceAuthorization. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property authorized
public authorized: pulumi.Output<boolean>;Set to true to allow public access in the project. Type: boolean.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property projectId
public projectId: pulumi.Output<string>;The project ID or project name. Type: string.
property resourceId
public resourceId: pulumi.Output<string | undefined>;The ID of the resource to authorize. Type: string.
property type
public type: pulumi.Output<string | undefined>;The type of the resource to authorize. Type: string. Valid values: endpoint, queue. Default value: endpoint.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface ResourceAuthorizationArgs
interface ResourceAuthorizationArgsThe set of arguments for constructing a ResourceAuthorization resource.
property authorized
authorized: pulumi.Input<boolean>;Set to true to allow public access in the project. Type: boolean.
property projectId
projectId: pulumi.Input<string>;The project ID or project name. Type: string.
property resourceId
resourceId?: pulumi.Input<string>;The ID of the resource to authorize. Type: string.
property type
type?: pulumi.Input<string>;The type of the resource to authorize. Type: string. Valid values: endpoint, queue. Default value: endpoint.
interface ResourceAuthorizationState
interface ResourceAuthorizationStateInput properties used for looking up and filtering ResourceAuthorization resources.
property authorized
authorized?: pulumi.Input<boolean>;Set to true to allow public access in the project. Type: boolean.
property projectId
projectId?: pulumi.Input<string>;The project ID or project name. Type: string.
property resourceId
resourceId?: pulumi.Input<string>;The ID of the resource to authorize. Type: string.
property type
type?: pulumi.Input<string>;The type of the resource to authorize. Type: string. Valid values: endpoint, queue. Default value: endpoint.