prismacloud.Datapattern
Explore with Pulumi AI
Manage a data pattern.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = new prismacloud.Datapattern("example", {
description: "Made by Pulumi",
proximityKeywords: [
"terraform",
"prisma",
],
regexes: [{
regex: "prisma",
weight: 2,
}],
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.Datapattern("example",
description="Made by Pulumi",
proximity_keywords=[
"terraform",
"prisma",
],
regexes=[{
"regex": "prisma",
"weight": 2,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.NewDatapattern(ctx, "example", &prismacloud.DatapatternArgs{
Description: pulumi.String("Made by Pulumi"),
ProximityKeywords: pulumi.StringArray{
pulumi.String("terraform"),
pulumi.String("prisma"),
},
Regexes: prismacloud.DatapatternRegexArray{
&prismacloud.DatapatternRegexArgs{
Regex: pulumi.String("prisma"),
Weight: pulumi.Float64(2),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = new Prismacloud.Datapattern("example", new()
{
Description = "Made by Pulumi",
ProximityKeywords = new[]
{
"terraform",
"prisma",
},
Regexes = new[]
{
new Prismacloud.Inputs.DatapatternRegexArgs
{
Regex = "prisma",
Weight = 2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.Datapattern;
import com.pulumi.prismacloud.DatapatternArgs;
import com.pulumi.prismacloud.inputs.DatapatternRegexArgs;
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 Datapattern("example", DatapatternArgs.builder()
.description("Made by Pulumi")
.proximityKeywords(
"terraform",
"prisma")
.regexes(DatapatternRegexArgs.builder()
.regex("prisma")
.weight(2)
.build())
.build());
}
}
resources:
example:
type: prismacloud:Datapattern
properties:
description: Made by Pulumi
proximityKeywords:
- terraform
- prisma
regexes:
- regex: prisma
weight: 2
Create Datapattern Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Datapattern(name: string, args: DatapatternArgs, opts?: CustomResourceOptions);
@overload
def Datapattern(resource_name: str,
args: DatapatternArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Datapattern(resource_name: str,
opts: Optional[ResourceOptions] = None,
regexes: Optional[Sequence[DatapatternRegexArgs]] = None,
datapattern_id: Optional[str] = None,
description: Optional[str] = None,
detection_technique: Optional[str] = None,
name: Optional[str] = None,
proximity_keywords: Optional[Sequence[str]] = None)
func NewDatapattern(ctx *Context, name string, args DatapatternArgs, opts ...ResourceOption) (*Datapattern, error)
public Datapattern(string name, DatapatternArgs args, CustomResourceOptions? opts = null)
public Datapattern(String name, DatapatternArgs args)
public Datapattern(String name, DatapatternArgs args, CustomResourceOptions options)
type: prismacloud:Datapattern
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 DatapatternArgs
- 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 DatapatternArgs
- 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 DatapatternArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatapatternArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatapatternArgs
- 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 datapatternResource = new Prismacloud.Datapattern("datapatternResource", new()
{
Regexes = new[]
{
new Prismacloud.Inputs.DatapatternRegexArgs
{
Regex = "string",
Weight = 0,
},
},
DatapatternId = "string",
Description = "string",
DetectionTechnique = "string",
Name = "string",
ProximityKeywords = new[]
{
"string",
},
});
example, err := prismacloud.NewDatapattern(ctx, "datapatternResource", &prismacloud.DatapatternArgs{
Regexes: prismacloud.DatapatternRegexArray{
&prismacloud.DatapatternRegexArgs{
Regex: pulumi.String("string"),
Weight: pulumi.Float64(0),
},
},
DatapatternId: pulumi.String("string"),
Description: pulumi.String("string"),
DetectionTechnique: pulumi.String("string"),
Name: pulumi.String("string"),
ProximityKeywords: pulumi.StringArray{
pulumi.String("string"),
},
})
var datapatternResource = new Datapattern("datapatternResource", DatapatternArgs.builder()
.regexes(DatapatternRegexArgs.builder()
.regex("string")
.weight(0)
.build())
.datapatternId("string")
.description("string")
.detectionTechnique("string")
.name("string")
.proximityKeywords("string")
.build());
datapattern_resource = prismacloud.Datapattern("datapatternResource",
regexes=[{
"regex": "string",
"weight": 0,
}],
datapattern_id="string",
description="string",
detection_technique="string",
name="string",
proximity_keywords=["string"])
const datapatternResource = new prismacloud.Datapattern("datapatternResource", {
regexes: [{
regex: "string",
weight: 0,
}],
datapatternId: "string",
description: "string",
detectionTechnique: "string",
name: "string",
proximityKeywords: ["string"],
});
type: prismacloud:Datapattern
properties:
datapatternId: string
description: string
detectionTechnique: string
name: string
proximityKeywords:
- string
regexes:
- regex: string
weight: 0
Datapattern 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 Datapattern resource accepts the following input properties:
- Regexes
List<Datapattern
Regex> - List of regexes, as defined below.
- Datapattern
Id string - Description string
- Pattern description.
- Detection
Technique string - Detection technique (default:
regex
). - Name string
- Pattern name.
- Proximity
Keywords List<string> - List of proximity keywords.
- Regexes
[]Datapattern
Regex Args - List of regexes, as defined below.
- Datapattern
Id string - Description string
- Pattern description.
- Detection
Technique string - Detection technique (default:
regex
). - Name string
- Pattern name.
- Proximity
Keywords []string - List of proximity keywords.
- regexes
List<Datapattern
Regex> - List of regexes, as defined below.
- datapattern
Id String - description String
- Pattern description.
- detection
Technique String - Detection technique (default:
regex
). - name String
- Pattern name.
- proximity
Keywords List<String> - List of proximity keywords.
- regexes
Datapattern
Regex[] - List of regexes, as defined below.
- datapattern
Id string - description string
- Pattern description.
- detection
Technique string - Detection technique (default:
regex
). - name string
- Pattern name.
- proximity
Keywords string[] - List of proximity keywords.
- regexes
Sequence[Datapattern
Regex Args] - List of regexes, as defined below.
- datapattern_
id str - description str
- Pattern description.
- detection_
technique str - Detection technique (default:
regex
). - name str
- Pattern name.
- proximity_
keywords Sequence[str] - List of proximity keywords.
- regexes List<Property Map>
- List of regexes, as defined below.
- datapattern
Id String - description String
- Pattern description.
- detection
Technique String - Detection technique (default:
regex
). - name String
- Pattern name.
- proximity
Keywords List<String> - List of proximity keywords.
Outputs
All input properties are implicitly available as output properties. Additionally, the Datapattern resource produces the following output properties:
- Created
By string - Created by.
- Entity string
- Entity value.
- Grammar string
- Grammar value.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Editable bool - (bool) Is editable.
- Mode string
- Pattern mode (predefined or custom).
- Parent
Id string - Parent ID for cloned data pattern.
- Pattern
Id string - Pattern ID.
- Root
Type string - Root type (predefined or custom) for cloned data pattern.
- S3Path string
- S3 Path to the grammar.
- Updated
At double - (int) Last updated at.
- Updated
By string - Updated by.
- Created
By string - Created by.
- Entity string
- Entity value.
- Grammar string
- Grammar value.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Editable bool - (bool) Is editable.
- Mode string
- Pattern mode (predefined or custom).
- Parent
Id string - Parent ID for cloned data pattern.
- Pattern
Id string - Pattern ID.
- Root
Type string - Root type (predefined or custom) for cloned data pattern.
- S3Path string
- S3 Path to the grammar.
- Updated
At float64 - (int) Last updated at.
- Updated
By string - Updated by.
- created
By String - Created by.
- entity String
- Entity value.
- grammar String
- Grammar value.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - (bool) Is editable.
- mode String
- Pattern mode (predefined or custom).
- parent
Id String - Parent ID for cloned data pattern.
- pattern
Id String - Pattern ID.
- root
Type String - Root type (predefined or custom) for cloned data pattern.
- s3Path String
- S3 Path to the grammar.
- updated
At Double - (int) Last updated at.
- updated
By String - Updated by.
- created
By string - Created by.
- entity string
- Entity value.
- grammar string
- Grammar value.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Editable boolean - (bool) Is editable.
- mode string
- Pattern mode (predefined or custom).
- parent
Id string - Parent ID for cloned data pattern.
- pattern
Id string - Pattern ID.
- root
Type string - Root type (predefined or custom) for cloned data pattern.
- s3Path string
- S3 Path to the grammar.
- updated
At number - (int) Last updated at.
- updated
By string - Updated by.
- created_
by str - Created by.
- entity str
- Entity value.
- grammar str
- Grammar value.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
editable bool - (bool) Is editable.
- mode str
- Pattern mode (predefined or custom).
- parent_
id str - Parent ID for cloned data pattern.
- pattern_
id str - Pattern ID.
- root_
type str - Root type (predefined or custom) for cloned data pattern.
- s3_
path str - S3 Path to the grammar.
- updated_
at float - (int) Last updated at.
- updated_
by str - Updated by.
- created
By String - Created by.
- entity String
- Entity value.
- grammar String
- Grammar value.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Editable Boolean - (bool) Is editable.
- mode String
- Pattern mode (predefined or custom).
- parent
Id String - Parent ID for cloned data pattern.
- pattern
Id String - Pattern ID.
- root
Type String - Root type (predefined or custom) for cloned data pattern.
- s3Path String
- S3 Path to the grammar.
- updated
At Number - (int) Last updated at.
- updated
By String - Updated by.
Look up Existing Datapattern Resource
Get an existing Datapattern 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?: DatapatternState, opts?: CustomResourceOptions): Datapattern
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_by: Optional[str] = None,
datapattern_id: Optional[str] = None,
description: Optional[str] = None,
detection_technique: Optional[str] = None,
entity: Optional[str] = None,
grammar: Optional[str] = None,
is_editable: Optional[bool] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
parent_id: Optional[str] = None,
pattern_id: Optional[str] = None,
proximity_keywords: Optional[Sequence[str]] = None,
regexes: Optional[Sequence[DatapatternRegexArgs]] = None,
root_type: Optional[str] = None,
s3_path: Optional[str] = None,
updated_at: Optional[float] = None,
updated_by: Optional[str] = None) -> Datapattern
func GetDatapattern(ctx *Context, name string, id IDInput, state *DatapatternState, opts ...ResourceOption) (*Datapattern, error)
public static Datapattern Get(string name, Input<string> id, DatapatternState? state, CustomResourceOptions? opts = null)
public static Datapattern get(String name, Output<String> id, DatapatternState state, CustomResourceOptions options)
resources: _: type: prismacloud:Datapattern 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.
- Created
By string - Created by.
- Datapattern
Id string - Description string
- Pattern description.
- Detection
Technique string - Detection technique (default:
regex
). - Entity string
- Entity value.
- Grammar string
- Grammar value.
- Is
Editable bool - (bool) Is editable.
- Mode string
- Pattern mode (predefined or custom).
- Name string
- Pattern name.
- Parent
Id string - Parent ID for cloned data pattern.
- Pattern
Id string - Pattern ID.
- Proximity
Keywords List<string> - List of proximity keywords.
- Regexes
List<Datapattern
Regex> - List of regexes, as defined below.
- Root
Type string - Root type (predefined or custom) for cloned data pattern.
- S3Path string
- S3 Path to the grammar.
- Updated
At double - (int) Last updated at.
- Updated
By string - Updated by.
- Created
By string - Created by.
- Datapattern
Id string - Description string
- Pattern description.
- Detection
Technique string - Detection technique (default:
regex
). - Entity string
- Entity value.
- Grammar string
- Grammar value.
- Is
Editable bool - (bool) Is editable.
- Mode string
- Pattern mode (predefined or custom).
- Name string
- Pattern name.
- Parent
Id string - Parent ID for cloned data pattern.
- Pattern
Id string - Pattern ID.
- Proximity
Keywords []string - List of proximity keywords.
- Regexes
[]Datapattern
Regex Args - List of regexes, as defined below.
- Root
Type string - Root type (predefined or custom) for cloned data pattern.
- S3Path string
- S3 Path to the grammar.
- Updated
At float64 - (int) Last updated at.
- Updated
By string - Updated by.
- created
By String - Created by.
- datapattern
Id String - description String
- Pattern description.
- detection
Technique String - Detection technique (default:
regex
). - entity String
- Entity value.
- grammar String
- Grammar value.
- is
Editable Boolean - (bool) Is editable.
- mode String
- Pattern mode (predefined or custom).
- name String
- Pattern name.
- parent
Id String - Parent ID for cloned data pattern.
- pattern
Id String - Pattern ID.
- proximity
Keywords List<String> - List of proximity keywords.
- regexes
List<Datapattern
Regex> - List of regexes, as defined below.
- root
Type String - Root type (predefined or custom) for cloned data pattern.
- s3Path String
- S3 Path to the grammar.
- updated
At Double - (int) Last updated at.
- updated
By String - Updated by.
- created
By string - Created by.
- datapattern
Id string - description string
- Pattern description.
- detection
Technique string - Detection technique (default:
regex
). - entity string
- Entity value.
- grammar string
- Grammar value.
- is
Editable boolean - (bool) Is editable.
- mode string
- Pattern mode (predefined or custom).
- name string
- Pattern name.
- parent
Id string - Parent ID for cloned data pattern.
- pattern
Id string - Pattern ID.
- proximity
Keywords string[] - List of proximity keywords.
- regexes
Datapattern
Regex[] - List of regexes, as defined below.
- root
Type string - Root type (predefined or custom) for cloned data pattern.
- s3Path string
- S3 Path to the grammar.
- updated
At number - (int) Last updated at.
- updated
By string - Updated by.
- created_
by str - Created by.
- datapattern_
id str - description str
- Pattern description.
- detection_
technique str - Detection technique (default:
regex
). - entity str
- Entity value.
- grammar str
- Grammar value.
- is_
editable bool - (bool) Is editable.
- mode str
- Pattern mode (predefined or custom).
- name str
- Pattern name.
- parent_
id str - Parent ID for cloned data pattern.
- pattern_
id str - Pattern ID.
- proximity_
keywords Sequence[str] - List of proximity keywords.
- regexes
Sequence[Datapattern
Regex Args] - List of regexes, as defined below.
- root_
type str - Root type (predefined or custom) for cloned data pattern.
- s3_
path str - S3 Path to the grammar.
- updated_
at float - (int) Last updated at.
- updated_
by str - Updated by.
- created
By String - Created by.
- datapattern
Id String - description String
- Pattern description.
- detection
Technique String - Detection technique (default:
regex
). - entity String
- Entity value.
- grammar String
- Grammar value.
- is
Editable Boolean - (bool) Is editable.
- mode String
- Pattern mode (predefined or custom).
- name String
- Pattern name.
- parent
Id String - Parent ID for cloned data pattern.
- pattern
Id String - Pattern ID.
- proximity
Keywords List<String> - List of proximity keywords.
- regexes List<Property Map>
- List of regexes, as defined below.
- root
Type String - Root type (predefined or custom) for cloned data pattern.
- s3Path String
- S3 Path to the grammar.
- updated
At Number - (int) Last updated at.
- updated
By String - Updated by.
Supporting Types
DatapatternRegex, DatapatternRegexArgs
Import
Resources can be imported using the data pattern ID:
$ pulumi import prismacloud:index/datapattern:Datapattern example 111111111111111111111111
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.