sumologic.CseNetworkBlock
Explore with Pulumi AI
Provides a Sumo Logic CSE Network Block.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var networkBlock = new SumoLogic.CseNetworkBlock("networkBlock", new()
{
AddressBlock = "10.0.1.0/26",
Internal = true,
Label = "network block from terraform",
SuppressesSignals = 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, "networkBlock", &sumologic.CseNetworkBlockArgs{
AddressBlock: pulumi.String("10.0.1.0/26"),
Internal: pulumi.Bool(true),
Label: pulumi.String("network block from terraform"),
SuppressesSignals: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
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")
.internal("true")
.label("network block from terraform")
.suppressesSignals("false")
.build());
}
}
import pulumi
import pulumi_sumologic as sumologic
network_block = sumologic.CseNetworkBlock("networkBlock",
address_block="10.0.1.0/26",
internal=True,
label="network block from terraform",
suppresses_signals=False)
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const networkBlock = new sumologic.CseNetworkBlock("networkBlock", {
addressBlock: "10.0.1.0/26",
internal: true,
label: "network block from terraform",
suppressesSignals: false,
});
resources:
networkBlock:
type: sumologic:CseNetworkBlock
properties:
addressBlock: 10.0.1.0/26
internal: 'true'
label: network block from terraform
suppressesSignals: 'false'
Create CseNetworkBlock Resource
new CseNetworkBlock(name: string, args: CseNetworkBlockArgs, opts?: CustomResourceOptions);
@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)
@overload
def CseNetworkBlock(resource_name: str,
args: CseNetworkBlockArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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:
- Address
Block string The address block.
- Internal bool
Internal flag.
- Label string
The displayable label of the address block.
- Suppresses
Signals bool Suppresses signal flag.
The following attributes are exported:
- Address
Block string The address block.
- Internal bool
Internal flag.
- Label string
The displayable label of the address block.
- Suppresses
Signals bool Suppresses signal flag.
The following attributes are exported:
- address
Block String The address block.
- internal Boolean
Internal flag.
- label String
The displayable label of the address block.
- suppresses
Signals Boolean Suppresses signal flag.
The following attributes are exported:
- address
Block string The address block.
- internal boolean
Internal flag.
- label string
The displayable label of the address block.
- suppresses
Signals 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:
- address
Block String The address block.
- internal Boolean
Internal flag.
- label String
The displayable label of the address block.
- suppresses
Signals 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.
- Address
Block string The address block.
- Internal bool
Internal flag.
- Label string
The displayable label of the address block.
- Suppresses
Signals bool Suppresses signal flag.
The following attributes are exported:
- Address
Block string The address block.
- Internal bool
Internal flag.
- Label string
The displayable label of the address block.
- Suppresses
Signals bool Suppresses signal flag.
The following attributes are exported:
- address
Block String The address block.
- internal Boolean
Internal flag.
- label String
The displayable label of the address block.
- suppresses
Signals Boolean Suppresses signal flag.
The following attributes are exported:
- address
Block string The address block.
- internal boolean
Internal flag.
- label string
The displayable label of the address block.
- suppresses
Signals 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:
- address
Block String The address block.
- internal Boolean
Internal flag.
- label String
The displayable label of the address block.
- suppresses
Signals 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
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.