1. Packages
  2. Packages
  3. Github Provider
  4. API Docs
  5. UserInvitationAccepter
Viewing docs for GitHub v5.26.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
github logo
Viewing docs for GitHub v5.26.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Create UserInvitationAccepter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserInvitationAccepter(name: string, args?: UserInvitationAccepterArgs, opts?: CustomResourceOptions);
    @overload
    def UserInvitationAccepter(resource_name: str,
                               args: Optional[UserInvitationAccepterArgs] = None,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserInvitationAccepter(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               allow_empty_id: Optional[bool] = None,
                               invitation_id: Optional[str] = None)
    func NewUserInvitationAccepter(ctx *Context, name string, args *UserInvitationAccepterArgs, opts ...ResourceOption) (*UserInvitationAccepter, error)
    public UserInvitationAccepter(string name, UserInvitationAccepterArgs? args = null, CustomResourceOptions? opts = null)
    public UserInvitationAccepter(String name, UserInvitationAccepterArgs args)
    public UserInvitationAccepter(String name, UserInvitationAccepterArgs args, CustomResourceOptions options)
    
    type: github:UserInvitationAccepter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UserInvitationAccepterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UserInvitationAccepterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UserInvitationAccepterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserInvitationAccepterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserInvitationAccepterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var userInvitationAccepterResource = new Github.UserInvitationAccepter("userInvitationAccepterResource", new()
    {
        AllowEmptyId = false,
        InvitationId = "string",
    });
    
    example, err := github.NewUserInvitationAccepter(ctx, "userInvitationAccepterResource", &github.UserInvitationAccepterArgs{
    	AllowEmptyId: pulumi.Bool(false),
    	InvitationId: pulumi.String("string"),
    })
    
    var userInvitationAccepterResource = new UserInvitationAccepter("userInvitationAccepterResource", UserInvitationAccepterArgs.builder()
        .allowEmptyId(false)
        .invitationId("string")
        .build());
    
    user_invitation_accepter_resource = github.UserInvitationAccepter("userInvitationAccepterResource",
        allow_empty_id=False,
        invitation_id="string")
    
    const userInvitationAccepterResource = new github.UserInvitationAccepter("userInvitationAccepterResource", {
        allowEmptyId: false,
        invitationId: "string",
    });
    
    type: github:UserInvitationAccepter
    properties:
        allowEmptyId: false
        invitationId: string
    

    UserInvitationAccepter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The UserInvitationAccepter resource accepts the following input properties:

    AllowEmptyId bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    InvitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    AllowEmptyId bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    InvitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId Boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId String
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allow_empty_id bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitation_id str
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId Boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId String
    ID of the invitation to accept. Must be set when allow_empty_id is false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserInvitationAccepter resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing UserInvitationAccepter Resource

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

    public static get(name: string, id: Input<ID>, state?: UserInvitationAccepterState, opts?: CustomResourceOptions): UserInvitationAccepter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_empty_id: Optional[bool] = None,
            invitation_id: Optional[str] = None) -> UserInvitationAccepter
    func GetUserInvitationAccepter(ctx *Context, name string, id IDInput, state *UserInvitationAccepterState, opts ...ResourceOption) (*UserInvitationAccepter, error)
    public static UserInvitationAccepter Get(string name, Input<string> id, UserInvitationAccepterState? state, CustomResourceOptions? opts = null)
    public static UserInvitationAccepter get(String name, Output<String> id, UserInvitationAccepterState state, CustomResourceOptions options)
    resources:  _:    type: github:UserInvitationAccepter    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowEmptyId bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    InvitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    AllowEmptyId bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    InvitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId Boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId String
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId string
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allow_empty_id bool
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitation_id str
    ID of the invitation to accept. Must be set when allow_empty_id is false.
    allowEmptyId Boolean
    Allow the ID to be unset. This will result in the resource being skipped when the ID is not set instead of returning an error.
    invitationId String
    ID of the invitation to accept. Must be set when allow_empty_id is false.

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    Viewing docs for GitHub v5.26.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.