1. Packages
  2. Sumologic Provider
  3. API Docs
  4. SourceTemplate
Sumo Logic v1.0.8 published on Tuesday, Apr 29, 2025 by Pulumi

sumologic.SourceTemplate

Explore with Pulumi AI

sumologic logo
Sumo Logic v1.0.8 published on Tuesday, Apr 29, 2025 by Pulumi

    Create SourceTemplate Resource

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

    Constructor syntax

    new SourceTemplate(name: string, args: SourceTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def SourceTemplate(resource_name: str,
                       args: SourceTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SourceTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       input_json: Optional[str] = None,
                       schema_ref: Optional[SourceTemplateSchemaRefArgs] = None,
                       selectors: Optional[Sequence[SourceTemplateSelectorArgs]] = None)
    func NewSourceTemplate(ctx *Context, name string, args SourceTemplateArgs, opts ...ResourceOption) (*SourceTemplate, error)
    public SourceTemplate(string name, SourceTemplateArgs args, CustomResourceOptions? opts = null)
    public SourceTemplate(String name, SourceTemplateArgs args)
    public SourceTemplate(String name, SourceTemplateArgs args, CustomResourceOptions options)
    
    type: sumologic:SourceTemplate
    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 SourceTemplateArgs
    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 SourceTemplateArgs
    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 SourceTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SourceTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SourceTemplateArgs
    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 sourceTemplateResource = new SumoLogic.SourceTemplate("sourceTemplateResource", new()
    {
        InputJson = "string",
        SchemaRef = new SumoLogic.Inputs.SourceTemplateSchemaRefArgs
        {
            Type = "string",
            LatestVersion = "string",
            Version = "string",
        },
        Selectors = new[]
        {
            new SumoLogic.Inputs.SourceTemplateSelectorArgs
            {
                Names = new[]
                {
                    "string",
                },
                Tags = new[]
                {
                    new[]
                    {
                        new SumoLogic.Inputs.SourceTemplateSelectorTagArgs
                        {
                            Key = "string",
                            Values = new[]
                            {
                                "string",
                            },
                        },
                    },
                },
            },
        },
    });
    
    example, err := sumologic.NewSourceTemplate(ctx, "sourceTemplateResource", &sumologic.SourceTemplateArgs{
    	InputJson: pulumi.String("string"),
    	SchemaRef: &sumologic.SourceTemplateSchemaRefArgs{
    		Type:          pulumi.String("string"),
    		LatestVersion: pulumi.String("string"),
    		Version:       pulumi.String("string"),
    	},
    	Selectors: sumologic.SourceTemplateSelectorArray{
    		&sumologic.SourceTemplateSelectorArgs{
    			Names: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Tags: sumologic.SourceTemplateSelectorTagArrayArray{
    				sumologic.SourceTemplateSelectorTagArray{
    					&sumologic.SourceTemplateSelectorTagArgs{
    						Key: pulumi.String("string"),
    						Values: pulumi.StringArray{
    							pulumi.String("string"),
    						},
    					},
    				},
    			},
    		},
    	},
    })
    
    var sourceTemplateResource = new SourceTemplate("sourceTemplateResource", SourceTemplateArgs.builder()
        .inputJson("string")
        .schemaRef(SourceTemplateSchemaRefArgs.builder()
            .type("string")
            .latestVersion("string")
            .version("string")
            .build())
        .selectors(SourceTemplateSelectorArgs.builder()
            .names("string")
            .tags(SourceTemplateSelectorTagArgs.builder()
                .key("string")
                .values("string")
                .build())
            .build())
        .build());
    
    source_template_resource = sumologic.SourceTemplate("sourceTemplateResource",
        input_json="string",
        schema_ref={
            "type": "string",
            "latest_version": "string",
            "version": "string",
        },
        selectors=[{
            "names": ["string"],
            "tags": [[{
                "key": "string",
                "values": ["string"],
            }]],
        }])
    
    const sourceTemplateResource = new sumologic.SourceTemplate("sourceTemplateResource", {
        inputJson: "string",
        schemaRef: {
            type: "string",
            latestVersion: "string",
            version: "string",
        },
        selectors: [{
            names: ["string"],
            tags: [[{
                key: "string",
                values: ["string"],
            }]],
        }],
    });
    
    type: sumologic:SourceTemplate
    properties:
        inputJson: string
        schemaRef:
            latestVersion: string
            type: string
            version: string
        selectors:
            - names:
                - string
              tags:
                - - key: string
                    values:
                        - string
    

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

    InputJson string
    inputJson of source template
    SchemaRef Pulumi.SumoLogic.Inputs.SourceTemplateSchemaRef
    schema reference for source template.
    Selectors List<Pulumi.SumoLogic.Inputs.SourceTemplateSelector>
    Agent selector conditions
    InputJson string
    inputJson of source template
    SchemaRef SourceTemplateSchemaRefArgs
    schema reference for source template.
    Selectors []SourceTemplateSelectorArgs
    Agent selector conditions
    inputJson String
    inputJson of source template
    schemaRef SourceTemplateSchemaRef
    schema reference for source template.
    selectors List<SourceTemplateSelector>
    Agent selector conditions
    inputJson string
    inputJson of source template
    schemaRef SourceTemplateSchemaRef
    schema reference for source template.
    selectors SourceTemplateSelector[]
    Agent selector conditions
    input_json str
    inputJson of source template
    schema_ref SourceTemplateSchemaRefArgs
    schema reference for source template.
    selectors Sequence[SourceTemplateSelectorArgs]
    Agent selector conditions
    inputJson String
    inputJson of source template
    schemaRef Property Map
    schema reference for source template.
    selectors List<Property Map>
    Agent selector conditions

    Outputs

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

    Config string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    TotalCollectorLinked int
    Config string
    CreatedAt string
    CreatedBy string
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifiedAt string
    ModifiedBy string
    TotalCollectorLinked int
    config String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String
    totalCollectorLinked Integer
    config string
    createdAt string
    createdBy string
    id string
    The provider-assigned unique ID for this managed resource.
    modifiedAt string
    modifiedBy string
    totalCollectorLinked number
    config str
    created_at str
    created_by str
    id str
    The provider-assigned unique ID for this managed resource.
    modified_at str
    modified_by str
    total_collector_linked int
    config String
    createdAt String
    createdBy String
    id String
    The provider-assigned unique ID for this managed resource.
    modifiedAt String
    modifiedBy String
    totalCollectorLinked Number

    Look up Existing SourceTemplate Resource

    Get an existing SourceTemplate 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?: SourceTemplateState, opts?: CustomResourceOptions): SourceTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            input_json: Optional[str] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            schema_ref: Optional[SourceTemplateSchemaRefArgs] = None,
            selectors: Optional[Sequence[SourceTemplateSelectorArgs]] = None,
            total_collector_linked: Optional[int] = None) -> SourceTemplate
    func GetSourceTemplate(ctx *Context, name string, id IDInput, state *SourceTemplateState, opts ...ResourceOption) (*SourceTemplate, error)
    public static SourceTemplate Get(string name, Input<string> id, SourceTemplateState? state, CustomResourceOptions? opts = null)
    public static SourceTemplate get(String name, Output<String> id, SourceTemplateState state, CustomResourceOptions options)
    resources:  _:    type: sumologic:SourceTemplate    get:      id: ${id}
    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:
    Config string
    CreatedAt string
    CreatedBy string
    InputJson string
    inputJson of source template
    ModifiedAt string
    ModifiedBy string
    SchemaRef Pulumi.SumoLogic.Inputs.SourceTemplateSchemaRef
    schema reference for source template.
    Selectors List<Pulumi.SumoLogic.Inputs.SourceTemplateSelector>
    Agent selector conditions
    TotalCollectorLinked int
    Config string
    CreatedAt string
    CreatedBy string
    InputJson string
    inputJson of source template
    ModifiedAt string
    ModifiedBy string
    SchemaRef SourceTemplateSchemaRefArgs
    schema reference for source template.
    Selectors []SourceTemplateSelectorArgs
    Agent selector conditions
    TotalCollectorLinked int
    config String
    createdAt String
    createdBy String
    inputJson String
    inputJson of source template
    modifiedAt String
    modifiedBy String
    schemaRef SourceTemplateSchemaRef
    schema reference for source template.
    selectors List<SourceTemplateSelector>
    Agent selector conditions
    totalCollectorLinked Integer
    config string
    createdAt string
    createdBy string
    inputJson string
    inputJson of source template
    modifiedAt string
    modifiedBy string
    schemaRef SourceTemplateSchemaRef
    schema reference for source template.
    selectors SourceTemplateSelector[]
    Agent selector conditions
    totalCollectorLinked number
    config str
    created_at str
    created_by str
    input_json str
    inputJson of source template
    modified_at str
    modified_by str
    schema_ref SourceTemplateSchemaRefArgs
    schema reference for source template.
    selectors Sequence[SourceTemplateSelectorArgs]
    Agent selector conditions
    total_collector_linked int
    config String
    createdAt String
    createdBy String
    inputJson String
    inputJson of source template
    modifiedAt String
    modifiedBy String
    schemaRef Property Map
    schema reference for source template.
    selectors List<Property Map>
    Agent selector conditions
    totalCollectorLinked Number

    Supporting Types

    SourceTemplateSchemaRef, SourceTemplateSchemaRefArgs

    Type string
    LatestVersion string
    Version string
    Type string
    LatestVersion string
    Version string
    type String
    latestVersion String
    version String
    type string
    latestVersion string
    version string
    type String
    latestVersion String
    version String

    SourceTemplateSelector, SourceTemplateSelectorArgs

    Names List<string>
    names to select custom agents
    Tags List<ImmutableArray<Pulumi.SumoLogic.Inputs.SourceTemplateSelectorTag>>
    tags filter for agents
    Names []string
    names to select custom agents
    Tags [][]SourceTemplateSelectorTag
    tags filter for agents
    names List<String>
    names to select custom agents
    tags List<List<SourceTemplateSelectorTag>>
    tags filter for agents
    names string[]
    names to select custom agents
    tags SourceTemplateSelectorTag[][]
    tags filter for agents
    names Sequence[str]
    names to select custom agents
    tags Sequence[Sequence[SourceTemplateSelectorTag]]
    tags filter for agents
    names List<String>
    names to select custom agents
    tags List<List<Property Map>>
    tags filter for agents

    SourceTemplateSelectorTag, SourceTemplateSelectorTagArgs

    Key string
    Values List<string>
    values of the given tag.
    Key string
    Values []string
    values of the given tag.
    key String
    values List<String>
    values of the given tag.
    key string
    values string[]
    values of the given tag.
    key str
    values Sequence[str]
    values of the given tag.
    key String
    values List<String>
    values of the given tag.

    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 v1.0.8 published on Tuesday, Apr 29, 2025 by Pulumi