1. Packages
  2. Doppler
  3. API Docs
  4. ProjectRole
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

doppler.ProjectRole

Explore with Pulumi AI

doppler logo
Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse

    Manage a Doppler project_role.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as doppler from "@pulumiverse/doppler";
    
    const logViewer = new doppler.ProjectRole("log_viewer", {
        name: "Log Viewer",
        permissions: ["enclave_config_logs"],
    });
    
    import pulumi
    import pulumiverse_doppler as doppler
    
    log_viewer = doppler.ProjectRole("log_viewer",
        name="Log Viewer",
        permissions=["enclave_config_logs"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-doppler/sdk/go/doppler"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := doppler.NewProjectRole(ctx, "log_viewer", &doppler.ProjectRoleArgs{
    			Name: pulumi.String("Log Viewer"),
    			Permissions: pulumi.StringArray{
    				pulumi.String("enclave_config_logs"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Doppler = Pulumiverse.Doppler;
    
    return await Deployment.RunAsync(() => 
    {
        var logViewer = new Doppler.ProjectRole("log_viewer", new()
        {
            Name = "Log Viewer",
            Permissions = new[]
            {
                "enclave_config_logs",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.doppler.ProjectRole;
    import com.pulumi.doppler.ProjectRoleArgs;
    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 logViewer = new ProjectRole("logViewer", ProjectRoleArgs.builder()
                .name("Log Viewer")
                .permissions("enclave_config_logs")
                .build());
    
        }
    }
    
    resources:
      logViewer:
        type: doppler:ProjectRole
        name: log_viewer
        properties:
          name: Log Viewer
          permissions:
            - enclave_config_logs
    

    Create ProjectRole Resource

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

    Constructor syntax

    new ProjectRole(name: string, args: ProjectRoleArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectRole(resource_name: str,
                    args: ProjectRoleArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectRole(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    name: Optional[str] = None,
                    permissions: Optional[Sequence[str]] = None)
    func NewProjectRole(ctx *Context, name string, args ProjectRoleArgs, opts ...ResourceOption) (*ProjectRole, error)
    public ProjectRole(string name, ProjectRoleArgs args, CustomResourceOptions? opts = null)
    public ProjectRole(String name, ProjectRoleArgs args)
    public ProjectRole(String name, ProjectRoleArgs args, CustomResourceOptions options)
    
    type: doppler:ProjectRole
    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 ProjectRoleArgs
    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 ProjectRoleArgs
    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 ProjectRoleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectRoleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectRoleArgs
    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 projectRoleResource = new Doppler.ProjectRole("projectRoleResource", new()
    {
        Name = "string",
        Permissions = new[]
        {
            "string",
        },
    });
    
    example, err := doppler.NewProjectRole(ctx, "projectRoleResource", &doppler.ProjectRoleArgs{
    	Name: pulumi.String("string"),
    	Permissions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var projectRoleResource = new ProjectRole("projectRoleResource", ProjectRoleArgs.builder()
        .name("string")
        .permissions("string")
        .build());
    
    project_role_resource = doppler.ProjectRole("projectRoleResource",
        name="string",
        permissions=["string"])
    
    const projectRoleResource = new doppler.ProjectRole("projectRoleResource", {
        name: "string",
        permissions: ["string"],
    });
    
    type: doppler:ProjectRole
    properties:
        name: string
        permissions:
            - string
    

    ProjectRole Resource Properties

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

    Inputs

    The ProjectRole resource accepts the following input properties:

    Name string
    The name of the Doppler project role
    Permissions List<string>
    A list of Doppler project permissions
    Name string
    The name of the Doppler project role
    Permissions []string
    A list of Doppler project permissions
    name String
    The name of the Doppler project role
    permissions List<String>
    A list of Doppler project permissions
    name string
    The name of the Doppler project role
    permissions string[]
    A list of Doppler project permissions
    name str
    The name of the Doppler project role
    permissions Sequence[str]
    A list of Doppler project permissions
    name String
    The name of the Doppler project role
    permissions List<String>
    A list of Doppler project permissions

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    The role's unique identifier
    IsCustomRole bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    The role's unique identifier
    IsCustomRole bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    The role's unique identifier
    isCustomRole Boolean
    Whether or not the role is custom (as opposed to Doppler built-in)
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    The role's unique identifier
    isCustomRole boolean
    Whether or not the role is custom (as opposed to Doppler built-in)
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    The role's unique identifier
    is_custom_role bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    The role's unique identifier
    isCustomRole Boolean
    Whether or not the role is custom (as opposed to Doppler built-in)

    Look up Existing ProjectRole Resource

    Get an existing ProjectRole 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?: ProjectRoleState, opts?: CustomResourceOptions): ProjectRole
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            identifier: Optional[str] = None,
            is_custom_role: Optional[bool] = None,
            name: Optional[str] = None,
            permissions: Optional[Sequence[str]] = None) -> ProjectRole
    func GetProjectRole(ctx *Context, name string, id IDInput, state *ProjectRoleState, opts ...ResourceOption) (*ProjectRole, error)
    public static ProjectRole Get(string name, Input<string> id, ProjectRoleState? state, CustomResourceOptions? opts = null)
    public static ProjectRole get(String name, Output<String> id, ProjectRoleState 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:
    Identifier string
    The role's unique identifier
    IsCustomRole bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    Name string
    The name of the Doppler project role
    Permissions List<string>
    A list of Doppler project permissions
    Identifier string
    The role's unique identifier
    IsCustomRole bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    Name string
    The name of the Doppler project role
    Permissions []string
    A list of Doppler project permissions
    identifier String
    The role's unique identifier
    isCustomRole Boolean
    Whether or not the role is custom (as opposed to Doppler built-in)
    name String
    The name of the Doppler project role
    permissions List<String>
    A list of Doppler project permissions
    identifier string
    The role's unique identifier
    isCustomRole boolean
    Whether or not the role is custom (as opposed to Doppler built-in)
    name string
    The name of the Doppler project role
    permissions string[]
    A list of Doppler project permissions
    identifier str
    The role's unique identifier
    is_custom_role bool
    Whether or not the role is custom (as opposed to Doppler built-in)
    name str
    The name of the Doppler project role
    permissions Sequence[str]
    A list of Doppler project permissions
    identifier String
    The role's unique identifier
    isCustomRole Boolean
    Whether or not the role is custom (as opposed to Doppler built-in)
    name String
    The name of the Doppler project role
    permissions List<String>
    A list of Doppler project permissions

    Import

    $ pulumi import doppler:index/projectRole:ProjectRole default <project-role-identifier>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    doppler pulumiverse/pulumi-doppler
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the doppler Terraform Provider.
    doppler logo
    Doppler v0.9.0 published on Tuesday, Aug 27, 2024 by Pulumiverse