-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
496 changed files
with
5,684 additions
and
1,295 deletions.
There are no files selected for viewing
99 changes: 99 additions & 0 deletions
99
docs/resource/equinix_fabric_connection_route_filter.examples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
## Example Usage | ||
{{% example %}} | ||
```typescript | ||
import * as pulumi from "@pulumi/pulumi"; | ||
|
||
export const connectionRouteFilterId = policyAttachment.id; | ||
export const connectionRouteFilterConnectionId = policyAttachment.connectionId; | ||
export const connectionRouteFilterDirection = policyAttachment.direction; | ||
export const connectionRouteFilterType = policyAttachment.type; | ||
export const connectionRouteFilterAttachmentStatus = policyAttachment.attachmentStatus; | ||
``` | ||
```python | ||
import pulumi | ||
|
||
pulumi.export("connectionRouteFilterId", policy_attachment["id"]) | ||
pulumi.export("connectionRouteFilterConnectionId", policy_attachment["connectionId"]) | ||
pulumi.export("connectionRouteFilterDirection", policy_attachment["direction"]) | ||
pulumi.export("connectionRouteFilterType", policy_attachment["type"]) | ||
pulumi.export("connectionRouteFilterAttachmentStatus", policy_attachment["attachmentStatus"]) | ||
``` | ||
```go | ||
package main | ||
|
||
import ( | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | ||
) | ||
|
||
func main() { | ||
pulumi.Run(func(ctx *pulumi.Context) error { | ||
ctx.Export("connectionRouteFilterId", policyAttachment.Id) | ||
ctx.Export("connectionRouteFilterConnectionId", policyAttachment.ConnectionId) | ||
ctx.Export("connectionRouteFilterDirection", policyAttachment.Direction) | ||
ctx.Export("connectionRouteFilterType", policyAttachment.Type) | ||
ctx.Export("connectionRouteFilterAttachmentStatus", policyAttachment.AttachmentStatus) | ||
return nil | ||
}) | ||
} | ||
``` | ||
```csharp | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Pulumi; | ||
|
||
return await Deployment.RunAsync(() => | ||
{ | ||
return new Dictionary<string, object?> | ||
{ | ||
["connectionRouteFilterId"] = policyAttachment.Id, | ||
["connectionRouteFilterConnectionId"] = policyAttachment.ConnectionId, | ||
["connectionRouteFilterDirection"] = policyAttachment.Direction, | ||
["connectionRouteFilterType"] = policyAttachment.Type, | ||
["connectionRouteFilterAttachmentStatus"] = policyAttachment.AttachmentStatus, | ||
}; | ||
}); | ||
``` | ||
```java | ||
package generated_program; | ||
|
||
import com.pulumi.Context; | ||
import com.pulumi.Pulumi; | ||
import com.pulumi.core.Output; | ||
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) { | ||
ctx.export("connectionRouteFilterId", policyAttachment.id()); | ||
ctx.export("connectionRouteFilterConnectionId", policyAttachment.connectionId()); | ||
ctx.export("connectionRouteFilterDirection", policyAttachment.direction()); | ||
ctx.export("connectionRouteFilterType", policyAttachment.type()); | ||
ctx.export("connectionRouteFilterAttachmentStatus", policyAttachment.attachmentStatus()); | ||
} | ||
} | ||
``` | ||
```yaml | ||
resources: | ||
policyAttachment: | ||
type: equinix:fabricConnectionRouteFilter | ||
name: policy_attachment | ||
properties: | ||
connectionId: <connection_uuid> | ||
routeFilterId: <route_filter_policy_uuid> | ||
direction: INBOUND | ||
outputs: | ||
connectionRouteFilterId: ${policyAttachment.id} | ||
connectionRouteFilterConnectionId: ${policyAttachment.connectionId} | ||
connectionRouteFilterDirection: ${policyAttachment.direction} | ||
connectionRouteFilterType: ${policyAttachment.type} | ||
connectionRouteFilterAttachmentStatus: ${policyAttachment.attachmentStatus} | ||
``` | ||
{{% /example %}} |
95 changes: 95 additions & 0 deletions
95
docs/resource/equinix_fabric_route_filter_rule.examples.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
## Example Usage | ||
{{% example %}} | ||
```typescript | ||
import * as pulumi from "@pulumi/pulumi"; | ||
|
||
export const routeFilterRuleId = rfRule.id; | ||
export const routeFilterId = rfRule.routeFilterId; | ||
export const routeFilterRulePrefix = rfRule.prefix; | ||
export const routeFilterRulePrefixMatch = rfRule.prefixMatch; | ||
``` | ||
```python | ||
import pulumi | ||
|
||
pulumi.export("routeFilterRuleId", rf_rule["id"]) | ||
pulumi.export("routeFilterId", rf_rule["routeFilterId"]) | ||
pulumi.export("routeFilterRulePrefix", rf_rule["prefix"]) | ||
pulumi.export("routeFilterRulePrefixMatch", rf_rule["prefixMatch"]) | ||
``` | ||
```go | ||
package main | ||
|
||
import ( | ||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" | ||
) | ||
|
||
func main() { | ||
pulumi.Run(func(ctx *pulumi.Context) error { | ||
ctx.Export("routeFilterRuleId", rfRule.Id) | ||
ctx.Export("routeFilterId", rfRule.RouteFilterId) | ||
ctx.Export("routeFilterRulePrefix", rfRule.Prefix) | ||
ctx.Export("routeFilterRulePrefixMatch", rfRule.PrefixMatch) | ||
return nil | ||
}) | ||
} | ||
``` | ||
```csharp | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Pulumi; | ||
|
||
return await Deployment.RunAsync(() => | ||
{ | ||
return new Dictionary<string, object?> | ||
{ | ||
["routeFilterRuleId"] = rfRule.Id, | ||
["routeFilterId"] = rfRule.RouteFilterId, | ||
["routeFilterRulePrefix"] = rfRule.Prefix, | ||
["routeFilterRulePrefixMatch"] = rfRule.PrefixMatch, | ||
}; | ||
}); | ||
``` | ||
```java | ||
package generated_program; | ||
|
||
import com.pulumi.Context; | ||
import com.pulumi.Pulumi; | ||
import com.pulumi.core.Output; | ||
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) { | ||
ctx.export("routeFilterRuleId", rfRule.id()); | ||
ctx.export("routeFilterId", rfRule.routeFilterId()); | ||
ctx.export("routeFilterRulePrefix", rfRule.prefix()); | ||
ctx.export("routeFilterRulePrefixMatch", rfRule.prefixMatch()); | ||
} | ||
} | ||
``` | ||
```yaml | ||
resources: | ||
rfRule: | ||
type: equinix:fabricRouteFilterRule | ||
name: rf_rule | ||
properties: | ||
routeFilterId: <route_filter_policy_id> | ||
name: Route Filter Rule Name | ||
prefix: 192.168.0.0/24 | ||
prefixMatch: exact | ||
description: Route Filter Rule for X Purpose | ||
outputs: | ||
routeFilterRuleId: ${rfRule.id} | ||
routeFilterId: ${rfRule.routeFilterId} | ||
routeFilterRulePrefix: ${rfRule.prefix} | ||
routeFilterRulePrefixMatch: ${rfRule.prefixMatch} | ||
``` | ||
{{% /example %}} |
Oops, something went wrong.