Show / Hide Table of Contents

Class OrganizationBlock

This resource allows you to create and manage blocks for GitHub organizations.

Example Usage

using Pulumi;
using Github = Pulumi.Github;

class MyStack : Stack
{
public MyStack()
{
    var example = new Github.OrganizationBlock("example", new Github.OrganizationBlockArgs
    {
        Username = "paultyng",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
OrganizationBlock
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class OrganizationBlock : CustomResource

Constructors

View Source

OrganizationBlock(String, OrganizationBlockArgs, CustomResourceOptions)

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

Declaration
public OrganizationBlock(string name, OrganizationBlockArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

OrganizationBlockArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Etag

Declaration
public Output<string> Etag { get; }
Property Value
Type Description
Output<System.String>
View Source

Username

The name of the user to block.

Declaration
public Output<string> Username { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, OrganizationBlockState, CustomResourceOptions)

Get an existing OrganizationBlock resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static OrganizationBlock Get(string name, Input<string> id, OrganizationBlockState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

OrganizationBlockState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
OrganizationBlock
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.