1. Packages
  2. Vantage Provider
  3. API Docs
  4. AccessGrant
vantage 0.1.50 published on Monday, Apr 7, 2025 by vantage-sh

vantage.AccessGrant

Explore with Pulumi AI

Manages an AccessGrant.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vantage from "@pulumi/vantage";

const demoAccessGrant = new vantage.AccessGrant("demoAccessGrant", {
    resourceToken: "rprt_39d256c871cb6b2b",
    teamToken: "team_bd5c2d8abc233bfd",
});
Copy
import pulumi
import pulumi_vantage as vantage

demo_access_grant = vantage.AccessGrant("demoAccessGrant",
    resource_token="rprt_39d256c871cb6b2b",
    team_token="team_bd5c2d8abc233bfd")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vantage/vantage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vantage.NewAccessGrant(ctx, "demoAccessGrant", &vantage.AccessGrantArgs{
			ResourceToken: pulumi.String("rprt_39d256c871cb6b2b"),
			TeamToken:     pulumi.String("team_bd5c2d8abc233bfd"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vantage = Pulumi.Vantage;

return await Deployment.RunAsync(() => 
{
    var demoAccessGrant = new Vantage.AccessGrant("demoAccessGrant", new()
    {
        ResourceToken = "rprt_39d256c871cb6b2b",
        TeamToken = "team_bd5c2d8abc233bfd",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vantage.AccessGrant;
import com.pulumi.vantage.AccessGrantArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var demoAccessGrant = new AccessGrant("demoAccessGrant", AccessGrantArgs.builder()
            .resourceToken("rprt_39d256c871cb6b2b")
            .teamToken("team_bd5c2d8abc233bfd")
            .build());

    }
}
Copy
resources:
  demoAccessGrant:
    type: vantage:AccessGrant
    properties:
      resourceToken: rprt_39d256c871cb6b2b
      teamToken: team_bd5c2d8abc233bfd
Copy

Create AccessGrant Resource

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

Constructor syntax

new AccessGrant(name: string, args: AccessGrantArgs, opts?: CustomResourceOptions);
@overload
def AccessGrant(resource_name: str,
                args: AccessGrantArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def AccessGrant(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_token: Optional[str] = None,
                team_token: Optional[str] = None,
                access: Optional[str] = None)
func NewAccessGrant(ctx *Context, name string, args AccessGrantArgs, opts ...ResourceOption) (*AccessGrant, error)
public AccessGrant(string name, AccessGrantArgs args, CustomResourceOptions? opts = null)
public AccessGrant(String name, AccessGrantArgs args)
public AccessGrant(String name, AccessGrantArgs args, CustomResourceOptions options)
type: vantage:AccessGrant
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AccessGrantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AccessGrantArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AccessGrantArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AccessGrantArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AccessGrantArgs
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 accessGrantResource = new Vantage.AccessGrant("accessGrantResource", new()
{
    ResourceToken = "string",
    TeamToken = "string",
    Access = "string",
});
Copy
example, err := vantage.NewAccessGrant(ctx, "accessGrantResource", &vantage.AccessGrantArgs{
ResourceToken: pulumi.String("string"),
TeamToken: pulumi.String("string"),
Access: pulumi.String("string"),
})
Copy
var accessGrantResource = new AccessGrant("accessGrantResource", AccessGrantArgs.builder()
    .resourceToken("string")
    .teamToken("string")
    .access("string")
    .build());
Copy
access_grant_resource = vantage.AccessGrant("accessGrantResource",
    resource_token="string",
    team_token="string",
    access="string")
Copy
const accessGrantResource = new vantage.AccessGrant("accessGrantResource", {
    resourceToken: "string",
    teamToken: "string",
    access: "string",
});
Copy
type: vantage:AccessGrant
properties:
    access: string
    resourceToken: string
    teamToken: string
Copy

AccessGrant 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 AccessGrant resource accepts the following input properties:

ResourceToken This property is required. string
Token of the resource being granted.
TeamToken This property is required. string
Token of the team being granted.
Access string
Access level of the grant. Must be either allowed or denied.
ResourceToken This property is required. string
Token of the resource being granted.
TeamToken This property is required. string
Token of the team being granted.
Access string
Access level of the grant. Must be either allowed or denied.
resourceToken This property is required. String
Token of the resource being granted.
teamToken This property is required. String
Token of the team being granted.
access String
Access level of the grant. Must be either allowed or denied.
resourceToken This property is required. string
Token of the resource being granted.
teamToken This property is required. string
Token of the team being granted.
access string
Access level of the grant. Must be either allowed or denied.
resource_token This property is required. str
Token of the resource being granted.
team_token This property is required. str
Token of the team being granted.
access str
Access level of the grant. Must be either allowed or denied.
resourceToken This property is required. String
Token of the resource being granted.
teamToken This property is required. String
Token of the team being granted.
access String
Access level of the grant. Must be either allowed or denied.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Token string
Token of the access grant.
Id string
The provider-assigned unique ID for this managed resource.
Token string
Token of the access grant.
id String
The provider-assigned unique ID for this managed resource.
token String
Token of the access grant.
id string
The provider-assigned unique ID for this managed resource.
token string
Token of the access grant.
id str
The provider-assigned unique ID for this managed resource.
token str
Token of the access grant.
id String
The provider-assigned unique ID for this managed resource.
token String
Token of the access grant.

Look up Existing AccessGrant Resource

Get an existing AccessGrant 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?: AccessGrantState, opts?: CustomResourceOptions): AccessGrant
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access: Optional[str] = None,
        resource_token: Optional[str] = None,
        team_token: Optional[str] = None,
        token: Optional[str] = None) -> AccessGrant
func GetAccessGrant(ctx *Context, name string, id IDInput, state *AccessGrantState, opts ...ResourceOption) (*AccessGrant, error)
public static AccessGrant Get(string name, Input<string> id, AccessGrantState? state, CustomResourceOptions? opts = null)
public static AccessGrant get(String name, Output<String> id, AccessGrantState state, CustomResourceOptions options)
resources:  _:    type: vantage:AccessGrant    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Access string
Access level of the grant. Must be either allowed or denied.
ResourceToken string
Token of the resource being granted.
TeamToken string
Token of the team being granted.
Token string
Token of the access grant.
Access string
Access level of the grant. Must be either allowed or denied.
ResourceToken string
Token of the resource being granted.
TeamToken string
Token of the team being granted.
Token string
Token of the access grant.
access String
Access level of the grant. Must be either allowed or denied.
resourceToken String
Token of the resource being granted.
teamToken String
Token of the team being granted.
token String
Token of the access grant.
access string
Access level of the grant. Must be either allowed or denied.
resourceToken string
Token of the resource being granted.
teamToken string
Token of the team being granted.
token string
Token of the access grant.
access str
Access level of the grant. Must be either allowed or denied.
resource_token str
Token of the resource being granted.
team_token str
Token of the team being granted.
token str
Token of the access grant.
access String
Access level of the grant. Must be either allowed or denied.
resourceToken String
Token of the resource being granted.
teamToken String
Token of the team being granted.
token String
Token of the access grant.

Package Details

Repository
vantage vantage-sh/terraform-provider-vantage
License
Notes
This Pulumi package is based on the vantage Terraform Provider.