BgpRedistributionProfile resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const scmBgpRedistributionProfile = new scm.BgpRedistributionProfile("scm_bgp_redistribution_profile", {
folder: "ngfw-shared",
name: "scm_bgp_redistribution_profile",
ipv4: {
unicast: {
static: {
enable: true,
metric: 10,
},
connected: {
enable: true,
metric: 10,
},
ospf: {
enable: false,
},
},
},
});
import pulumi
import pulumi_scm as scm
scm_bgp_redistribution_profile = scm.BgpRedistributionProfile("scm_bgp_redistribution_profile",
folder="ngfw-shared",
name="scm_bgp_redistribution_profile",
ipv4={
"unicast": {
"static": {
"enable": True,
"metric": 10,
},
"connected": {
"enable": True,
"metric": 10,
},
"ospf": {
"enable": False,
},
},
})
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 {
_, err := scm.NewBgpRedistributionProfile(ctx, "scm_bgp_redistribution_profile", &scm.BgpRedistributionProfileArgs{
Folder: pulumi.String("ngfw-shared"),
Name: pulumi.String("scm_bgp_redistribution_profile"),
Ipv4: &scm.BgpRedistributionProfileIpv4Args{
Unicast: &scm.BgpRedistributionProfileIpv4UnicastArgs{
Static: &scm.BgpRedistributionProfileIpv4UnicastStaticArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Int(10),
},
Connected: &scm.BgpRedistributionProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(true),
Metric: pulumi.Int(10),
},
Ospf: &scm.BgpRedistributionProfileIpv4UnicastOspfArgs{
Enable: pulumi.Bool(false),
},
},
},
})
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 scmBgpRedistributionProfile = new Scm.BgpRedistributionProfile("scm_bgp_redistribution_profile", new()
{
Folder = "ngfw-shared",
Name = "scm_bgp_redistribution_profile",
Ipv4 = new Scm.Inputs.BgpRedistributionProfileIpv4Args
{
Unicast = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastArgs
{
Static = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastStaticArgs
{
Enable = true,
Metric = 10,
},
Connected = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastConnectedArgs
{
Enable = true,
Metric = 10,
},
Ospf = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastOspfArgs
{
Enable = false,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.BgpRedistributionProfile;
import com.pulumi.scm.BgpRedistributionProfileArgs;
import com.pulumi.scm.inputs.BgpRedistributionProfileIpv4Args;
import com.pulumi.scm.inputs.BgpRedistributionProfileIpv4UnicastArgs;
import com.pulumi.scm.inputs.BgpRedistributionProfileIpv4UnicastStaticArgs;
import com.pulumi.scm.inputs.BgpRedistributionProfileIpv4UnicastConnectedArgs;
import com.pulumi.scm.inputs.BgpRedistributionProfileIpv4UnicastOspfArgs;
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 scmBgpRedistributionProfile = new BgpRedistributionProfile("scmBgpRedistributionProfile", BgpRedistributionProfileArgs.builder()
.folder("ngfw-shared")
.name("scm_bgp_redistribution_profile")
.ipv4(BgpRedistributionProfileIpv4Args.builder()
.unicast(BgpRedistributionProfileIpv4UnicastArgs.builder()
.static_(BgpRedistributionProfileIpv4UnicastStaticArgs.builder()
.enable(true)
.metric(10)
.build())
.connected(BgpRedistributionProfileIpv4UnicastConnectedArgs.builder()
.enable(true)
.metric(10)
.build())
.ospf(BgpRedistributionProfileIpv4UnicastOspfArgs.builder()
.enable(false)
.build())
.build())
.build())
.build());
}
}
resources:
scmBgpRedistributionProfile:
type: scm:BgpRedistributionProfile
name: scm_bgp_redistribution_profile
properties:
folder: ngfw-shared
name: scm_bgp_redistribution_profile
ipv4:
unicast:
static:
enable: true
metric: 10
connected:
enable: true
metric: 10
ospf:
enable: false
Create BgpRedistributionProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BgpRedistributionProfile(name: string, args: BgpRedistributionProfileArgs, opts?: CustomResourceOptions);@overload
def BgpRedistributionProfile(resource_name: str,
args: BgpRedistributionProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BgpRedistributionProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
ipv4: Optional[BgpRedistributionProfileIpv4Args] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
snippet: Optional[str] = None)func NewBgpRedistributionProfile(ctx *Context, name string, args BgpRedistributionProfileArgs, opts ...ResourceOption) (*BgpRedistributionProfile, error)public BgpRedistributionProfile(string name, BgpRedistributionProfileArgs args, CustomResourceOptions? opts = null)
public BgpRedistributionProfile(String name, BgpRedistributionProfileArgs args)
public BgpRedistributionProfile(String name, BgpRedistributionProfileArgs args, CustomResourceOptions options)
type: scm:BgpRedistributionProfile
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 BgpRedistributionProfileArgs
- 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 BgpRedistributionProfileArgs
- 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 BgpRedistributionProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpRedistributionProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpRedistributionProfileArgs
- 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 bgpRedistributionProfileResource = new Scm.BgpRedistributionProfile("bgpRedistributionProfileResource", new()
{
Ipv4 = new Scm.Inputs.BgpRedistributionProfileIpv4Args
{
Unicast = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastArgs
{
Connected = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastConnectedArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Ospf = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastOspfArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
Static = new Scm.Inputs.BgpRedistributionProfileIpv4UnicastStaticArgs
{
Enable = false,
Metric = 0,
RouteMap = "string",
},
},
},
Device = "string",
Folder = "string",
Name = "string",
Snippet = "string",
});
example, err := scm.NewBgpRedistributionProfile(ctx, "bgpRedistributionProfileResource", &scm.BgpRedistributionProfileArgs{
Ipv4: &scm.BgpRedistributionProfileIpv4Args{
Unicast: &scm.BgpRedistributionProfileIpv4UnicastArgs{
Connected: &scm.BgpRedistributionProfileIpv4UnicastConnectedArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Int(0),
RouteMap: pulumi.String("string"),
},
Ospf: &scm.BgpRedistributionProfileIpv4UnicastOspfArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Int(0),
RouteMap: pulumi.String("string"),
},
Static: &scm.BgpRedistributionProfileIpv4UnicastStaticArgs{
Enable: pulumi.Bool(false),
Metric: pulumi.Int(0),
RouteMap: pulumi.String("string"),
},
},
},
Device: pulumi.String("string"),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
Snippet: pulumi.String("string"),
})
var bgpRedistributionProfileResource = new BgpRedistributionProfile("bgpRedistributionProfileResource", BgpRedistributionProfileArgs.builder()
.ipv4(BgpRedistributionProfileIpv4Args.builder()
.unicast(BgpRedistributionProfileIpv4UnicastArgs.builder()
.connected(BgpRedistributionProfileIpv4UnicastConnectedArgs.builder()
.enable(false)
.metric(0)
.routeMap("string")
.build())
.ospf(BgpRedistributionProfileIpv4UnicastOspfArgs.builder()
.enable(false)
.metric(0)
.routeMap("string")
.build())
.static_(BgpRedistributionProfileIpv4UnicastStaticArgs.builder()
.enable(false)
.metric(0)
.routeMap("string")
.build())
.build())
.build())
.device("string")
.folder("string")
.name("string")
.snippet("string")
.build());
bgp_redistribution_profile_resource = scm.BgpRedistributionProfile("bgpRedistributionProfileResource",
ipv4={
"unicast": {
"connected": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"ospf": {
"enable": False,
"metric": 0,
"route_map": "string",
},
"static": {
"enable": False,
"metric": 0,
"route_map": "string",
},
},
},
device="string",
folder="string",
name="string",
snippet="string")
const bgpRedistributionProfileResource = new scm.BgpRedistributionProfile("bgpRedistributionProfileResource", {
ipv4: {
unicast: {
connected: {
enable: false,
metric: 0,
routeMap: "string",
},
ospf: {
enable: false,
metric: 0,
routeMap: "string",
},
static: {
enable: false,
metric: 0,
routeMap: "string",
},
},
},
device: "string",
folder: "string",
name: "string",
snippet: "string",
});
type: scm:BgpRedistributionProfile
properties:
device: string
folder: string
ipv4:
unicast:
connected:
enable: false
metric: 0
routeMap: string
ospf:
enable: false
metric: 0
routeMap: string
static:
enable: false
metric: 0
routeMap: string
name: string
snippet: string
BgpRedistributionProfile 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 BgpRedistributionProfile resource accepts the following input properties:
- Ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- 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.- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- Ipv4
Bgp
Redistribution Profile Ipv4Args - Ipv4
- 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.- Name string
- Name
- Snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- 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.- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- 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.- name string
- Name
- snippet string
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- ipv4
Bgp
Redistribution Profile Ipv4Args - Ipv4
- 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.- name str
- Name
- snippet str
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.
- ipv4 Property Map
- Ipv4
- 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.- name String
- Name
- 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 BgpRedistributionProfile resource produces the following output properties:
Look up Existing BgpRedistributionProfile Resource
Get an existing BgpRedistributionProfile 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?: BgpRedistributionProfileState, opts?: CustomResourceOptions): BgpRedistributionProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
device: Optional[str] = None,
folder: Optional[str] = None,
ipv4: Optional[BgpRedistributionProfileIpv4Args] = None,
name: Optional[str] = None,
snippet: Optional[str] = None,
tfid: Optional[str] = None) -> BgpRedistributionProfilefunc GetBgpRedistributionProfile(ctx *Context, name string, id IDInput, state *BgpRedistributionProfileState, opts ...ResourceOption) (*BgpRedistributionProfile, error)public static BgpRedistributionProfile Get(string name, Input<string> id, BgpRedistributionProfileState? state, CustomResourceOptions? opts = null)public static BgpRedistributionProfile get(String name, Output<String> id, BgpRedistributionProfileState state, CustomResourceOptions options)resources: _: type: scm:BgpRedistributionProfile 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.- Ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- Name string
- Name
- 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.- Ipv4
Bgp
Redistribution Profile Ipv4Args - Ipv4
- Name string
- Name
- 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.- ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- name String
- Name
- 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.- ipv4
Bgp
Redistribution Profile Ipv4 - Ipv4
- name string
- Name
- 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.- ipv4
Bgp
Redistribution Profile Ipv4Args - Ipv4
- name str
- Name
- 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.- ipv4 Property Map
- Ipv4
- name String
- Name
- snippet String
The snippet in which the resource is defined
ℹ️ Note: You must specify exactly one of
device,folder, andsnippet.- tfid String
Supporting Types
BgpRedistributionProfileIpv4, BgpRedistributionProfileIpv4Args
- unicast Property Map
- Unicast
BgpRedistributionProfileIpv4Unicast, BgpRedistributionProfileIpv4UnicastArgs
- connected Property Map
- Connected
- ospf Property Map
- Ospf
- static Property Map
- Static
BgpRedistributionProfileIpv4UnicastConnected, BgpRedistributionProfileIpv4UnicastConnectedArgs
BgpRedistributionProfileIpv4UnicastOspf, BgpRedistributionProfileIpv4UnicastOspfArgs
BgpRedistributionProfileIpv4UnicastStatic, BgpRedistributionProfileIpv4UnicastStaticArgs
Import
The following command can be used to import a resource not managed by Terraform:
bash
$ pulumi import scm:index/bgpRedistributionProfile:BgpRedistributionProfile example folder:::id
or
bash
$ pulumi import scm:index/bgpRedistributionProfile:BgpRedistributionProfile example :snippet::id
or
bash
$ pulumi import scm:index/bgpRedistributionProfile:BgpRedistributionProfile 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.
