1. Packages
  2. Nexus Provider
  3. API Docs
  4. Capability
Viewing docs for nexus 2.7.0
published on Sunday, Feb 22, 2026 by datadrivers
nexus logo
Viewing docs for nexus 2.7.0
published on Sunday, Feb 22, 2026 by datadrivers

    Create Capability Resource

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

    Constructor syntax

    new Capability(name: string, args: CapabilityArgs, opts?: CustomResourceOptions);
    @overload
    def Capability(resource_name: str,
                   args: CapabilityArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Capability(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   type: Optional[str] = None,
                   enabled: Optional[bool] = None,
                   notes: Optional[str] = None,
                   properties: Optional[Mapping[str, str]] = None)
    func NewCapability(ctx *Context, name string, args CapabilityArgs, opts ...ResourceOption) (*Capability, error)
    public Capability(string name, CapabilityArgs args, CustomResourceOptions? opts = null)
    public Capability(String name, CapabilityArgs args)
    public Capability(String name, CapabilityArgs args, CustomResourceOptions options)
    
    type: nexus:Capability
    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 CapabilityArgs
    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 CapabilityArgs
    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 CapabilityArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CapabilityArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CapabilityArgs
    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 capabilityResource = new Nexus.Capability("capabilityResource", new()
    {
        Type = "string",
        Enabled = false,
        Notes = "string",
        Properties = 
        {
            { "string", "string" },
        },
    });
    
    example, err := nexus.NewCapability(ctx, "capabilityResource", &nexus.CapabilityArgs{
    	Type:    pulumi.String("string"),
    	Enabled: pulumi.Bool(false),
    	Notes:   pulumi.String("string"),
    	Properties: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var capabilityResource = new Capability("capabilityResource", CapabilityArgs.builder()
        .type("string")
        .enabled(false)
        .notes("string")
        .properties(Map.of("string", "string"))
        .build());
    
    capability_resource = nexus.Capability("capabilityResource",
        type="string",
        enabled=False,
        notes="string",
        properties={
            "string": "string",
        })
    
    const capabilityResource = new nexus.Capability("capabilityResource", {
        type: "string",
        enabled: false,
        notes: "string",
        properties: {
            string: "string",
        },
    });
    
    type: nexus:Capability
    properties:
        enabled: false
        notes: string
        properties:
            string: string
        type: string
    

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

    Type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    Enabled bool
    Whether the capability is enabled.
    Notes string
    Free-form notes about the capability.
    Properties Dictionary<string, string>
    Type-specific configuration properties.
    Type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    Enabled bool
    Whether the capability is enabled.
    Notes string
    Free-form notes about the capability.
    Properties map[string]string
    Type-specific configuration properties.
    type String
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled Boolean
    Whether the capability is enabled.
    notes String
    Free-form notes about the capability.
    properties Map<String,String>
    Type-specific configuration properties.
    type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled boolean
    Whether the capability is enabled.
    notes string
    Free-form notes about the capability.
    properties {[key: string]: string}
    Type-specific configuration properties.
    type str
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled bool
    Whether the capability is enabled.
    notes str
    Free-form notes about the capability.
    properties Mapping[str, str]
    Type-specific configuration properties.
    type String
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled Boolean
    Whether the capability is enabled.
    notes String
    Free-form notes about the capability.
    properties Map<String>
    Type-specific configuration properties.

    Outputs

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

    Get an existing Capability 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?: CapabilityState, opts?: CustomResourceOptions): Capability
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            notes: Optional[str] = None,
            properties: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None) -> Capability
    func GetCapability(ctx *Context, name string, id IDInput, state *CapabilityState, opts ...ResourceOption) (*Capability, error)
    public static Capability Get(string name, Input<string> id, CapabilityState? state, CustomResourceOptions? opts = null)
    public static Capability get(String name, Output<String> id, CapabilityState state, CustomResourceOptions options)
    resources:  _:    type: nexus:Capability    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:
    Enabled bool
    Whether the capability is enabled.
    Notes string
    Free-form notes about the capability.
    Properties Dictionary<string, string>
    Type-specific configuration properties.
    Type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    Enabled bool
    Whether the capability is enabled.
    Notes string
    Free-form notes about the capability.
    Properties map[string]string
    Type-specific configuration properties.
    Type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled Boolean
    Whether the capability is enabled.
    notes String
    Free-form notes about the capability.
    properties Map<String,String>
    Type-specific configuration properties.
    type String
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled boolean
    Whether the capability is enabled.
    notes string
    Free-form notes about the capability.
    properties {[key: string]: string}
    Type-specific configuration properties.
    type string
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled bool
    Whether the capability is enabled.
    notes str
    Free-form notes about the capability.
    properties Mapping[str, str]
    Type-specific configuration properties.
    type str
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').
    enabled Boolean
    Whether the capability is enabled.
    notes String
    Free-form notes about the capability.
    properties Map<String>
    Type-specific configuration properties.
    type String
    The type of capability (e.g., 'OutreachManagementCapability', 'HttpClientCapability').

    Package Details

    Repository
    nexus datadrivers/terraform-provider-nexus
    License
    Notes
    This Pulumi package is based on the nexus Terraform Provider.
    nexus logo
    Viewing docs for nexus 2.7.0
    published on Sunday, Feb 22, 2026 by datadrivers
      Try Pulumi Cloud free. Your team will thank you.