DeviceRedistributionCollector resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const layer3Setting = new scm.EthernetInterface("layer3_setting", {
name: "$layer3_setting",
comment: "Managed by Pulumi",
folder: "ngfw-shared",
linkSpeed: "auto",
linkDuplex: "full",
linkState: "auto",
layer3: {
ips: [{
name: "10.10.10.11",
}],
},
});
const drcSettings = new scm.DeviceRedistributionCollector("drc_settings", {
folder: "ngfw-shared",
redistributionCollector: {
"interface": layer3Setting.name,
},
});
import pulumi
import pulumi_scm as scm
layer3_setting = scm.EthernetInterface("layer3_setting",
name="$layer3_setting",
comment="Managed by Pulumi",
folder="ngfw-shared",
link_speed="auto",
link_duplex="full",
link_state="auto",
layer3={
"ips": [{
"name": "10.10.10.11",
}],
})
drc_settings = scm.DeviceRedistributionCollector("drc_settings",
folder="ngfw-shared",
redistribution_collector={
"interface": layer3_setting.name,
})
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
layer3Setting, err := scm.NewEthernetInterface(ctx, "layer3_setting", &scm.EthernetInterfaceArgs{
Name: pulumi.String("$layer3_setting"),
Comment: pulumi.String("Managed by Pulumi"),
Folder: pulumi.String("ngfw-shared"),
LinkSpeed: pulumi.String("auto"),
LinkDuplex: pulumi.String("full"),
LinkState: pulumi.String("auto"),
Layer3: &scm.EthernetInterfaceLayer3Args{
Ips: scm.EthernetInterfaceLayer3IpArray{
&scm.EthernetInterfaceLayer3IpArgs{
Name: pulumi.String("10.10.10.11"),
},
},
},
})
if err != nil {
return err
}
_, err = scm.NewDeviceRedistributionCollector(ctx, "drc_settings", &scm.DeviceRedistributionCollectorArgs{
Folder: pulumi.String("ngfw-shared"),
RedistributionCollector: &scm.DeviceRedistributionCollectorRedistributionCollectorArgs{
Interface: layer3Setting.Name,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var layer3Setting = new Scm.EthernetInterface("layer3_setting", new()
{
Name = "$layer3_setting",
Comment = "Managed by Pulumi",
Folder = "ngfw-shared",
LinkSpeed = "auto",
LinkDuplex = "full",
LinkState = "auto",
Layer3 = new Scm.Inputs.EthernetInterfaceLayer3Args
{
Ips = new[]
{
new Scm.Inputs.EthernetInterfaceLayer3IpArgs
{
Name = "10.10.10.11",
},
},
},
});
var drcSettings = new Scm.DeviceRedistributionCollector("drc_settings", new()
{
Folder = "ngfw-shared",
RedistributionCollector = new Scm.Inputs.DeviceRedistributionCollectorRedistributionCollectorArgs
{
Interface = layer3Setting.Name,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.EthernetInterface;
import com.pulumi.scm.EthernetInterfaceArgs;
import com.pulumi.scm.inputs.EthernetInterfaceLayer3Args;
import com.pulumi.scm.DeviceRedistributionCollector;
import com.pulumi.scm.DeviceRedistributionCollectorArgs;
import com.pulumi.scm.inputs.DeviceRedistributionCollectorRedistributionCollectorArgs;
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 layer3Setting = new EthernetInterface("layer3Setting", EthernetInterfaceArgs.builder()
.name("$layer3_setting")
.comment("Managed by Pulumi")
.folder("ngfw-shared")
.linkSpeed("auto")
.linkDuplex("full")
.linkState("auto")
.layer3(EthernetInterfaceLayer3Args.builder()
.ips(EthernetInterfaceLayer3IpArgs.builder()
.name("10.10.10.11")
.build())
.build())
.build());
var drcSettings = new DeviceRedistributionCollector("drcSettings", DeviceRedistributionCollectorArgs.builder()
.folder("ngfw-shared")
.redistributionCollector(DeviceRedistributionCollectorRedistributionCollectorArgs.builder()
.interface_(layer3Setting.name())
.build())
.build());
}
}
resources:
layer3Setting:
type: scm:EthernetInterface
name: layer3_setting
properties:
name: $layer3_setting
comment: Managed by Pulumi
folder: ngfw-shared
linkSpeed: auto
linkDuplex: full
linkState: auto
layer3:
ips:
- name: 10.10.10.11
drcSettings:
type: scm:DeviceRedistributionCollector
name: drc_settings
properties:
folder: ngfw-shared
redistributionCollector:
interface: ${layer3Setting.name}
Create DeviceRedistributionCollector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DeviceRedistributionCollector(name: string, args?: DeviceRedistributionCollectorArgs, opts?: CustomResourceOptions);@overload
def DeviceRedistributionCollector(resource_name: str,
args: Optional[DeviceRedistributionCollectorArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DeviceRedistributionCollector(resource_name: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
redistribution_collector: Optional[DeviceRedistributionCollectorRedistributionCollectorArgs] = None,
snippet: Optional[str] = None)func NewDeviceRedistributionCollector(ctx *Context, name string, args *DeviceRedistributionCollectorArgs, opts ...ResourceOption) (*DeviceRedistributionCollector, error)public DeviceRedistributionCollector(string name, DeviceRedistributionCollectorArgs? args = null, CustomResourceOptions? opts = null)
public DeviceRedistributionCollector(String name, DeviceRedistributionCollectorArgs args)
public DeviceRedistributionCollector(String name, DeviceRedistributionCollectorArgs args, CustomResourceOptions options)
type: scm:DeviceRedistributionCollector
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 DeviceRedistributionCollectorArgs
- 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 DeviceRedistributionCollectorArgs
- 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 DeviceRedistributionCollectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceRedistributionCollectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceRedistributionCollectorArgs
- 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 deviceRedistributionCollectorResource = new Scm.DeviceRedistributionCollector("deviceRedistributionCollectorResource", new()
{
Device = "string",
Folder = "string",
RedistributionCollector = new Scm.Inputs.DeviceRedistributionCollectorRedistributionCollectorArgs
{
Interface = "string",
},
Snippet = "string",
});
example, err := scm.NewDeviceRedistributionCollector(ctx, "deviceRedistributionCollectorResource", &scm.DeviceRedistributionCollectorArgs{
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
RedistributionCollector: &scm.DeviceRedistributionCollectorRedistributionCollectorArgs{
Interface: pulumi.String("string"),
},
Snippet: pulumi.String("string"),
})
var deviceRedistributionCollectorResource = new DeviceRedistributionCollector("deviceRedistributionCollectorResource", DeviceRedistributionCollectorArgs.builder()
.device("string")
.folder("string")
.redistributionCollector(DeviceRedistributionCollectorRedistributionCollectorArgs.builder()
.interface_("string")
.build())
.snippet("string")
.build());
device_redistribution_collector_resource = scm.DeviceRedistributionCollector("deviceRedistributionCollectorResource",
device="string",
folder="string",
redistribution_collector={
"interface": "string",
},
snippet="string")
const deviceRedistributionCollectorResource = new scm.DeviceRedistributionCollector("deviceRedistributionCollectorResource", {
device: "string",
folder: "string",
redistributionCollector: {
"interface": "string",
},
snippet: "string",
});
type: scm:DeviceRedistributionCollector
properties:
device: string
folder: string
redistributionCollector:
interface: string
snippet: string
DeviceRedistributionCollector 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 DeviceRedistributionCollector resource accepts the following input properties:
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Redistribution
Collector DeviceRedistribution Collector Redistribution Collector Args - Redistribution collector
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution_
collector DeviceRedistribution Collector Redistribution Collector Args - Redistribution collector
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector Property Map - Redistribution collector
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeviceRedistributionCollector resource produces the following output properties:
Look up Existing DeviceRedistributionCollector Resource
Get an existing DeviceRedistributionCollector 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?: DeviceRedistributionCollectorState, opts?: CustomResourceOptions): DeviceRedistributionCollector@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
redistribution_collector: Optional[DeviceRedistributionCollectorRedistributionCollectorArgs] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> DeviceRedistributionCollectorfunc GetDeviceRedistributionCollector(ctx *Context, name string, id IDInput, state *DeviceRedistributionCollectorState, opts ...ResourceOption) (*DeviceRedistributionCollector, error)public static DeviceRedistributionCollector Get(string name, Input<string> id, DeviceRedistributionCollectorState? state, CustomResourceOptions? opts = null)public static DeviceRedistributionCollector get(String name, Output<String> id, DeviceRedistributionCollectorState state, CustomResourceOptions options)resources: _: type: scm:DeviceRedistributionCollector 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.
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- Device string
- The device in which the resource is defined
- Folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Redistribution
Collector DeviceRedistribution Collector Redistribution Collector Args - Redistribution collector
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- Tfid string
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
- device string
- The device in which the resource is defined
- folder string
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector DeviceRedistribution Collector Redistribution Collector - Redistribution collector
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid string
- device str
- The device in which the resource is defined
- folder str
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution_
collector DeviceRedistribution Collector Redistribution Collector Args - Redistribution collector
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid str
- device String
- The device in which the resource is defined
- folder String
The folder in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- redistribution
Collector Property Map - Redistribution collector
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
DeviceRedistributionCollectorRedistributionCollector, DeviceRedistributionCollectorRedistributionCollectorArgs
- Interface string
- User-ID collector interface
- Interface string
- User-ID collector interface
- interface_ String
- User-ID collector interface
- interface string
- User-ID collector interface
- interface str
- User-ID collector interface
- interface String
- User-ID collector interface
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/deviceRedistributionCollector:DeviceRedistributionCollector example folder:::id
or
bash
$ pulumi import scm:index/deviceRedistributionCollector:DeviceRedistributionCollector example :snippet::id
or
bash
$ pulumi import scm:index/deviceRedistributionCollector:DeviceRedistributionCollector example ::device:id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
