1. Packages
  2. Sumologic Provider
  3. API Docs
  4. Subdomain
Sumo Logic v1.0.7 published on Friday, Apr 11, 2025 by Pulumi

sumologic.Subdomain

Explore with Pulumi AI

Provides a Sumologic Subdomain.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const exampleSubdomain = new sumologic.Subdomain("exampleSubdomain", {subdomain: "my-company"});
Copy
import pulumi
import pulumi_sumologic as sumologic

example_subdomain = sumologic.Subdomain("exampleSubdomain", subdomain="my-company")
Copy
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.NewSubdomain(ctx, "exampleSubdomain", &sumologic.SubdomainArgs{
			Subdomain: pulumi.String("my-company"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var exampleSubdomain = new SumoLogic.Subdomain("exampleSubdomain", new()
    {
        SubdomainName = "my-company",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Subdomain;
import com.pulumi.sumologic.SubdomainArgs;
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 exampleSubdomain = new Subdomain("exampleSubdomain", SubdomainArgs.builder()
            .subdomain("my-company")
            .build());

    }
}
Copy
resources:
  exampleSubdomain:
    type: sumologic:Subdomain
    properties:
      subdomain: my-company
Copy

Attributes reference

The following attributes are exported:

  • id - Unique identifier for the subdomain.

Create Subdomain Resource

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

Constructor syntax

new Subdomain(name: string, args: SubdomainArgs, opts?: CustomResourceOptions);
@overload
def Subdomain(resource_name: str,
              args: SubdomainArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def Subdomain(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              subdomain: Optional[str] = None)
func NewSubdomain(ctx *Context, name string, args SubdomainArgs, opts ...ResourceOption) (*Subdomain, error)
public Subdomain(string name, SubdomainArgs args, CustomResourceOptions? opts = null)
public Subdomain(String name, SubdomainArgs args)
public Subdomain(String name, SubdomainArgs args, CustomResourceOptions options)
type: sumologic:Subdomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SubdomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SubdomainArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SubdomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SubdomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SubdomainArgs
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 subdomainResource = new SumoLogic.Subdomain("subdomainResource", new()
{
    SubdomainName = "string",
});
Copy
example, err := sumologic.NewSubdomain(ctx, "subdomainResource", &sumologic.SubdomainArgs{
	Subdomain: pulumi.String("string"),
})
Copy
var subdomainResource = new Subdomain("subdomainResource", SubdomainArgs.builder()
    .subdomain("string")
    .build());
Copy
subdomain_resource = sumologic.Subdomain("subdomainResource", subdomain="string")
Copy
const subdomainResource = new sumologic.Subdomain("subdomainResource", {subdomain: "string"});
Copy
type: sumologic:Subdomain
properties:
    subdomain: string
Copy

Subdomain 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 Subdomain resource accepts the following input properties:

SubdomainName This property is required. string
The subdomain.
Subdomain This property is required. string
The subdomain.
subdomain This property is required. String
The subdomain.
subdomain This property is required. string
The subdomain.
subdomain This property is required. str
The subdomain.
subdomain This property is required. String
The subdomain.

Outputs

All input properties are implicitly available as output properties. Additionally, the Subdomain 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 Subdomain Resource

Get an existing Subdomain 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?: SubdomainState, opts?: CustomResourceOptions): Subdomain
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        subdomain: Optional[str] = None) -> Subdomain
func GetSubdomain(ctx *Context, name string, id IDInput, state *SubdomainState, opts ...ResourceOption) (*Subdomain, error)
public static Subdomain Get(string name, Input<string> id, SubdomainState? state, CustomResourceOptions? opts = null)
public static Subdomain get(String name, Output<String> id, SubdomainState state, CustomResourceOptions options)
resources:  _:    type: sumologic:Subdomain    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
SubdomainName string
The subdomain.
Subdomain string
The subdomain.
subdomain String
The subdomain.
subdomain string
The subdomain.
subdomain str
The subdomain.
subdomain String
The subdomain.

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes
This Pulumi package is based on the sumologic Terraform Provider.