1. Packages
  2. Nexus Provider
  3. API Docs
  4. PrivilegeWildcard
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

nexus.PrivilegeWildcard

Explore with Pulumi AI

nexus logo
nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers

    Use this resource to manage a wildcard privilege

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nexus from "@pulumi/nexus";
    
    const example = new nexus.PrivilegeWildcard("example", {
        description: "description",
        pattern: "nexus:*",
    });
    
    import pulumi
    import pulumi_nexus as nexus
    
    example = nexus.PrivilegeWildcard("example",
        description="description",
        pattern="nexus:*")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/nexus/v2/nexus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nexus.NewPrivilegeWildcard(ctx, "example", &nexus.PrivilegeWildcardArgs{
    			Description: pulumi.String("description"),
    			Pattern:     pulumi.String("nexus:*"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nexus = Pulumi.Nexus;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Nexus.PrivilegeWildcard("example", new()
        {
            Description = "description",
            Pattern = "nexus:*",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nexus.PrivilegeWildcard;
    import com.pulumi.nexus.PrivilegeWildcardArgs;
    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 example = new PrivilegeWildcard("example", PrivilegeWildcardArgs.builder()
                .description("description")
                .pattern("nexus:*")
                .build());
    
        }
    }
    
    resources:
      example:
        type: nexus:PrivilegeWildcard
        properties:
          description: description
          pattern: nexus:*
    

    Create PrivilegeWildcard Resource

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

    Constructor syntax

    new PrivilegeWildcard(name: string, args?: PrivilegeWildcardArgs, opts?: CustomResourceOptions);
    @overload
    def PrivilegeWildcard(resource_name: str,
                          args: Optional[PrivilegeWildcardArgs] = None,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivilegeWildcard(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          pattern: Optional[str] = None)
    func NewPrivilegeWildcard(ctx *Context, name string, args *PrivilegeWildcardArgs, opts ...ResourceOption) (*PrivilegeWildcard, error)
    public PrivilegeWildcard(string name, PrivilegeWildcardArgs? args = null, CustomResourceOptions? opts = null)
    public PrivilegeWildcard(String name, PrivilegeWildcardArgs args)
    public PrivilegeWildcard(String name, PrivilegeWildcardArgs args, CustomResourceOptions options)
    
    type: nexus:PrivilegeWildcard
    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 PrivilegeWildcardArgs
    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 PrivilegeWildcardArgs
    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 PrivilegeWildcardArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivilegeWildcardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivilegeWildcardArgs
    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 privilegeWildcardResource = new Nexus.PrivilegeWildcard("privilegeWildcardResource", new()
    {
        Description = "string",
        Name = "string",
        Pattern = "string",
    });
    
    example, err := nexus.NewPrivilegeWildcard(ctx, "privilegeWildcardResource", &nexus.PrivilegeWildcardArgs{
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Pattern:     pulumi.String("string"),
    })
    
    var privilegeWildcardResource = new PrivilegeWildcard("privilegeWildcardResource", PrivilegeWildcardArgs.builder()
        .description("string")
        .name("string")
        .pattern("string")
        .build());
    
    privilege_wildcard_resource = nexus.PrivilegeWildcard("privilegeWildcardResource",
        description="string",
        name="string",
        pattern="string")
    
    const privilegeWildcardResource = new nexus.PrivilegeWildcard("privilegeWildcardResource", {
        description: "string",
        name: "string",
        pattern: "string",
    });
    
    type: nexus:PrivilegeWildcard
    properties:
        description: string
        name: string
        pattern: string
    

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

    Description string
    A description
    Name string
    The name of the privilege. This value cannot be changed.
    Pattern string
    The privilege pattern
    Description string
    A description
    Name string
    The name of the privilege. This value cannot be changed.
    Pattern string
    The privilege pattern
    description String
    A description
    name String
    The name of the privilege. This value cannot be changed.
    pattern String
    The privilege pattern
    description string
    A description
    name string
    The name of the privilege. This value cannot be changed.
    pattern string
    The privilege pattern
    description str
    A description
    name str
    The name of the privilege. This value cannot be changed.
    pattern str
    The privilege pattern
    description String
    A description
    name String
    The name of the privilege. This value cannot be changed.
    pattern String
    The privilege pattern

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivilegeWildcard 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 PrivilegeWildcard Resource

    Get an existing PrivilegeWildcard 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?: PrivilegeWildcardState, opts?: CustomResourceOptions): PrivilegeWildcard
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            pattern: Optional[str] = None) -> PrivilegeWildcard
    func GetPrivilegeWildcard(ctx *Context, name string, id IDInput, state *PrivilegeWildcardState, opts ...ResourceOption) (*PrivilegeWildcard, error)
    public static PrivilegeWildcard Get(string name, Input<string> id, PrivilegeWildcardState? state, CustomResourceOptions? opts = null)
    public static PrivilegeWildcard get(String name, Output<String> id, PrivilegeWildcardState state, CustomResourceOptions options)
    resources:  _:    type: nexus:PrivilegeWildcard    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:
    Description string
    A description
    Name string
    The name of the privilege. This value cannot be changed.
    Pattern string
    The privilege pattern
    Description string
    A description
    Name string
    The name of the privilege. This value cannot be changed.
    Pattern string
    The privilege pattern
    description String
    A description
    name String
    The name of the privilege. This value cannot be changed.
    pattern String
    The privilege pattern
    description string
    A description
    name string
    The name of the privilege. This value cannot be changed.
    pattern string
    The privilege pattern
    description str
    A description
    name str
    The name of the privilege. This value cannot be changed.
    pattern str
    The privilege pattern
    description String
    A description
    name String
    The name of the privilege. This value cannot be changed.
    pattern String
    The privilege pattern

    Import

    import using the name of the privilege

    $ pulumi import nexus:index/privilegeWildcard:PrivilegeWildcard example name
    

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

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    nexus 2.5.0 published on Monday, Apr 14, 2025 by datadrivers