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,
});

constructor

new ResourceAuthorization(name: string, args: ResourceAuthorizationArgs, opts?: pulumi.CustomResourceOptions)

Create a ResourceAuthorization resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A 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): ResourceAuthorization

Get 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 | undefined

method isInstance

public static isInstance(obj: any): obj is ResourceAuthorization

Returns 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 ResourceAuthorizationArgs

The 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 ResourceAuthorizationState

Input 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.