impart.RuleClientIdentifier
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as impart from "@impart-security/pulumi-impart";
// Create a new rule client identifier
const clientIdentifier = new impart.RuleClientIdentifier("clientIdentifier", {
description: "terraform client identifier",
hashFields: [
{
field: "header_value",
key: "Authorization",
},
{
field: "client_ip",
},
],
name: "client identifier",
});
import pulumi
import pulumi_impart as impart
# Create a new rule client identifier
client_identifier = impart.RuleClientIdentifier("clientIdentifier",
description="terraform client identifier",
hash_fields=[
{
"field": "header_value",
"key": "Authorization",
},
{
"field": "client_ip",
},
],
name="client identifier")
package main
import (
"github.com/impart-security/pulumi-impart/sdk/go/impart"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new rule client identifier
_, err := impart.NewRuleClientIdentifier(ctx, "clientIdentifier", &impart.RuleClientIdentifierArgs{
Description: pulumi.String("terraform client identifier"),
HashFields: impart.RuleClientIdentifierHashFieldArray{
&impart.RuleClientIdentifierHashFieldArgs{
Field: pulumi.String("header_value"),
Key: pulumi.String("Authorization"),
},
&impart.RuleClientIdentifierHashFieldArgs{
Field: pulumi.String("client_ip"),
},
},
Name: pulumi.String("client identifier"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Impart = Pulumi.Impart;
return await Deployment.RunAsync(() =>
{
// Create a new rule client identifier
var clientIdentifier = new Impart.RuleClientIdentifier("clientIdentifier", new()
{
Description = "terraform client identifier",
HashFields = new[]
{
new Impart.Inputs.RuleClientIdentifierHashFieldArgs
{
Field = "header_value",
Key = "Authorization",
},
new Impart.Inputs.RuleClientIdentifierHashFieldArgs
{
Field = "client_ip",
},
},
Name = "client identifier",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.impart.RuleClientIdentifier;
import com.pulumi.impart.RuleClientIdentifierArgs;
import com.pulumi.impart.inputs.RuleClientIdentifierHashFieldArgs;
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) {
// Create a new rule client identifier
var clientIdentifier = new RuleClientIdentifier("clientIdentifier", RuleClientIdentifierArgs.builder()
.description("terraform client identifier")
.hashFields(
RuleClientIdentifierHashFieldArgs.builder()
.field("header_value")
.key("Authorization")
.build(),
RuleClientIdentifierHashFieldArgs.builder()
.field("client_ip")
.build())
.name("client identifier")
.build());
}
}
resources:
# Create a new rule client identifier
clientIdentifier:
type: impart:RuleClientIdentifier
properties:
description: terraform client identifier
hashFields:
- field: header_value
key: Authorization
- field: client_ip
name: client identifier
Create RuleClientIdentifier Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleClientIdentifier(name: string, args: RuleClientIdentifierArgs, opts?: CustomResourceOptions);
@overload
def RuleClientIdentifier(resource_name: str,
args: RuleClientIdentifierArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleClientIdentifier(resource_name: str,
opts: Optional[ResourceOptions] = None,
hash_fields: Optional[Sequence[RuleClientIdentifierHashFieldArgs]] = None,
name: Optional[str] = None,
description: Optional[str] = None,
storage_id: Optional[str] = None)
func NewRuleClientIdentifier(ctx *Context, name string, args RuleClientIdentifierArgs, opts ...ResourceOption) (*RuleClientIdentifier, error)
public RuleClientIdentifier(string name, RuleClientIdentifierArgs args, CustomResourceOptions? opts = null)
public RuleClientIdentifier(String name, RuleClientIdentifierArgs args)
public RuleClientIdentifier(String name, RuleClientIdentifierArgs args, CustomResourceOptions options)
type: impart:RuleClientIdentifier
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 RuleClientIdentifierArgs
- 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 RuleClientIdentifierArgs
- 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 RuleClientIdentifierArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleClientIdentifierArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleClientIdentifierArgs
- 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 ruleClientIdentifierResource = new Impart.RuleClientIdentifier("ruleClientIdentifierResource", new()
{
HashFields = new[]
{
new Impart.Inputs.RuleClientIdentifierHashFieldArgs
{
Field = "string",
Key = "string",
},
},
Name = "string",
Description = "string",
StorageId = "string",
});
example, err := impart.NewRuleClientIdentifier(ctx, "ruleClientIdentifierResource", &impart.RuleClientIdentifierArgs{
HashFields: impart.RuleClientIdentifierHashFieldArray{
&impart.RuleClientIdentifierHashFieldArgs{
Field: pulumi.String("string"),
Key: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
Description: pulumi.String("string"),
StorageId: pulumi.String("string"),
})
var ruleClientIdentifierResource = new RuleClientIdentifier("ruleClientIdentifierResource", RuleClientIdentifierArgs.builder()
.hashFields(RuleClientIdentifierHashFieldArgs.builder()
.field("string")
.key("string")
.build())
.name("string")
.description("string")
.storageId("string")
.build());
rule_client_identifier_resource = impart.RuleClientIdentifier("ruleClientIdentifierResource",
hash_fields=[{
"field": "string",
"key": "string",
}],
name="string",
description="string",
storage_id="string")
const ruleClientIdentifierResource = new impart.RuleClientIdentifier("ruleClientIdentifierResource", {
hashFields: [{
field: "string",
key: "string",
}],
name: "string",
description: "string",
storageId: "string",
});
type: impart:RuleClientIdentifier
properties:
description: string
hashFields:
- field: string
key: string
name: string
storageId: string
RuleClientIdentifier 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 RuleClientIdentifier resource accepts the following input properties:
- Hash
Fields List<RuleClient Identifier Hash Field> - The hash fields for the rule client identifier.
- Name string
- The name for the rule client identifier.
- Description string
- The description for the rule client identifier.
- Storage
Id string - The storage id for the rule client identifier.
- Hash
Fields []RuleClient Identifier Hash Field Args - The hash fields for the rule client identifier.
- Name string
- The name for the rule client identifier.
- Description string
- The description for the rule client identifier.
- Storage
Id string - The storage id for the rule client identifier.
- hash
Fields List<RuleClient Identifier Hash Field> - The hash fields for the rule client identifier.
- name String
- The name for the rule client identifier.
- description String
- The description for the rule client identifier.
- storage
Id String - The storage id for the rule client identifier.
- hash
Fields RuleClient Identifier Hash Field[] - The hash fields for the rule client identifier.
- name string
- The name for the rule client identifier.
- description string
- The description for the rule client identifier.
- storage
Id string - The storage id for the rule client identifier.
- hash_
fields Sequence[RuleClient Identifier Hash Field Args] - The hash fields for the rule client identifier.
- name str
- The name for the rule client identifier.
- description str
- The description for the rule client identifier.
- storage_
id str - The storage id for the rule client identifier.
- hash
Fields List<Property Map> - The hash fields for the rule client identifier.
- name String
- The name for the rule client identifier.
- description String
- The description for the rule client identifier.
- storage
Id String - The storage id for the rule client identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleClientIdentifier 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 RuleClientIdentifier Resource
Get an existing RuleClientIdentifier 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?: RuleClientIdentifierState, opts?: CustomResourceOptions): RuleClientIdentifier
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
hash_fields: Optional[Sequence[RuleClientIdentifierHashFieldArgs]] = None,
name: Optional[str] = None,
storage_id: Optional[str] = None) -> RuleClientIdentifier
func GetRuleClientIdentifier(ctx *Context, name string, id IDInput, state *RuleClientIdentifierState, opts ...ResourceOption) (*RuleClientIdentifier, error)
public static RuleClientIdentifier Get(string name, Input<string> id, RuleClientIdentifierState? state, CustomResourceOptions? opts = null)
public static RuleClientIdentifier get(String name, Output<String> id, RuleClientIdentifierState state, CustomResourceOptions options)
resources: _: type: impart:RuleClientIdentifier 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.
- Description string
- The description for the rule client identifier.
- Hash
Fields List<RuleClient Identifier Hash Field> - The hash fields for the rule client identifier.
- Name string
- The name for the rule client identifier.
- Storage
Id string - The storage id for the rule client identifier.
- Description string
- The description for the rule client identifier.
- Hash
Fields []RuleClient Identifier Hash Field Args - The hash fields for the rule client identifier.
- Name string
- The name for the rule client identifier.
- Storage
Id string - The storage id for the rule client identifier.
- description String
- The description for the rule client identifier.
- hash
Fields List<RuleClient Identifier Hash Field> - The hash fields for the rule client identifier.
- name String
- The name for the rule client identifier.
- storage
Id String - The storage id for the rule client identifier.
- description string
- The description for the rule client identifier.
- hash
Fields RuleClient Identifier Hash Field[] - The hash fields for the rule client identifier.
- name string
- The name for the rule client identifier.
- storage
Id string - The storage id for the rule client identifier.
- description str
- The description for the rule client identifier.
- hash_
fields Sequence[RuleClient Identifier Hash Field Args] - The hash fields for the rule client identifier.
- name str
- The name for the rule client identifier.
- storage_
id str - The storage id for the rule client identifier.
- description String
- The description for the rule client identifier.
- hash
Fields List<Property Map> - The hash fields for the rule client identifier.
- name String
- The name for the rule client identifier.
- storage
Id String - The storage id for the rule client identifier.
Supporting Types
RuleClientIdentifierHashField, RuleClientIdentifierHashFieldArgs
Package Details
- Repository
- impart impart-security/pulumi-impart
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
impart
Terraform Provider.