BgpRedistributionProfile resource
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:
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.
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
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scmTerraform Provider.
