UserInvitationAccepter
Provides a resource to manage GitHub repository collaborator invitations.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var exampleRepository = new Github.Repository("exampleRepository", new Github.RepositoryArgs
{
});
var exampleRepositoryCollaborator = new Github.RepositoryCollaborator("exampleRepositoryCollaborator", new Github.RepositoryCollaboratorArgs
{
Permission = "push",
Repository = exampleRepository.Name,
Username = "example-username",
});
var invitee = new Github.Provider("invitee", new Github.ProviderArgs
{
Token = @var.Invitee_token,
});
var exampleUserInvitationAccepter = new Github.UserInvitationAccepter("exampleUserInvitationAccepter", new Github.UserInvitationAccepterArgs
{
InvitationId = exampleRepositoryCollaborator.InvitationId,
});
}
}
Coming soon!
import pulumi
import pulumi_github as github
import pulumi_pulumi as pulumi
example_repository = github.Repository("exampleRepository")
example_repository_collaborator = github.RepositoryCollaborator("exampleRepositoryCollaborator",
permission="push",
repository=example_repository.name,
username="example-username")
invitee = pulumi.providers.Github("invitee", token=var["invitee_token"])
example_user_invitation_accepter = github.UserInvitationAccepter("exampleUserInvitationAccepter", invitation_id=example_repository_collaborator.invitation_id)import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const exampleRepository = new github.Repository("example", {});
const exampleRepositoryCollaborator = new github.RepositoryCollaborator("example", {
permission: "push",
repository: exampleRepository.name,
username: "example-username",
});
const invitee = new github.Provider("invitee", {
token: var_invitee_token,
});
const exampleUserInvitationAccepter = new github.UserInvitationAccepter("example", {
invitationId: exampleRepositoryCollaborator.invitationId,
}, { provider: invitee });Create a UserInvitationAccepter Resource
new UserInvitationAccepter(name: string, args: UserInvitationAccepterArgs, opts?: CustomResourceOptions);def UserInvitationAccepter(resource_name, opts=None, invitation_id=None, __props__=None);func NewUserInvitationAccepter(ctx *Context, name string, args UserInvitationAccepterArgs, opts ...ResourceOption) (*UserInvitationAccepter, error)public UserInvitationAccepter(string name, UserInvitationAccepterArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
UserInvitationAccepter Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The UserInvitationAccepter resource accepts the following input properties:
- Invitation
Id string ID of the invitation to accept
- Invitation
Id string ID of the invitation to accept
- invitation
Id string ID of the invitation to accept
- invitation_
id str ID of the invitation to accept
Outputs
All input properties are implicitly available as output properties. Additionally, the UserInvitationAccepter resource produces the following output properties:
Look up an 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): UserInvitationAccepterstatic get(resource_name, id, opts=None, invitation_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Invitation
Id string ID of the invitation to accept
- Invitation
Id string ID of the invitation to accept
- invitation
Id string ID of the invitation to accept
- invitation_
id str ID of the invitation to accept
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.