nexus.PrivilegeApplication
Explore with Pulumi AI
Use this resource to manage a privilege for an application
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nexus from "@pulumi/nexus";
const example = new nexus.PrivilegeApplication("example", {
actions: [
"ADD",
"READ",
"EDIT",
"DELETE",
],
description: "description",
domain: "domain",
});
import pulumi
import pulumi_nexus as nexus
example = nexus.PrivilegeApplication("example",
actions=[
"ADD",
"READ",
"EDIT",
"DELETE",
],
description="description",
domain="domain")
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.NewPrivilegeApplication(ctx, "example", &nexus.PrivilegeApplicationArgs{
Actions: pulumi.StringArray{
pulumi.String("ADD"),
pulumi.String("READ"),
pulumi.String("EDIT"),
pulumi.String("DELETE"),
},
Description: pulumi.String("description"),
Domain: pulumi.String("domain"),
})
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.PrivilegeApplication("example", new()
{
Actions = new[]
{
"ADD",
"READ",
"EDIT",
"DELETE",
},
Description = "description",
Domain = "domain",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nexus.PrivilegeApplication;
import com.pulumi.nexus.PrivilegeApplicationArgs;
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 PrivilegeApplication("example", PrivilegeApplicationArgs.builder()
.actions(
"ADD",
"READ",
"EDIT",
"DELETE")
.description("description")
.domain("domain")
.build());
}
}
resources:
example:
type: nexus:PrivilegeApplication
properties:
actions:
- ADD
- READ
- EDIT
- DELETE
description: description
domain: domain
Create PrivilegeApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivilegeApplication(name: string, args: PrivilegeApplicationArgs, opts?: CustomResourceOptions);
@overload
def PrivilegeApplication(resource_name: str,
args: PrivilegeApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivilegeApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[str]] = None,
domain: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewPrivilegeApplication(ctx *Context, name string, args PrivilegeApplicationArgs, opts ...ResourceOption) (*PrivilegeApplication, error)
public PrivilegeApplication(string name, PrivilegeApplicationArgs args, CustomResourceOptions? opts = null)
public PrivilegeApplication(String name, PrivilegeApplicationArgs args)
public PrivilegeApplication(String name, PrivilegeApplicationArgs args, CustomResourceOptions options)
type: nexus:PrivilegeApplication
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 PrivilegeApplicationArgs
- 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 PrivilegeApplicationArgs
- 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 PrivilegeApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivilegeApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivilegeApplicationArgs
- 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 privilegeApplicationResource = new Nexus.PrivilegeApplication("privilegeApplicationResource", new()
{
Actions = new[]
{
"string",
},
Domain = "string",
Description = "string",
Name = "string",
});
example, err := nexus.NewPrivilegeApplication(ctx, "privilegeApplicationResource", &nexus.PrivilegeApplicationArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
Domain: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var privilegeApplicationResource = new PrivilegeApplication("privilegeApplicationResource", PrivilegeApplicationArgs.builder()
.actions("string")
.domain("string")
.description("string")
.name("string")
.build());
privilege_application_resource = nexus.PrivilegeApplication("privilegeApplicationResource",
actions=["string"],
domain="string",
description="string",
name="string")
const privilegeApplicationResource = new nexus.PrivilegeApplication("privilegeApplicationResource", {
actions: ["string"],
domain: "string",
description: "string",
name: "string",
});
type: nexus:PrivilegeApplication
properties:
actions:
- string
description: string
domain: string
name: string
PrivilegeApplication 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 PrivilegeApplication resource accepts the following input properties:
- Actions List<string>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- Domain string
- A domain
- Description string
- A description
- Name string
- The name of the privilege. This value cannot be changed.
- Actions []string
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- Domain string
- A domain
- Description string
- A description
- Name string
- The name of the privilege. This value cannot be changed.
- actions List<String>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- domain String
- A domain
- description String
- A description
- name String
- The name of the privilege. This value cannot be changed.
- actions string[]
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- domain string
- A domain
- description string
- A description
- name string
- The name of the privilege. This value cannot be changed.
- actions Sequence[str]
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- domain str
- A domain
- description str
- A description
- name str
- The name of the privilege. This value cannot be changed.
- actions List<String>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- domain String
- A domain
- description String
- A description
- name String
- The name of the privilege. This value cannot be changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivilegeApplication 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 PrivilegeApplication Resource
Get an existing PrivilegeApplication 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?: PrivilegeApplicationState, opts?: CustomResourceOptions): PrivilegeApplication
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[str]] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
name: Optional[str] = None) -> PrivilegeApplication
func GetPrivilegeApplication(ctx *Context, name string, id IDInput, state *PrivilegeApplicationState, opts ...ResourceOption) (*PrivilegeApplication, error)
public static PrivilegeApplication Get(string name, Input<string> id, PrivilegeApplicationState? state, CustomResourceOptions? opts = null)
public static PrivilegeApplication get(String name, Output<String> id, PrivilegeApplicationState state, CustomResourceOptions options)
resources: _: type: nexus:PrivilegeApplication 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.
- Actions List<string>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- Description string
- A description
- Domain string
- A domain
- Name string
- The name of the privilege. This value cannot be changed.
- Actions []string
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- Description string
- A description
- Domain string
- A domain
- Name string
- The name of the privilege. This value cannot be changed.
- actions List<String>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- description String
- A description
- domain String
- A domain
- name String
- The name of the privilege. This value cannot be changed.
- actions string[]
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- description string
- A description
- domain string
- A domain
- name string
- The name of the privilege. This value cannot be changed.
- actions Sequence[str]
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- description str
- A description
- domain str
- A domain
- name str
- The name of the privilege. This value cannot be changed.
- actions List<String>
- A list of allowed actions. For a list of applicable values see https://help.sonatype.com/repomanager3/nexus-repository-administration/access-control/privileges#Privileges-PrivilegeTypes
- description String
- A description
- domain String
- A domain
- name String
- The name of the privilege. This value cannot be changed.
Import
import using the name of the privilege
$ pulumi import nexus:index/privilegeApplication:PrivilegeApplication 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.