1. Packages
  2. Nsxt Provider
  3. API Docs
  4. PolicyContextProfileCustomAttribute
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.PolicyContextProfileCustomAttribute

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    Create PolicyContextProfileCustomAttribute Resource

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

    Constructor syntax

    new PolicyContextProfileCustomAttribute(name: string, args: PolicyContextProfileCustomAttributeArgs, opts?: CustomResourceOptions);
    @overload
    def PolicyContextProfileCustomAttribute(resource_name: str,
                                            args: PolicyContextProfileCustomAttributeArgs,
                                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def PolicyContextProfileCustomAttribute(resource_name: str,
                                            opts: Optional[ResourceOptions] = None,
                                            attribute: Optional[str] = None,
                                            key: Optional[str] = None,
                                            context: Optional[PolicyContextProfileCustomAttributeContextArgs] = None,
                                            policy_context_profile_custom_attribute_id: Optional[str] = None)
    func NewPolicyContextProfileCustomAttribute(ctx *Context, name string, args PolicyContextProfileCustomAttributeArgs, opts ...ResourceOption) (*PolicyContextProfileCustomAttribute, error)
    public PolicyContextProfileCustomAttribute(string name, PolicyContextProfileCustomAttributeArgs args, CustomResourceOptions? opts = null)
    public PolicyContextProfileCustomAttribute(String name, PolicyContextProfileCustomAttributeArgs args)
    public PolicyContextProfileCustomAttribute(String name, PolicyContextProfileCustomAttributeArgs args, CustomResourceOptions options)
    
    type: nsxt:PolicyContextProfileCustomAttribute
    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 PolicyContextProfileCustomAttributeArgs
    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 PolicyContextProfileCustomAttributeArgs
    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 PolicyContextProfileCustomAttributeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PolicyContextProfileCustomAttributeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PolicyContextProfileCustomAttributeArgs
    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 policyContextProfileCustomAttributeResource = new Nsxt.PolicyContextProfileCustomAttribute("policyContextProfileCustomAttributeResource", new()
    {
        Attribute = "string",
        Key = "string",
        Context = new Nsxt.Inputs.PolicyContextProfileCustomAttributeContextArgs
        {
            ProjectId = "string",
        },
        PolicyContextProfileCustomAttributeId = "string",
    });
    
    example, err := nsxt.NewPolicyContextProfileCustomAttribute(ctx, "policyContextProfileCustomAttributeResource", &nsxt.PolicyContextProfileCustomAttributeArgs{
    	Attribute: pulumi.String("string"),
    	Key:       pulumi.String("string"),
    	Context: &nsxt.PolicyContextProfileCustomAttributeContextArgs{
    		ProjectId: pulumi.String("string"),
    	},
    	PolicyContextProfileCustomAttributeId: pulumi.String("string"),
    })
    
    var policyContextProfileCustomAttributeResource = new PolicyContextProfileCustomAttribute("policyContextProfileCustomAttributeResource", PolicyContextProfileCustomAttributeArgs.builder()
        .attribute("string")
        .key("string")
        .context(PolicyContextProfileCustomAttributeContextArgs.builder()
            .projectId("string")
            .build())
        .policyContextProfileCustomAttributeId("string")
        .build());
    
    policy_context_profile_custom_attribute_resource = nsxt.PolicyContextProfileCustomAttribute("policyContextProfileCustomAttributeResource",
        attribute="string",
        key="string",
        context={
            "project_id": "string",
        },
        policy_context_profile_custom_attribute_id="string")
    
    const policyContextProfileCustomAttributeResource = new nsxt.PolicyContextProfileCustomAttribute("policyContextProfileCustomAttributeResource", {
        attribute: "string",
        key: "string",
        context: {
            projectId: "string",
        },
        policyContextProfileCustomAttributeId: "string",
    });
    
    type: nsxt:PolicyContextProfileCustomAttribute
    properties:
        attribute: string
        context:
            projectId: string
        key: string
        policyContextProfileCustomAttributeId: string
    

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

    Attribute string
    FQDN or URL to be used as custom attribute.
    Key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    Context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    PolicyContextProfileCustomAttributeId string
    Attribute string
    FQDN or URL to be used as custom attribute.
    Key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    Context PolicyContextProfileCustomAttributeContextArgs
    The context which the object belongs to
    PolicyContextProfileCustomAttributeId string
    attribute String
    FQDN or URL to be used as custom attribute.
    key String
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    policyContextProfileCustomAttributeId String
    attribute string
    FQDN or URL to be used as custom attribute.
    key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    policyContextProfileCustomAttributeId string
    attribute str
    FQDN or URL to be used as custom attribute.
    key str
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    context PolicyContextProfileCustomAttributeContextArgs
    The context which the object belongs to
    policy_context_profile_custom_attribute_id str
    attribute String
    FQDN or URL to be used as custom attribute.
    key String
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    context Property Map
    The context which the object belongs to
    policyContextProfileCustomAttributeId String

    Outputs

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

    Get an existing PolicyContextProfileCustomAttribute 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?: PolicyContextProfileCustomAttributeState, opts?: CustomResourceOptions): PolicyContextProfileCustomAttribute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attribute: Optional[str] = None,
            context: Optional[PolicyContextProfileCustomAttributeContextArgs] = None,
            key: Optional[str] = None,
            policy_context_profile_custom_attribute_id: Optional[str] = None) -> PolicyContextProfileCustomAttribute
    func GetPolicyContextProfileCustomAttribute(ctx *Context, name string, id IDInput, state *PolicyContextProfileCustomAttributeState, opts ...ResourceOption) (*PolicyContextProfileCustomAttribute, error)
    public static PolicyContextProfileCustomAttribute Get(string name, Input<string> id, PolicyContextProfileCustomAttributeState? state, CustomResourceOptions? opts = null)
    public static PolicyContextProfileCustomAttribute get(String name, Output<String> id, PolicyContextProfileCustomAttributeState state, CustomResourceOptions options)
    resources:  _:    type: nsxt:PolicyContextProfileCustomAttribute    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:
    Attribute string
    FQDN or URL to be used as custom attribute.
    Context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    Key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    PolicyContextProfileCustomAttributeId string
    Attribute string
    FQDN or URL to be used as custom attribute.
    Context PolicyContextProfileCustomAttributeContextArgs
    The context which the object belongs to
    Key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    PolicyContextProfileCustomAttributeId string
    attribute String
    FQDN or URL to be used as custom attribute.
    context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    key String
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    policyContextProfileCustomAttributeId String
    attribute string
    FQDN or URL to be used as custom attribute.
    context PolicyContextProfileCustomAttributeContext
    The context which the object belongs to
    key string
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    policyContextProfileCustomAttributeId string
    attribute str
    FQDN or URL to be used as custom attribute.
    context PolicyContextProfileCustomAttributeContextArgs
    The context which the object belongs to
    key str
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    policy_context_profile_custom_attribute_id str
    attribute String
    FQDN or URL to be used as custom attribute.
    context Property Map
    The context which the object belongs to
    key String
    Policy Custom Attribute Key. Valid values are "DOMAIN_NAME" and "CUSTOM_URL"
    policyContextProfileCustomAttributeId String

    Supporting Types

    PolicyContextProfileCustomAttributeContext, PolicyContextProfileCustomAttributeContextArgs

    ProjectId string
    The ID of the project which the object belongs to
    ProjectId string
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to
    projectId string
    The ID of the project which the object belongs to
    project_id str
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to

    Package Details

    Repository
    nsxt vmware/terraform-provider-nsxt
    License
    Notes
    This Pulumi package is based on the nsxt Terraform Provider.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware