1. Packages
  2. Vantage
  3. API Docs
  4. AccessGrant
Vantage v0.0.3 published on Wednesday, Jan 31, 2024 by lbrlabs

vantage.AccessGrant

Explore with Pulumi AI

vantage logo
Vantage v0.0.3 published on Wednesday, Jan 31, 2024 by lbrlabs

    Manages an AccessGrant.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vantage = Lbrlabs.PulumiPackage.Vantage;
    
    return await Deployment.RunAsync(() => 
    {
        var demoAccessGrant = new Vantage.AccessGrant("demoAccessGrant", new()
        {
            ResourceToken = "rprt_39d256c871cb6b2b",
            TeamToken = "team_bd5c2d8abc233bfd",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-vantage/sdk/go/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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_vantage as vantage
    
    demo_access_grant = vantage.AccessGrant("demoAccessGrant",
        resource_token="rprt_39d256c871cb6b2b",
        team_token="team_bd5c2d8abc233bfd")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as vantage from "@lbrlabs/pulumi-vantage";
    
    const demoAccessGrant = new vantage.AccessGrant("demoAccessGrant", {
        resourceToken: "rprt_39d256c871cb6b2b",
        teamToken: "team_bd5c2d8abc233bfd",
    });
    
    resources:
      demoAccessGrant:
        type: vantage:AccessGrant
        properties:
          resourceToken: rprt_39d256c871cb6b2b
          teamToken: team_bd5c2d8abc233bfd
    

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

    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 string
    Token of the resource being granted.
    TeamToken string
    Token of the team being granted.
    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.
    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.
    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.
    access string
    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.
    access str
    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.
    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)
    Resource lookup is not supported in YAML
    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:
    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 lbrlabs/pulumi-vantage
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vantage Terraform Provider.
    vantage logo
    Vantage v0.0.3 published on Wednesday, Jan 31, 2024 by lbrlabs