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:
- Input
Json string - inputJson of source template
- Schema
Ref 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
- Input
Json string - inputJson of source template
- Schema
Ref SourceTemplate Schema Ref Args - schema reference for source template.
- Selectors
[]Source
Template Selector Args - Agent selector conditions
- input
Json String - inputJson of source template
- schema
Ref SourceTemplate Schema Ref - schema reference for source template.
- selectors
List<Source
Template Selector> - Agent selector conditions
- input
Json string - inputJson of source template
- schema
Ref SourceTemplate Schema Ref - schema reference for source template.
- selectors
Source
Template Selector[] - Agent selector conditions
- input_
json str - inputJson of source template
- schema_
ref SourceTemplate Schema Ref Args - schema reference for source template.
- selectors
Sequence[Source
Template Selector Args] - Agent selector conditions
- input
Json String - inputJson of source template
- schema
Ref 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
- Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Modified
By string - Total
Collector intLinked
- Config string
- Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Modified
By string - Total
Collector intLinked
- config String
- created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - modified
By String - total
Collector IntegerLinked
- config string
- created
At string - created
By string - id string
- The provider-assigned unique ID for this managed resource.
- modified
At string - modified
By string - total
Collector 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
- created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - modified
By String - total
Collector 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) -> 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.
- Config string
- Created
At string - Created
By string - Input
Json string - inputJson of source template
- Modified
At string - Modified
By string - Schema
Ref 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
- Total
Collector intLinked
- Config string
- Created
At string - Created
By string - Input
Json string - inputJson of source template
- Modified
At string - Modified
By string - Schema
Ref SourceTemplate Schema Ref Args - schema reference for source template.
- Selectors
[]Source
Template Selector Args - Agent selector conditions
- Total
Collector intLinked
- config String
- created
At String - created
By String - input
Json String - inputJson of source template
- modified
At String - modified
By String - schema
Ref SourceTemplate Schema Ref - schema reference for source template.
- selectors
List<Source
Template Selector> - Agent selector conditions
- total
Collector IntegerLinked
- config string
- created
At string - created
By string - input
Json string - inputJson of source template
- modified
At string - modified
By string - schema
Ref SourceTemplate Schema Ref - schema reference for source template.
- selectors
Source
Template Selector[] - Agent selector conditions
- total
Collector 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[Source
Template Selector Args] - Agent selector conditions
- total_
collector_ intlinked
- config String
- created
At String - created
By String - input
Json String - inputJson of source template
- modified
At String - modified
By String - schema
Ref Property Map - schema reference for source template.
- selectors List<Property Map>
- Agent selector conditions
- total
Collector NumberLinked
Supporting Types
SourceTemplateSchemaRef, SourceTemplateSchemaRefArgs
- Type string
- Latest
Version string - Version string
- Type string
- Latest
Version string - Version string
- type String
- latest
Version String - version String
- type string
- latest
Version string - version string
- type str
- latest_
version str - version str
- type String
- latest
Version String - version String
SourceTemplateSelector, SourceTemplateSelectorArgs
- Names List<string>
- names to select custom agents
- List<Immutable
Array<Pulumi. Sumo Logic. Inputs. Source Template Selector Tag>> - tags filter for agents
- Names []string
- names to select custom agents
- [][]Source
Template Selector Tag - tags filter for agents
- names List<String>
- names to select custom agents
- List<List<Source
Template Selector Tag>> - tags filter for agents
- names string[]
- names to select custom agents
- Source
Template Selector Tag[][] - tags filter for agents
- names Sequence[str]
- names to select custom agents
- Sequence[Sequence[Source
Template 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
sumologic
Terraform Provider.