1. Packages
  2. Sumo Logic
  3. API Docs
  4. CseNetworkBlock
Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi

sumologic.CseNetworkBlock

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi

    Provides a Sumo Logic CSE Network Block.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const networkBlock = new sumologic.CseNetworkBlock("network_block", {
        addressBlock: "10.0.1.0/26",
        label: "network block from terraform",
        internal: true,
        suppressesSignals: false,
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    network_block = sumologic.CseNetworkBlock("network_block",
        address_block="10.0.1.0/26",
        label="network block from terraform",
        internal=True,
        suppresses_signals=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sumologic.NewCseNetworkBlock(ctx, "network_block", &sumologic.CseNetworkBlockArgs{
    			AddressBlock:      pulumi.String("10.0.1.0/26"),
    			Label:             pulumi.String("network block from terraform"),
    			Internal:          pulumi.Bool(true),
    			SuppressesSignals: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using SumoLogic = Pulumi.SumoLogic;
    
    return await Deployment.RunAsync(() => 
    {
        var networkBlock = new SumoLogic.CseNetworkBlock("network_block", new()
        {
            AddressBlock = "10.0.1.0/26",
            Label = "network block from terraform",
            Internal = true,
            SuppressesSignals = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.CseNetworkBlock;
    import com.pulumi.sumologic.CseNetworkBlockArgs;
    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 networkBlock = new CseNetworkBlock("networkBlock", CseNetworkBlockArgs.builder()
                .addressBlock("10.0.1.0/26")
                .label("network block from terraform")
                .internal("true")
                .suppressesSignals("false")
                .build());
    
        }
    }
    
    resources:
      networkBlock:
        type: sumologic:CseNetworkBlock
        name: network_block
        properties:
          addressBlock: 10.0.1.0/26
          label: network block from terraform
          internal: 'true'
          suppressesSignals: 'false'
    

    Create CseNetworkBlock Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CseNetworkBlock(name: string, args: CseNetworkBlockArgs, opts?: CustomResourceOptions);
    @overload
    def CseNetworkBlock(resource_name: str,
                        args: CseNetworkBlockArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CseNetworkBlock(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        address_block: Optional[str] = None,
                        internal: Optional[bool] = None,
                        label: Optional[str] = None,
                        suppresses_signals: Optional[bool] = None)
    func NewCseNetworkBlock(ctx *Context, name string, args CseNetworkBlockArgs, opts ...ResourceOption) (*CseNetworkBlock, error)
    public CseNetworkBlock(string name, CseNetworkBlockArgs args, CustomResourceOptions? opts = null)
    public CseNetworkBlock(String name, CseNetworkBlockArgs args)
    public CseNetworkBlock(String name, CseNetworkBlockArgs args, CustomResourceOptions options)
    
    type: sumologic:CseNetworkBlock
    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 CseNetworkBlockArgs
    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 CseNetworkBlockArgs
    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 CseNetworkBlockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CseNetworkBlockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CseNetworkBlockArgs
    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 cseNetworkBlockResource = new SumoLogic.CseNetworkBlock("cseNetworkBlockResource", new()
    {
        AddressBlock = "string",
        Internal = false,
        Label = "string",
        SuppressesSignals = false,
    });
    
    example, err := sumologic.NewCseNetworkBlock(ctx, "cseNetworkBlockResource", &sumologic.CseNetworkBlockArgs{
    	AddressBlock:      pulumi.String("string"),
    	Internal:          pulumi.Bool(false),
    	Label:             pulumi.String("string"),
    	SuppressesSignals: pulumi.Bool(false),
    })
    
    var cseNetworkBlockResource = new CseNetworkBlock("cseNetworkBlockResource", CseNetworkBlockArgs.builder()
        .addressBlock("string")
        .internal(false)
        .label("string")
        .suppressesSignals(false)
        .build());
    
    cse_network_block_resource = sumologic.CseNetworkBlock("cseNetworkBlockResource",
        address_block="string",
        internal=False,
        label="string",
        suppresses_signals=False)
    
    const cseNetworkBlockResource = new sumologic.CseNetworkBlock("cseNetworkBlockResource", {
        addressBlock: "string",
        internal: false,
        label: "string",
        suppressesSignals: false,
    });
    
    type: sumologic:CseNetworkBlock
    properties:
        addressBlock: string
        internal: false
        label: string
        suppressesSignals: false
    

    CseNetworkBlock Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CseNetworkBlock resource accepts the following input properties:

    AddressBlock string
    The address block.
    Internal bool
    Internal flag.
    Label string
    The displayable label of the address block.
    SuppressesSignals bool

    Suppresses signal flag.

    The following attributes are exported:

    AddressBlock string
    The address block.
    Internal bool
    Internal flag.
    Label string
    The displayable label of the address block.
    SuppressesSignals bool

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock String
    The address block.
    internal Boolean
    Internal flag.
    label String
    The displayable label of the address block.
    suppressesSignals Boolean

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock string
    The address block.
    internal boolean
    Internal flag.
    label string
    The displayable label of the address block.
    suppressesSignals boolean

    Suppresses signal flag.

    The following attributes are exported:

    address_block str
    The address block.
    internal bool
    Internal flag.
    label str
    The displayable label of the address block.
    suppresses_signals bool

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock String
    The address block.
    internal Boolean
    Internal flag.
    label String
    The displayable label of the address block.
    suppressesSignals Boolean

    Suppresses signal flag.

    The following attributes are exported:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CseNetworkBlock resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CseNetworkBlock Resource

    Get an existing CseNetworkBlock 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?: CseNetworkBlockState, opts?: CustomResourceOptions): CseNetworkBlock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            address_block: Optional[str] = None,
            internal: Optional[bool] = None,
            label: Optional[str] = None,
            suppresses_signals: Optional[bool] = None) -> CseNetworkBlock
    func GetCseNetworkBlock(ctx *Context, name string, id IDInput, state *CseNetworkBlockState, opts ...ResourceOption) (*CseNetworkBlock, error)
    public static CseNetworkBlock Get(string name, Input<string> id, CseNetworkBlockState? state, CustomResourceOptions? opts = null)
    public static CseNetworkBlock get(String name, Output<String> id, CseNetworkBlockState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AddressBlock string
    The address block.
    Internal bool
    Internal flag.
    Label string
    The displayable label of the address block.
    SuppressesSignals bool

    Suppresses signal flag.

    The following attributes are exported:

    AddressBlock string
    The address block.
    Internal bool
    Internal flag.
    Label string
    The displayable label of the address block.
    SuppressesSignals bool

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock String
    The address block.
    internal Boolean
    Internal flag.
    label String
    The displayable label of the address block.
    suppressesSignals Boolean

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock string
    The address block.
    internal boolean
    Internal flag.
    label string
    The displayable label of the address block.
    suppressesSignals boolean

    Suppresses signal flag.

    The following attributes are exported:

    address_block str
    The address block.
    internal bool
    Internal flag.
    label str
    The displayable label of the address block.
    suppresses_signals bool

    Suppresses signal flag.

    The following attributes are exported:

    addressBlock String
    The address block.
    internal Boolean
    Internal flag.
    label String
    The displayable label of the address block.
    suppressesSignals Boolean

    Suppresses signal flag.

    The following attributes are exported:

    Import

    Network Block can be imported using the field id, e.g.:

    hcl

    $ pulumi import sumologic:index/cseNetworkBlock:CseNetworkBlock network_block id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Sumo Logic pulumi/pulumi-sumologic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    Sumo Logic v0.22.1 published on Sunday, Jun 9, 2024 by Pulumi