checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw
checkpoint.getManagementNatSection
Explore with Pulumi AI
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw
This resource allows you to execute Check Point NAT section.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const test = new checkpoint.ManagementNatSection("test", {
"package": "Standard",
position: {
top: "top",
},
});
const natSection = checkpoint.getManagementNatSectionOutput({
name: test.name,
"package": test["package"],
});
import pulumi
import pulumi_checkpoint as checkpoint
test = checkpoint.ManagementNatSection("test",
package="Standard",
position={
"top": "top",
})
nat_section = checkpoint.get_management_nat_section_output(name=test.name,
package=test.package)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := checkpoint.NewManagementNatSection(ctx, "test", &checkpoint.ManagementNatSectionArgs{
Package: pulumi.String("Standard"),
Position: pulumi.StringMap{
"top": pulumi.String("top"),
},
})
if err != nil {
return err
}
_ = checkpoint.LookupManagementNatSectionOutput(ctx, checkpoint.GetManagementNatSectionOutputArgs{
Name: test.Name,
Package: test.Package,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var test = new Checkpoint.ManagementNatSection("test", new()
{
Package = "Standard",
Position =
{
{ "top", "top" },
},
});
var natSection = Checkpoint.GetManagementNatSection.Invoke(new()
{
Name = test.Name,
Package = test.Package,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementNatSection;
import com.pulumi.checkpoint.ManagementNatSectionArgs;
import com.pulumi.checkpoint.CheckpointFunctions;
import com.pulumi.checkpoint.inputs.GetManagementNatSectionArgs;
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 test = new ManagementNatSection("test", ManagementNatSectionArgs.builder()
.package_("Standard")
.position(Map.of("top", "top"))
.build());
final var natSection = CheckpointFunctions.getManagementNatSection(GetManagementNatSectionArgs.builder()
.name(test.name())
.package_(test.package())
.build());
}
}
resources:
test:
type: checkpoint:ManagementNatSection
properties:
package: Standard
position:
top: top
variables:
natSection:
fn::invoke:
function: checkpoint:getManagementNatSection
arguments:
name: ${test.name}
package: ${test.package}
Using getManagementNatSection
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getManagementNatSection(args: GetManagementNatSectionArgs, opts?: InvokeOptions): Promise<GetManagementNatSectionResult>
function getManagementNatSectionOutput(args: GetManagementNatSectionOutputArgs, opts?: InvokeOptions): Output<GetManagementNatSectionResult>
def get_management_nat_section(id: Optional[str] = None,
name: Optional[str] = None,
package: Optional[str] = None,
uid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetManagementNatSectionResult
def get_management_nat_section_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
package: Optional[pulumi.Input[str]] = None,
uid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagementNatSectionResult]
func LookupManagementNatSection(ctx *Context, args *LookupManagementNatSectionArgs, opts ...InvokeOption) (*LookupManagementNatSectionResult, error)
func LookupManagementNatSectionOutput(ctx *Context, args *LookupManagementNatSectionOutputArgs, opts ...InvokeOption) LookupManagementNatSectionResultOutput
> Note: This function is named LookupManagementNatSection
in the Go SDK.
public static class GetManagementNatSection
{
public static Task<GetManagementNatSectionResult> InvokeAsync(GetManagementNatSectionArgs args, InvokeOptions? opts = null)
public static Output<GetManagementNatSectionResult> Invoke(GetManagementNatSectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagementNatSectionResult> getManagementNatSection(GetManagementNatSectionArgs args, InvokeOptions options)
public static Output<GetManagementNatSectionResult> getManagementNatSection(GetManagementNatSectionArgs args, InvokeOptions options)
fn::invoke:
function: checkpoint:index/getManagementNatSection:getManagementNatSection
arguments:
# arguments dictionary
The following arguments are supported:
getManagementNatSection Result
The following output properties are available:
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.
checkpoint 2.9.0 published on Monday, Apr 14, 2025 by checkpointsw