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"});
import pulumi
import pulumi_sumologic as sumologic
example_subdomain = sumologic.Subdomain("exampleSubdomain", subdomain="my-company")
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
})
}
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",
});
});
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());
}
}
resources:
exampleSubdomain:
type: sumologic:Subdomain
properties:
subdomain: my-company
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 string
- The unique name of the resource.
- args SubdomainArgs
- 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 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 string
- The unique name of the resource.
- args SubdomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubdomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := sumologic.NewSubdomain(ctx, "subdomainResource", &sumologic.SubdomainArgs{
Subdomain: pulumi.String("string"),
})
var subdomainResource = new Subdomain("subdomainResource", SubdomainArgs.builder()
.subdomain("string")
.build());
subdomain_resource = sumologic.Subdomain("subdomainResource", subdomain="string")
const subdomainResource = new sumologic.Subdomain("subdomainResource", {subdomain: "string"});
type: sumologic:Subdomain
properties:
subdomain: string
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
The Subdomain resource accepts the following input properties:
- Subdomain
Name string - The subdomain.
- Subdomain string
- The subdomain.
- subdomain String
- The subdomain.
- subdomain string
- The subdomain.
- subdomain str
- The subdomain.
- subdomain 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)
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.
- Subdomain
Name 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.