sumologic.RoleV2
Explore with Pulumi AI
Provider to manage Sumologic Role v2
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const exampleRoleV2 = new sumologic.RoleV2("exampleRoleV2", {
auditDataFilter: "info",
capabilities: [
"manageContent",
"manageDataVolumeFeed",
"manageFieldExtractionRules",
"manageS3DataForwarding",
],
description: "Manage data of the org.",
logAnalyticsFilter: "!_sourceCategory=collector",
securityDataFilter: "error",
selectedViews: [
{
viewName: "view1",
},
{
viewName: "view2",
},
],
selectionType: "Allow",
});
import pulumi
import pulumi_sumologic as sumologic
example_role_v2 = sumologic.RoleV2("exampleRoleV2",
audit_data_filter="info",
capabilities=[
"manageContent",
"manageDataVolumeFeed",
"manageFieldExtractionRules",
"manageS3DataForwarding",
],
description="Manage data of the org.",
log_analytics_filter="!_sourceCategory=collector",
security_data_filter="error",
selected_views=[
{
"view_name": "view1",
},
{
"view_name": "view2",
},
],
selection_type="Allow")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sumologic/v3/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sumologic.NewRoleV2(ctx, "exampleRoleV2", &sumologic.RoleV2Args{
AuditDataFilter: pulumi.String("info"),
Capabilities: pulumi.StringArray{
pulumi.String("manageContent"),
pulumi.String("manageDataVolumeFeed"),
pulumi.String("manageFieldExtractionRules"),
pulumi.String("manageS3DataForwarding"),
},
Description: pulumi.String("Manage data of the org."),
LogAnalyticsFilter: pulumi.String("!_sourceCategory=collector"),
SecurityDataFilter: pulumi.String("error"),
SelectedViews: sumologic.RoleV2SelectedViewArray{
&sumologic.RoleV2SelectedViewArgs{
ViewName: pulumi.String("view1"),
},
&sumologic.RoleV2SelectedViewArgs{
ViewName: pulumi.String("view2"),
},
},
SelectionType: pulumi.String("Allow"),
})
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 exampleRoleV2 = new Sumologic.RoleV2("exampleRoleV2", new()
{
AuditDataFilter = "info",
Capabilities = new[]
{
"manageContent",
"manageDataVolumeFeed",
"manageFieldExtractionRules",
"manageS3DataForwarding",
},
Description = "Manage data of the org.",
LogAnalyticsFilter = "!_sourceCategory=collector",
SecurityDataFilter = "error",
SelectedViews = new[]
{
new Sumologic.Inputs.RoleV2SelectedViewArgs
{
ViewName = "view1",
},
new Sumologic.Inputs.RoleV2SelectedViewArgs
{
ViewName = "view2",
},
},
SelectionType = "Allow",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.RoleV2;
import com.pulumi.sumologic.RoleV2Args;
import com.pulumi.sumologic.inputs.RoleV2SelectedViewArgs;
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 exampleRoleV2 = new RoleV2("exampleRoleV2", RoleV2Args.builder()
.auditDataFilter("info")
.capabilities(
"manageContent",
"manageDataVolumeFeed",
"manageFieldExtractionRules",
"manageS3DataForwarding")
.description("Manage data of the org.")
.logAnalyticsFilter("!_sourceCategory=collector")
.securityDataFilter("error")
.selectedViews(
RoleV2SelectedViewArgs.builder()
.viewName("view1")
.build(),
RoleV2SelectedViewArgs.builder()
.viewName("view2")
.build())
.selectionType("Allow")
.build());
}
}
resources:
exampleRoleV2:
type: sumologic:RoleV2
properties:
auditDataFilter: info
capabilities:
- manageContent
- manageDataVolumeFeed
- manageFieldExtractionRules
- manageS3DataForwarding
description: Manage data of the org.
logAnalyticsFilter: '!_sourceCategory=collector'
securityDataFilter: error
selectedViews:
- viewName: view1
- viewName: view2
selectionType: Allow
Create RoleV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoleV2(name: string, args?: RoleV2Args, opts?: CustomResourceOptions);
@overload
def RoleV2(resource_name: str,
args: Optional[RoleV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RoleV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
audit_data_filter: Optional[str] = None,
capabilities: Optional[Sequence[str]] = None,
description: Optional[str] = None,
log_analytics_filter: Optional[str] = None,
name: Optional[str] = None,
role_v2_id: Optional[str] = None,
security_data_filter: Optional[str] = None,
selected_views: Optional[Sequence[RoleV2SelectedViewArgs]] = None,
selection_type: Optional[str] = None)
func NewRoleV2(ctx *Context, name string, args *RoleV2Args, opts ...ResourceOption) (*RoleV2, error)
public RoleV2(string name, RoleV2Args? args = null, CustomResourceOptions? opts = null)
public RoleV2(String name, RoleV2Args args)
public RoleV2(String name, RoleV2Args args, CustomResourceOptions options)
type: sumologic:RoleV2
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 RoleV2Args
- 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 RoleV2Args
- 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 RoleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoleV2Args
- 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 roleV2Resource = new Sumologic.RoleV2("roleV2Resource", new()
{
AuditDataFilter = "string",
Capabilities = new[]
{
"string",
},
Description = "string",
LogAnalyticsFilter = "string",
Name = "string",
RoleV2Id = "string",
SecurityDataFilter = "string",
SelectedViews = new[]
{
new Sumologic.Inputs.RoleV2SelectedViewArgs
{
ViewName = "string",
ViewFilter = "string",
},
},
SelectionType = "string",
});
example, err := sumologic.NewRoleV2(ctx, "roleV2Resource", &sumologic.RoleV2Args{
AuditDataFilter: pulumi.String("string"),
Capabilities: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
LogAnalyticsFilter: pulumi.String("string"),
Name: pulumi.String("string"),
RoleV2Id: pulumi.String("string"),
SecurityDataFilter: pulumi.String("string"),
SelectedViews: sumologic.RoleV2SelectedViewArray{
&sumologic.RoleV2SelectedViewArgs{
ViewName: pulumi.String("string"),
ViewFilter: pulumi.String("string"),
},
},
SelectionType: pulumi.String("string"),
})
var roleV2Resource = new RoleV2("roleV2Resource", RoleV2Args.builder()
.auditDataFilter("string")
.capabilities("string")
.description("string")
.logAnalyticsFilter("string")
.name("string")
.roleV2Id("string")
.securityDataFilter("string")
.selectedViews(RoleV2SelectedViewArgs.builder()
.viewName("string")
.viewFilter("string")
.build())
.selectionType("string")
.build());
role_v2_resource = sumologic.RoleV2("roleV2Resource",
audit_data_filter="string",
capabilities=["string"],
description="string",
log_analytics_filter="string",
name="string",
role_v2_id="string",
security_data_filter="string",
selected_views=[{
"view_name": "string",
"view_filter": "string",
}],
selection_type="string")
const roleV2Resource = new sumologic.RoleV2("roleV2Resource", {
auditDataFilter: "string",
capabilities: ["string"],
description: "string",
logAnalyticsFilter: "string",
name: "string",
roleV2Id: "string",
securityDataFilter: "string",
selectedViews: [{
viewName: "string",
viewFilter: "string",
}],
selectionType: "string",
});
type: sumologic:RoleV2
properties:
auditDataFilter: string
capabilities:
- string
description: string
logAnalyticsFilter: string
name: string
roleV2Id: string
securityDataFilter: string
selectedViews:
- viewFilter: string
viewName: string
selectionType: string
RoleV2 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 RoleV2 resource accepts the following input properties:
- Audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- Capabilities List<string>
- List of capabilities associated with this role.
- Description string
- Description of the role.
- Log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- Name string
- Name of the role.
- Role
V2Id string - Security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- Selected
Views List<RoleV2Selected View> - List of views with specific view level filters in accordance to the selectionType chosen.
- Selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- Audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- Capabilities []string
- List of capabilities associated with this role.
- Description string
- Description of the role.
- Log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- Name string
- Name of the role.
- Role
V2Id string - Security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- Selected
Views []RoleV2Selected View Args - List of views with specific view level filters in accordance to the selectionType chosen.
- Selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data StringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities List<String>
- List of capabilities associated with this role.
- description String
- Description of the role.
- log
Analytics StringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name String
- Name of the role.
- role
V2Id String - security
Data StringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views List<RoleV2Selected View> - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type String - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities string[]
- List of capabilities associated with this role.
- description string
- Description of the role.
- log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name string
- Name of the role.
- role
V2Id string - security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views RoleV2Selected View[] - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit_
data_ strfilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities Sequence[str]
- List of capabilities associated with this role.
- description str
- Description of the role.
- log_
analytics_ strfilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name str
- Name of the role.
- role_
v2_ strid - security_
data_ strfilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected_
views Sequence[RoleV2Selected View Args] - List of views with specific view level filters in accordance to the selectionType chosen.
- selection_
type str - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data StringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities List<String>
- List of capabilities associated with this role.
- description String
- Description of the role.
- log
Analytics StringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name String
- Name of the role.
- role
V2Id String - security
Data StringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views List<Property Map> - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type String - Describes the Permission Construct for the list of views in "selectedViews" parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the RoleV2 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 RoleV2 Resource
Get an existing RoleV2 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?: RoleV2State, opts?: CustomResourceOptions): RoleV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_data_filter: Optional[str] = None,
capabilities: Optional[Sequence[str]] = None,
description: Optional[str] = None,
log_analytics_filter: Optional[str] = None,
name: Optional[str] = None,
role_v2_id: Optional[str] = None,
security_data_filter: Optional[str] = None,
selected_views: Optional[Sequence[RoleV2SelectedViewArgs]] = None,
selection_type: Optional[str] = None) -> RoleV2
func GetRoleV2(ctx *Context, name string, id IDInput, state *RoleV2State, opts ...ResourceOption) (*RoleV2, error)
public static RoleV2 Get(string name, Input<string> id, RoleV2State? state, CustomResourceOptions? opts = null)
public static RoleV2 get(String name, Output<String> id, RoleV2State state, CustomResourceOptions options)
resources: _: type: sumologic:RoleV2 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.
- Audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- Capabilities List<string>
- List of capabilities associated with this role.
- Description string
- Description of the role.
- Log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- Name string
- Name of the role.
- Role
V2Id string - Security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- Selected
Views List<RoleV2Selected View> - List of views with specific view level filters in accordance to the selectionType chosen.
- Selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- Audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- Capabilities []string
- List of capabilities associated with this role.
- Description string
- Description of the role.
- Log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- Name string
- Name of the role.
- Role
V2Id string - Security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- Selected
Views []RoleV2Selected View Args - List of views with specific view level filters in accordance to the selectionType chosen.
- Selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data StringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities List<String>
- List of capabilities associated with this role.
- description String
- Description of the role.
- log
Analytics StringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name String
- Name of the role.
- role
V2Id String - security
Data StringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views List<RoleV2Selected View> - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type String - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data stringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities string[]
- List of capabilities associated with this role.
- description string
- Description of the role.
- log
Analytics stringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name string
- Name of the role.
- role
V2Id string - security
Data stringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views RoleV2Selected View[] - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type string - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit_
data_ strfilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities Sequence[str]
- List of capabilities associated with this role.
- description str
- Description of the role.
- log_
analytics_ strfilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name str
- Name of the role.
- role_
v2_ strid - security_
data_ strfilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected_
views Sequence[RoleV2Selected View Args] - List of views with specific view level filters in accordance to the selectionType chosen.
- selection_
type str - Describes the Permission Construct for the list of views in "selectedViews" parameter.
- audit
Data StringFilter - A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
- capabilities List<String>
- List of capabilities associated with this role.
- description String
- Description of the role.
- log
Analytics StringFilter - A search filter which would be applied on partitions which belong to Log Analytics product area.
- name String
- Name of the role.
- role
V2Id String - security
Data StringFilter - A search filter which would be applied on partitions which belong to Security Data product area.
- selected
Views List<Property Map> - List of views with specific view level filters in accordance to the selectionType chosen.
- selection
Type String - Describes the Permission Construct for the list of views in "selectedViews" parameter.
Supporting Types
RoleV2SelectedView, RoleV2SelectedViewArgs
- View
Name string - View
Filter string
- View
Name string - View
Filter string
- view
Name String - view
Filter String
- view
Name string - view
Filter string
- view_
name str - view_
filter str
- view
Name String - view
Filter String
Package Details
- Repository
- Sumo Logic sumologic/terraform-provider-sumologic
- License
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.