cloudngfwaws.Rulestack
Explore with Pulumi AI
Resource for rulestack manipulation.
Admin Permission Type
Rulestack
(forscope="Local"
)Global Rulestack
(forscope="Global"
)
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const example = new cloudngfwaws.Rulestack("example", {
name: "terraform-rulestack",
scope: "Local",
accountId: "123456789",
description: "Made by Pulumi",
profileConfig: {
antiSpyware: "BestPractice",
},
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
example = cloudngfwaws.Rulestack("example",
name="terraform-rulestack",
scope="Local",
account_id="123456789",
description="Made by Pulumi",
profile_config={
"anti_spyware": "BestPractice",
})
package main
import (
"github.com/pulumi/pulumi-cloudngfwaws/sdk/go/cloudngfwaws"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudngfwaws.NewRulestack(ctx, "example", &cloudngfwaws.RulestackArgs{
Name: pulumi.String("terraform-rulestack"),
Scope: pulumi.String("Local"),
AccountId: pulumi.String("123456789"),
Description: pulumi.String("Made by Pulumi"),
ProfileConfig: &cloudngfwaws.RulestackProfileConfigArgs{
AntiSpyware: pulumi.String("BestPractice"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudNgfwAws = Pulumi.CloudNgfwAws;
return await Deployment.RunAsync(() =>
{
var example = new CloudNgfwAws.Rulestack("example", new()
{
Name = "terraform-rulestack",
Scope = "Local",
AccountId = "123456789",
Description = "Made by Pulumi",
ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
{
AntiSpyware = "BestPractice",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudngfwaws.Rulestack;
import com.pulumi.cloudngfwaws.RulestackArgs;
import com.pulumi.cloudngfwaws.inputs.RulestackProfileConfigArgs;
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 Rulestack("example", RulestackArgs.builder()
.name("terraform-rulestack")
.scope("Local")
.accountId("123456789")
.description("Made by Pulumi")
.profileConfig(RulestackProfileConfigArgs.builder()
.antiSpyware("BestPractice")
.build())
.build());
}
}
resources:
example:
type: cloudngfwaws:Rulestack
properties:
name: terraform-rulestack
scope: Local
accountId: '123456789'
description: Made by Pulumi
profileConfig:
antiSpyware: BestPractice
Create Rulestack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rulestack(name: string, args: RulestackArgs, opts?: CustomResourceOptions);
@overload
def Rulestack(resource_name: str,
args: RulestackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rulestack(resource_name: str,
opts: Optional[ResourceOptions] = None,
profile_config: Optional[RulestackProfileConfigArgs] = None,
account_group: Optional[str] = None,
account_id: Optional[str] = None,
description: Optional[str] = None,
lookup_x_forwarded_for: Optional[str] = None,
minimum_app_id_version: Optional[str] = None,
name: Optional[str] = None,
scope: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewRulestack(ctx *Context, name string, args RulestackArgs, opts ...ResourceOption) (*Rulestack, error)
public Rulestack(string name, RulestackArgs args, CustomResourceOptions? opts = null)
public Rulestack(String name, RulestackArgs args)
public Rulestack(String name, RulestackArgs args, CustomResourceOptions options)
type: cloudngfwaws:Rulestack
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 RulestackArgs
- 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 RulestackArgs
- 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 RulestackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RulestackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RulestackArgs
- 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 rulestackResource = new CloudNgfwAws.Rulestack("rulestackResource", new()
{
ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
{
AntiSpyware = "string",
AntiVirus = "string",
FileBlocking = "string",
OutboundTrustCertificate = "string",
OutboundUntrustCertificate = "string",
UrlFiltering = "string",
Vulnerability = "string",
},
AccountGroup = "string",
AccountId = "string",
Description = "string",
LookupXForwardedFor = "string",
MinimumAppIdVersion = "string",
Name = "string",
Scope = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cloudngfwaws.NewRulestack(ctx, "rulestackResource", &cloudngfwaws.RulestackArgs{
ProfileConfig: &cloudngfwaws.RulestackProfileConfigArgs{
AntiSpyware: pulumi.String("string"),
AntiVirus: pulumi.String("string"),
FileBlocking: pulumi.String("string"),
OutboundTrustCertificate: pulumi.String("string"),
OutboundUntrustCertificate: pulumi.String("string"),
UrlFiltering: pulumi.String("string"),
Vulnerability: pulumi.String("string"),
},
AccountGroup: pulumi.String("string"),
AccountId: pulumi.String("string"),
Description: pulumi.String("string"),
LookupXForwardedFor: pulumi.String("string"),
MinimumAppIdVersion: pulumi.String("string"),
Name: pulumi.String("string"),
Scope: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var rulestackResource = new Rulestack("rulestackResource", RulestackArgs.builder()
.profileConfig(RulestackProfileConfigArgs.builder()
.antiSpyware("string")
.antiVirus("string")
.fileBlocking("string")
.outboundTrustCertificate("string")
.outboundUntrustCertificate("string")
.urlFiltering("string")
.vulnerability("string")
.build())
.accountGroup("string")
.accountId("string")
.description("string")
.lookupXForwardedFor("string")
.minimumAppIdVersion("string")
.name("string")
.scope("string")
.tags(Map.of("string", "string"))
.build());
rulestack_resource = cloudngfwaws.Rulestack("rulestackResource",
profile_config={
"anti_spyware": "string",
"anti_virus": "string",
"file_blocking": "string",
"outbound_trust_certificate": "string",
"outbound_untrust_certificate": "string",
"url_filtering": "string",
"vulnerability": "string",
},
account_group="string",
account_id="string",
description="string",
lookup_x_forwarded_for="string",
minimum_app_id_version="string",
name="string",
scope="string",
tags={
"string": "string",
})
const rulestackResource = new cloudngfwaws.Rulestack("rulestackResource", {
profileConfig: {
antiSpyware: "string",
antiVirus: "string",
fileBlocking: "string",
outboundTrustCertificate: "string",
outboundUntrustCertificate: "string",
urlFiltering: "string",
vulnerability: "string",
},
accountGroup: "string",
accountId: "string",
description: "string",
lookupXForwardedFor: "string",
minimumAppIdVersion: "string",
name: "string",
scope: "string",
tags: {
string: "string",
},
});
type: cloudngfwaws:Rulestack
properties:
accountGroup: string
accountId: string
description: string
lookupXForwardedFor: string
minimumAppIdVersion: string
name: string
profileConfig:
antiSpyware: string
antiVirus: string
fileBlocking: string
outboundTrustCertificate: string
outboundUntrustCertificate: string
urlFiltering: string
vulnerability: string
scope: string
tags:
string: string
Rulestack 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 Rulestack resource accepts the following input properties:
- Profile
Config Pulumi.Cloud Ngfw Aws. Inputs. Rulestack Profile Config - Account
Group string - Account group.
- Account
Id string - The account ID.
- Description string
- The description.
- Lookup
XForwarded stringFor - Lookup x forwarded for.
- Minimum
App stringId Version - Minimum App-ID version number.
- Name string
- The name.
- Scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - Dictionary<string, string>
- The tags.
- Profile
Config RulestackProfile Config Args - Account
Group string - Account group.
- Account
Id string - The account ID.
- Description string
- The description.
- Lookup
XForwarded stringFor - Lookup x forwarded for.
- Minimum
App stringId Version - Minimum App-ID version number.
- Name string
- The name.
- Scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - map[string]string
- The tags.
- profile
Config RulestackProfile Config - account
Group String - Account group.
- account
Id String - The account ID.
- description String
- The description.
- lookup
XForwarded StringFor - Lookup x forwarded for.
- minimum
App StringId Version - Minimum App-ID version number.
- name String
- The name.
- scope String
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - Map<String,String>
- The tags.
- profile
Config RulestackProfile Config - account
Group string - Account group.
- account
Id string - The account ID.
- description string
- The description.
- lookup
XForwarded stringFor - Lookup x forwarded for.
- minimum
App stringId Version - Minimum App-ID version number.
- name string
- The name.
- scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - {[key: string]: string}
- The tags.
- profile_
config RulestackProfile Config Args - account_
group str - Account group.
- account_
id str - The account ID.
- description str
- The description.
- lookup_
x_ strforwarded_ for - Lookup x forwarded for.
- minimum_
app_ strid_ version - Minimum App-ID version number.
- name str
- The name.
- scope str
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - Mapping[str, str]
- The tags.
- profile
Config Property Map - account
Group String - Account group.
- account
Id String - The account ID.
- description String
- The description.
- lookup
XForwarded StringFor - Lookup x forwarded for.
- minimum
App StringId Version - Minimum App-ID version number.
- name String
- The name.
- scope String
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - Map<String>
- The tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Rulestack resource produces the following output properties:
Look up Existing Rulestack Resource
Get an existing Rulestack 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?: RulestackState, opts?: CustomResourceOptions): Rulestack
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_group: Optional[str] = None,
account_id: Optional[str] = None,
description: Optional[str] = None,
lookup_x_forwarded_for: Optional[str] = None,
minimum_app_id_version: Optional[str] = None,
name: Optional[str] = None,
profile_config: Optional[RulestackProfileConfigArgs] = None,
scope: Optional[str] = None,
state: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Rulestack
func GetRulestack(ctx *Context, name string, id IDInput, state *RulestackState, opts ...ResourceOption) (*Rulestack, error)
public static Rulestack Get(string name, Input<string> id, RulestackState? state, CustomResourceOptions? opts = null)
public static Rulestack get(String name, Output<String> id, RulestackState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Account
Group string - Account group.
- Account
Id string - The account ID.
- Description string
- The description.
- Lookup
XForwarded stringFor - Lookup x forwarded for.
- Minimum
App stringId Version - Minimum App-ID version number.
- Name string
- The name.
- Profile
Config Pulumi.Cloud Ngfw Aws. Inputs. Rulestack Profile Config - Scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - State string
- The rulestack state.
- Dictionary<string, string>
- The tags.
- Account
Group string - Account group.
- Account
Id string - The account ID.
- Description string
- The description.
- Lookup
XForwarded stringFor - Lookup x forwarded for.
- Minimum
App stringId Version - Minimum App-ID version number.
- Name string
- The name.
- Profile
Config RulestackProfile Config Args - Scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - State string
- The rulestack state.
- map[string]string
- The tags.
- account
Group String - Account group.
- account
Id String - The account ID.
- description String
- The description.
- lookup
XForwarded StringFor - Lookup x forwarded for.
- minimum
App StringId Version - Minimum App-ID version number.
- name String
- The name.
- profile
Config RulestackProfile Config - scope String
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - state String
- The rulestack state.
- Map<String,String>
- The tags.
- account
Group string - Account group.
- account
Id string - The account ID.
- description string
- The description.
- lookup
XForwarded stringFor - Lookup x forwarded for.
- minimum
App stringId Version - Minimum App-ID version number.
- name string
- The name.
- profile
Config RulestackProfile Config - scope string
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - state string
- The rulestack state.
- {[key: string]: string}
- The tags.
- account_
group str - Account group.
- account_
id str - The account ID.
- description str
- The description.
- lookup_
x_ strforwarded_ for - Lookup x forwarded for.
- minimum_
app_ strid_ version - Minimum App-ID version number.
- name str
- The name.
- profile_
config RulestackProfile Config Args - scope str
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - state str
- The rulestack state.
- Mapping[str, str]
- The tags.
- account
Group String - Account group.
- account
Id String - The account ID.
- description String
- The description.
- lookup
XForwarded StringFor - Lookup x forwarded for.
- minimum
App StringId Version - Minimum App-ID version number.
- name String
- The name.
- profile
Config Property Map - scope String
- The rulestack's scope. A local rulestack will require that you've retrieved a LRA JWT. A global rulestack will require that you've retrieved a GRA JWT. Valid values are
Local
orGlobal
. Defaults toLocal
. - state String
- The rulestack state.
- Map<String>
- The tags.
Supporting Types
RulestackProfileConfig, RulestackProfileConfigArgs
- Anti
Spyware string - Anti-spyware profile setting. Defaults to
BestPractice
. - Anti
Virus string - Anti-virus profile setting. Defaults to
BestPractice
. - File
Blocking string - File blocking profile setting. Defaults to
BestPractice
. - Outbound
Trust stringCertificate - Outbound trust certificate.
- Outbound
Untrust stringCertificate - Outbound untrust certificate.
- Url
Filtering string - URL filtering profile setting. Defaults to
None
. - Vulnerability string
- Vulnerability profile setting. Defaults to
BestPractice
.
- Anti
Spyware string - Anti-spyware profile setting. Defaults to
BestPractice
. - Anti
Virus string - Anti-virus profile setting. Defaults to
BestPractice
. - File
Blocking string - File blocking profile setting. Defaults to
BestPractice
. - Outbound
Trust stringCertificate - Outbound trust certificate.
- Outbound
Untrust stringCertificate - Outbound untrust certificate.
- Url
Filtering string - URL filtering profile setting. Defaults to
None
. - Vulnerability string
- Vulnerability profile setting. Defaults to
BestPractice
.
- anti
Spyware String - Anti-spyware profile setting. Defaults to
BestPractice
. - anti
Virus String - Anti-virus profile setting. Defaults to
BestPractice
. - file
Blocking String - File blocking profile setting. Defaults to
BestPractice
. - outbound
Trust StringCertificate - Outbound trust certificate.
- outbound
Untrust StringCertificate - Outbound untrust certificate.
- url
Filtering String - URL filtering profile setting. Defaults to
None
. - vulnerability String
- Vulnerability profile setting. Defaults to
BestPractice
.
- anti
Spyware string - Anti-spyware profile setting. Defaults to
BestPractice
. - anti
Virus string - Anti-virus profile setting. Defaults to
BestPractice
. - file
Blocking string - File blocking profile setting. Defaults to
BestPractice
. - outbound
Trust stringCertificate - Outbound trust certificate.
- outbound
Untrust stringCertificate - Outbound untrust certificate.
- url
Filtering string - URL filtering profile setting. Defaults to
None
. - vulnerability string
- Vulnerability profile setting. Defaults to
BestPractice
.
- anti_
spyware str - Anti-spyware profile setting. Defaults to
BestPractice
. - anti_
virus str - Anti-virus profile setting. Defaults to
BestPractice
. - file_
blocking str - File blocking profile setting. Defaults to
BestPractice
. - outbound_
trust_ strcertificate - Outbound trust certificate.
- outbound_
untrust_ strcertificate - Outbound untrust certificate.
- url_
filtering str - URL filtering profile setting. Defaults to
None
. - vulnerability str
- Vulnerability profile setting. Defaults to
BestPractice
.
- anti
Spyware String - Anti-spyware profile setting. Defaults to
BestPractice
. - anti
Virus String - Anti-virus profile setting. Defaults to
BestPractice
. - file
Blocking String - File blocking profile setting. Defaults to
BestPractice
. - outbound
Trust StringCertificate - Outbound trust certificate.
- outbound
Untrust StringCertificate - Outbound untrust certificate.
- url
Filtering String - URL filtering profile setting. Defaults to
None
. - vulnerability String
- Vulnerability profile setting. Defaults to
BestPractice
.
Import
import name is
$ pulumi import cloudngfwaws:index/rulestack:Rulestack example Local:terraform-rulestack
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- cloudngfwaws pulumi/pulumi-cloudngfwaws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudngfwaws
Terraform Provider.