cloudngfwaws.FqdnList
Explore with Pulumi AI
Resource for fqdn list manipulation.
Admin Permission Type
- Rulestack(for- scope="Local")
- Global Rulestack(for- scope="Global")
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws";
const r = new cloudngfwaws.Rulestack("r", {
    name: "terraform-rulestack",
    scope: "Local",
    accountId: "123456789",
    description: "Made by Pulumi",
    profileConfig: {
        antiSpyware: "BestPractice",
    },
});
const example = new cloudngfwaws.FqdnList("example", {
    rulestack: r.name,
    name: "tf-fqdn-list",
    description: "Also configured by Terraform",
    fqdnLists: [
        "example.com",
        "foobar.org",
    ],
    auditComment: "initial config",
});
import pulumi
import pulumi_cloudngfwaws as cloudngfwaws
r = cloudngfwaws.Rulestack("r",
    name="terraform-rulestack",
    scope="Local",
    account_id="123456789",
    description="Made by Pulumi",
    profile_config={
        "anti_spyware": "BestPractice",
    })
example = cloudngfwaws.FqdnList("example",
    rulestack=r.name,
    name="tf-fqdn-list",
    description="Also configured by Terraform",
    fqdn_lists=[
        "example.com",
        "foobar.org",
    ],
    audit_comment="initial config")
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 {
		r, err := cloudngfwaws.NewRulestack(ctx, "r", &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
		}
		_, err = cloudngfwaws.NewFqdnList(ctx, "example", &cloudngfwaws.FqdnListArgs{
			Rulestack:   r.Name,
			Name:        pulumi.String("tf-fqdn-list"),
			Description: pulumi.String("Also configured by Terraform"),
			FqdnLists: pulumi.StringArray{
				pulumi.String("example.com"),
				pulumi.String("foobar.org"),
			},
			AuditComment: pulumi.String("initial config"),
		})
		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 r = new CloudNgfwAws.Rulestack("r", new()
    {
        Name = "terraform-rulestack",
        Scope = "Local",
        AccountId = "123456789",
        Description = "Made by Pulumi",
        ProfileConfig = new CloudNgfwAws.Inputs.RulestackProfileConfigArgs
        {
            AntiSpyware = "BestPractice",
        },
    });
    var example = new CloudNgfwAws.FqdnList("example", new()
    {
        Rulestack = r.Name,
        Name = "tf-fqdn-list",
        Description = "Also configured by Terraform",
        FqdnLists = new[]
        {
            "example.com",
            "foobar.org",
        },
        AuditComment = "initial config",
    });
});
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 com.pulumi.cloudngfwaws.FqdnList;
import com.pulumi.cloudngfwaws.FqdnListArgs;
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 r = new Rulestack("r", RulestackArgs.builder()
            .name("terraform-rulestack")
            .scope("Local")
            .accountId("123456789")
            .description("Made by Pulumi")
            .profileConfig(RulestackProfileConfigArgs.builder()
                .antiSpyware("BestPractice")
                .build())
            .build());
        var example = new FqdnList("example", FqdnListArgs.builder()
            .rulestack(r.name())
            .name("tf-fqdn-list")
            .description("Also configured by Terraform")
            .fqdnLists(            
                "example.com",
                "foobar.org")
            .auditComment("initial config")
            .build());
    }
}
resources:
  example:
    type: cloudngfwaws:FqdnList
    properties:
      rulestack: ${r.name}
      name: tf-fqdn-list
      description: Also configured by Terraform
      fqdnLists:
        - example.com
        - foobar.org
      auditComment: initial config
  r:
    type: cloudngfwaws:Rulestack
    properties:
      name: terraform-rulestack
      scope: Local
      accountId: '123456789'
      description: Made by Pulumi
      profileConfig:
        antiSpyware: BestPractice
Create FqdnList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FqdnList(name: string, args: FqdnListArgs, opts?: CustomResourceOptions);@overload
def FqdnList(resource_name: str,
             args: FqdnListArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def FqdnList(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             fqdn_lists: Optional[Sequence[str]] = None,
             rulestack: Optional[str] = None,
             audit_comment: Optional[str] = None,
             description: Optional[str] = None,
             name: Optional[str] = None,
             scope: Optional[str] = None)func NewFqdnList(ctx *Context, name string, args FqdnListArgs, opts ...ResourceOption) (*FqdnList, error)public FqdnList(string name, FqdnListArgs args, CustomResourceOptions? opts = null)
public FqdnList(String name, FqdnListArgs args)
public FqdnList(String name, FqdnListArgs args, CustomResourceOptions options)
type: cloudngfwaws:FqdnList
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 FqdnListArgs
- 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 FqdnListArgs
- 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 FqdnListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FqdnListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FqdnListArgs
- 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 fqdnListResource = new CloudNgfwAws.FqdnList("fqdnListResource", new()
{
    FqdnLists = new[]
    {
        "string",
    },
    Rulestack = "string",
    AuditComment = "string",
    Description = "string",
    Name = "string",
    Scope = "string",
});
example, err := cloudngfwaws.NewFqdnList(ctx, "fqdnListResource", &cloudngfwaws.FqdnListArgs{
	FqdnLists: pulumi.StringArray{
		pulumi.String("string"),
	},
	Rulestack:    pulumi.String("string"),
	AuditComment: pulumi.String("string"),
	Description:  pulumi.String("string"),
	Name:         pulumi.String("string"),
	Scope:        pulumi.String("string"),
})
var fqdnListResource = new FqdnList("fqdnListResource", FqdnListArgs.builder()
    .fqdnLists("string")
    .rulestack("string")
    .auditComment("string")
    .description("string")
    .name("string")
    .scope("string")
    .build());
fqdn_list_resource = cloudngfwaws.FqdnList("fqdnListResource",
    fqdn_lists=["string"],
    rulestack="string",
    audit_comment="string",
    description="string",
    name="string",
    scope="string")
const fqdnListResource = new cloudngfwaws.FqdnList("fqdnListResource", {
    fqdnLists: ["string"],
    rulestack: "string",
    auditComment: "string",
    description: "string",
    name: "string",
    scope: "string",
});
type: cloudngfwaws:FqdnList
properties:
    auditComment: string
    description: string
    fqdnLists:
        - string
    name: string
    rulestack: string
    scope: string
FqdnList 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 FqdnList resource accepts the following input properties:
- FqdnLists List<string>
- The fqdn list.
- Rulestack string
- The rulestack.
- AuditComment string
- The audit comment.
- Description string
- The description.
- 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 LocalorGlobal. Defaults toLocal.
- FqdnLists []string
- The fqdn list.
- Rulestack string
- The rulestack.
- AuditComment string
- The audit comment.
- Description string
- The description.
- 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 LocalorGlobal. Defaults toLocal.
- fqdnLists List<String>
- The fqdn list.
- rulestack String
- The rulestack.
- auditComment String
- The audit comment.
- description String
- The description.
- 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 LocalorGlobal. Defaults toLocal.
- fqdnLists string[]
- The fqdn list.
- rulestack string
- The rulestack.
- auditComment string
- The audit comment.
- description string
- The description.
- 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 LocalorGlobal. Defaults toLocal.
- fqdn_lists Sequence[str]
- The fqdn list.
- rulestack str
- The rulestack.
- audit_comment str
- The audit comment.
- description str
- The description.
- 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 LocalorGlobal. Defaults toLocal.
- fqdnLists List<String>
- The fqdn list.
- rulestack String
- The rulestack.
- auditComment String
- The audit comment.
- description String
- The description.
- 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 LocalorGlobal. Defaults toLocal.
Outputs
All input properties are implicitly available as output properties. Additionally, the FqdnList resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- UpdateToken string
- The update token.
- Id string
- The provider-assigned unique ID for this managed resource.
- UpdateToken string
- The update token.
- id String
- The provider-assigned unique ID for this managed resource.
- updateToken String
- The update token.
- id string
- The provider-assigned unique ID for this managed resource.
- updateToken string
- The update token.
- id str
- The provider-assigned unique ID for this managed resource.
- update_token str
- The update token.
- id String
- The provider-assigned unique ID for this managed resource.
- updateToken String
- The update token.
Look up Existing FqdnList Resource
Get an existing FqdnList 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?: FqdnListState, opts?: CustomResourceOptions): FqdnList@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        audit_comment: Optional[str] = None,
        description: Optional[str] = None,
        fqdn_lists: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        rulestack: Optional[str] = None,
        scope: Optional[str] = None,
        update_token: Optional[str] = None) -> FqdnListfunc GetFqdnList(ctx *Context, name string, id IDInput, state *FqdnListState, opts ...ResourceOption) (*FqdnList, error)public static FqdnList Get(string name, Input<string> id, FqdnListState? state, CustomResourceOptions? opts = null)public static FqdnList get(String name, Output<String> id, FqdnListState state, CustomResourceOptions options)resources:  _:    type: cloudngfwaws:FqdnList    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.
- AuditComment string
- The audit comment.
- Description string
- The description.
- FqdnLists List<string>
- The fqdn list.
- Name string
- The name.
- Rulestack string
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- UpdateToken string
- The update token.
- AuditComment string
- The audit comment.
- Description string
- The description.
- FqdnLists []string
- The fqdn list.
- Name string
- The name.
- Rulestack string
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- UpdateToken string
- The update token.
- auditComment String
- The audit comment.
- description String
- The description.
- fqdnLists List<String>
- The fqdn list.
- name String
- The name.
- rulestack String
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- updateToken String
- The update token.
- auditComment string
- The audit comment.
- description string
- The description.
- fqdnLists string[]
- The fqdn list.
- name string
- The name.
- rulestack string
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- updateToken string
- The update token.
- audit_comment str
- The audit comment.
- description str
- The description.
- fqdn_lists Sequence[str]
- The fqdn list.
- name str
- The name.
- rulestack str
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- update_token str
- The update token.
- auditComment String
- The audit comment.
- description String
- The description.
- fqdnLists List<String>
- The fqdn list.
- name String
- The name.
- rulestack String
- The rulestack.
- 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 LocalorGlobal. Defaults toLocal.
- updateToken String
- The update token.
Import
import name is 
$ pulumi import cloudngfwaws:index/fqdnList:FqdnList example Local:terraform-rulestack:tf-fqdn-list
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 cloudngfwawsTerraform Provider.