sumologic.SourceTemplate
Explore with Pulumi AI
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.Sumo Logic. Inputs. Source Template Schema Ref 
- schema reference for source template.
- Selectors
List<Pulumi.Sumo Logic. Inputs. Source Template Selector> 
- Agent selector conditions
- InputJson string
- inputJson of source template
- SchemaRef SourceTemplate Schema Ref Args 
- schema reference for source template.
- Selectors
[]SourceTemplate Selector Args 
- Agent selector conditions
- inputJson String
- inputJson of source template
- schemaRef SourceTemplate Schema Ref 
- schema reference for source template.
- selectors
List<SourceTemplate Selector> 
- Agent selector conditions
- inputJson string
- inputJson of source template
- schemaRef SourceTemplate Schema Ref 
- schema reference for source template.
- selectors
SourceTemplate Selector[] 
- Agent selector conditions
- input_json str
- inputJson of source template
- schema_ref SourceTemplate Schema Ref Args 
- schema reference for source template.
- selectors
Sequence[SourceTemplate Selector Args] 
- 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
- TotalCollector intLinked 
- Config string
- CreatedAt string
- CreatedBy string
- Id string
- The provider-assigned unique ID for this managed resource.
- ModifiedAt string
- ModifiedBy string
- TotalCollector intLinked 
- config String
- createdAt String
- createdBy String
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedAt String
- modifiedBy String
- totalCollector IntegerLinked 
- config string
- createdAt string
- createdBy string
- id string
- The provider-assigned unique ID for this managed resource.
- modifiedAt string
- modifiedBy string
- totalCollector numberLinked 
- 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_ intlinked 
- config String
- createdAt String
- createdBy String
- id String
- The provider-assigned unique ID for this managed resource.
- modifiedAt String
- modifiedBy String
- totalCollector NumberLinked 
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) -> SourceTemplatefunc 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.
- Config string
- CreatedAt string
- CreatedBy string
- InputJson string
- inputJson of source template
- ModifiedAt string
- ModifiedBy string
- SchemaRef Pulumi.Sumo Logic. Inputs. Source Template Schema Ref 
- schema reference for source template.
- Selectors
List<Pulumi.Sumo Logic. Inputs. Source Template Selector> 
- Agent selector conditions
- TotalCollector intLinked 
- Config string
- CreatedAt string
- CreatedBy string
- InputJson string
- inputJson of source template
- ModifiedAt string
- ModifiedBy string
- SchemaRef SourceTemplate Schema Ref Args 
- schema reference for source template.
- Selectors
[]SourceTemplate Selector Args 
- Agent selector conditions
- TotalCollector intLinked 
- config String
- createdAt String
- createdBy String
- inputJson String
- inputJson of source template
- modifiedAt String
- modifiedBy String
- schemaRef SourceTemplate Schema Ref 
- schema reference for source template.
- selectors
List<SourceTemplate Selector> 
- Agent selector conditions
- totalCollector IntegerLinked 
- config string
- createdAt string
- createdBy string
- inputJson string
- inputJson of source template
- modifiedAt string
- modifiedBy string
- schemaRef SourceTemplate Schema Ref 
- schema reference for source template.
- selectors
SourceTemplate Selector[] 
- Agent selector conditions
- totalCollector numberLinked 
- config str
- created_at str
- created_by str
- input_json str
- inputJson of source template
- modified_at str
- modified_by str
- schema_ref SourceTemplate Schema Ref Args 
- schema reference for source template.
- selectors
Sequence[SourceTemplate Selector Args] 
- Agent selector conditions
- total_collector_ intlinked 
- 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
- totalCollector NumberLinked 
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 str
- latest_version str
- version str
- type String
- latestVersion String
- version String
SourceTemplateSelector, SourceTemplateSelectorArgs      
- Names List<string>
- names to select custom agents
- 
List<ImmutableArray<Pulumi. Sumo Logic. Inputs. Source Template Selector Tag>> 
- tags filter for agents
- Names []string
- names to select custom agents
- 
[][]SourceTemplate Selector Tag 
- tags filter for agents
- names List<String>
- names to select custom agents
- 
List<List<SourceTemplate Selector Tag>> 
- tags filter for agents
- names string[]
- names to select custom agents
- 
SourceTemplate Selector Tag[][] 
- tags filter for agents
- names Sequence[str]
- names to select custom agents
- 
Sequence[Sequence[SourceTemplate Selector Tag]] 
- tags filter for agents
- names List<String>
- names to select custom agents
- List<List<Property Map>>
- tags filter for agents
SourceTemplateSelectorTag, SourceTemplateSelectorTagArgs        
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the sumologicTerraform Provider.