sumologic.Policies
Explore with Pulumi AI
Sets the Sumologic Policies. Since each policy is global for the entire organization, please ensure that only a single instance of this resource is defined. The behavior for defining more than one policies resource is undefined.
The following policies are supported:
- Audit Policy
- Data Access Level Policy
- Maximum Web Session Timeout Policy
- Search Audit Policy
- Share a Dashboard Outside Organization Policy
- User Concurrent Sessions Limit Policy
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const examplePolicies = new sumologic.Policies("example_policies", {
audit: false,
dataAccessLevel: false,
maxUserSessionTimeout: "7d",
searchAudit: false,
shareDashboardsOutsideOrganization: false,
userConcurrentSessionsLimit: {
enabled: false,
maxConcurrentSessions: 100,
},
});
import pulumi
import pulumi_sumologic as sumologic
example_policies = sumologic.Policies("example_policies",
audit=False,
data_access_level=False,
max_user_session_timeout="7d",
search_audit=False,
share_dashboards_outside_organization=False,
user_concurrent_sessions_limit={
"enabled": False,
"max_concurrent_sessions": 100,
})
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.NewPolicies(ctx, "example_policies", &sumologic.PoliciesArgs{
Audit: pulumi.Bool(false),
DataAccessLevel: pulumi.Bool(false),
MaxUserSessionTimeout: pulumi.String("7d"),
SearchAudit: pulumi.Bool(false),
ShareDashboardsOutsideOrganization: pulumi.Bool(false),
UserConcurrentSessionsLimit: &sumologic.PoliciesUserConcurrentSessionsLimitArgs{
Enabled: pulumi.Bool(false),
MaxConcurrentSessions: pulumi.Int(100),
},
})
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 examplePolicies = new SumoLogic.Policies("example_policies", new()
{
Audit = false,
DataAccessLevel = false,
MaxUserSessionTimeout = "7d",
SearchAudit = false,
ShareDashboardsOutsideOrganization = false,
UserConcurrentSessionsLimit = new SumoLogic.Inputs.PoliciesUserConcurrentSessionsLimitArgs
{
Enabled = false,
MaxConcurrentSessions = 100,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Policies;
import com.pulumi.sumologic.PoliciesArgs;
import com.pulumi.sumologic.inputs.PoliciesUserConcurrentSessionsLimitArgs;
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 examplePolicies = new Policies("examplePolicies", PoliciesArgs.builder()
.audit(false)
.dataAccessLevel(false)
.maxUserSessionTimeout("7d")
.searchAudit(false)
.shareDashboardsOutsideOrganization(false)
.userConcurrentSessionsLimit(PoliciesUserConcurrentSessionsLimitArgs.builder()
.enabled(false)
.maxConcurrentSessions(100)
.build())
.build());
}
}
resources:
examplePolicies:
type: sumologic:Policies
name: example_policies
properties:
audit: false
dataAccessLevel: false
maxUserSessionTimeout: 7d
searchAudit: false
shareDashboardsOutsideOrganization: false
userConcurrentSessionsLimit:
enabled: false
maxConcurrentSessions: 100
Create Policies Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Policies(name: string, args: PoliciesArgs, opts?: CustomResourceOptions);
@overload
def Policies(resource_name: str,
args: PoliciesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Policies(resource_name: str,
opts: Optional[ResourceOptions] = None,
audit: Optional[bool] = None,
data_access_level: Optional[bool] = None,
max_user_session_timeout: Optional[str] = None,
search_audit: Optional[bool] = None,
share_dashboards_outside_organization: Optional[bool] = None,
user_concurrent_sessions_limit: Optional[PoliciesUserConcurrentSessionsLimitArgs] = None)
func NewPolicies(ctx *Context, name string, args PoliciesArgs, opts ...ResourceOption) (*Policies, error)
public Policies(string name, PoliciesArgs args, CustomResourceOptions? opts = null)
public Policies(String name, PoliciesArgs args)
public Policies(String name, PoliciesArgs args, CustomResourceOptions options)
type: sumologic:Policies
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 PoliciesArgs
- 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 PoliciesArgs
- 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 PoliciesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PoliciesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PoliciesArgs
- 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 policiesResource = new SumoLogic.Policies("policiesResource", new()
{
Audit = false,
DataAccessLevel = false,
MaxUserSessionTimeout = "string",
SearchAudit = false,
ShareDashboardsOutsideOrganization = false,
UserConcurrentSessionsLimit = new SumoLogic.Inputs.PoliciesUserConcurrentSessionsLimitArgs
{
Enabled = false,
MaxConcurrentSessions = 0,
},
});
example, err := sumologic.NewPolicies(ctx, "policiesResource", &sumologic.PoliciesArgs{
Audit: pulumi.Bool(false),
DataAccessLevel: pulumi.Bool(false),
MaxUserSessionTimeout: pulumi.String("string"),
SearchAudit: pulumi.Bool(false),
ShareDashboardsOutsideOrganization: pulumi.Bool(false),
UserConcurrentSessionsLimit: &sumologic.PoliciesUserConcurrentSessionsLimitArgs{
Enabled: pulumi.Bool(false),
MaxConcurrentSessions: pulumi.Int(0),
},
})
var policiesResource = new Policies("policiesResource", PoliciesArgs.builder()
.audit(false)
.dataAccessLevel(false)
.maxUserSessionTimeout("string")
.searchAudit(false)
.shareDashboardsOutsideOrganization(false)
.userConcurrentSessionsLimit(PoliciesUserConcurrentSessionsLimitArgs.builder()
.enabled(false)
.maxConcurrentSessions(0)
.build())
.build());
policies_resource = sumologic.Policies("policiesResource",
audit=False,
data_access_level=False,
max_user_session_timeout="string",
search_audit=False,
share_dashboards_outside_organization=False,
user_concurrent_sessions_limit={
"enabled": False,
"max_concurrent_sessions": 0,
})
const policiesResource = new sumologic.Policies("policiesResource", {
audit: false,
dataAccessLevel: false,
maxUserSessionTimeout: "string",
searchAudit: false,
shareDashboardsOutsideOrganization: false,
userConcurrentSessionsLimit: {
enabled: false,
maxConcurrentSessions: 0,
},
});
type: sumologic:Policies
properties:
audit: false
dataAccessLevel: false
maxUserSessionTimeout: string
searchAudit: false
shareDashboardsOutsideOrganization: false
userConcurrentSessionsLimit:
enabled: false
maxConcurrentSessions: 0
Policies 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 Policies resource accepts the following input properties:
- Audit bool
- Whether the Audit Policy is enabled.
- Data
Access boolLevel - Whether the Data Access Level Policy is enabled.
- Max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- Search
Audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- User
Concurrent Pulumi.Sessions Limit Sumo Logic. Inputs. Policies User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- Audit bool
- Whether the Audit Policy is enabled.
- Data
Access boolLevel - Whether the Data Access Level Policy is enabled.
- Max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- Search
Audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- User
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit Args - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit Boolean
- Whether the Audit Policy is enabled.
- data
Access BooleanLevel - Whether the Data Access Level Policy is enabled.
- max
User StringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit Boolean - Whether the Search Audit Policy is enabled.
- Boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit boolean
- Whether the Audit Policy is enabled.
- data
Access booleanLevel - Whether the Data Access Level Policy is enabled.
- max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit boolean - Whether the Search Audit Policy is enabled.
- boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit bool
- Whether the Audit Policy is enabled.
- data_
access_ boollevel - Whether the Data Access Level Policy is enabled.
- max_
user_ strsession_ timeout - The maximum web session timeout users are able to configure within their user preferences.
- search_
audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user_
concurrent_ Policiessessions_ limit User Concurrent Sessions Limit Args - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit Boolean
- Whether the Audit Policy is enabled.
- data
Access BooleanLevel - Whether the Data Access Level Policy is enabled.
- max
User StringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit Boolean - Whether the Search Audit Policy is enabled.
- Boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent Property MapSessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
Outputs
All input properties are implicitly available as output properties. Additionally, the Policies 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 Policies Resource
Get an existing Policies 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?: PoliciesState, opts?: CustomResourceOptions): Policies
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit: Optional[bool] = None,
data_access_level: Optional[bool] = None,
max_user_session_timeout: Optional[str] = None,
search_audit: Optional[bool] = None,
share_dashboards_outside_organization: Optional[bool] = None,
user_concurrent_sessions_limit: Optional[PoliciesUserConcurrentSessionsLimitArgs] = None) -> Policies
func GetPolicies(ctx *Context, name string, id IDInput, state *PoliciesState, opts ...ResourceOption) (*Policies, error)
public static Policies Get(string name, Input<string> id, PoliciesState? state, CustomResourceOptions? opts = null)
public static Policies get(String name, Output<String> id, PoliciesState 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.
- Audit bool
- Whether the Audit Policy is enabled.
- Data
Access boolLevel - Whether the Data Access Level Policy is enabled.
- Max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- Search
Audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- User
Concurrent Pulumi.Sessions Limit Sumo Logic. Inputs. Policies User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- Audit bool
- Whether the Audit Policy is enabled.
- Data
Access boolLevel - Whether the Data Access Level Policy is enabled.
- Max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- Search
Audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- User
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit Args - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit Boolean
- Whether the Audit Policy is enabled.
- data
Access BooleanLevel - Whether the Data Access Level Policy is enabled.
- max
User StringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit Boolean - Whether the Search Audit Policy is enabled.
- Boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit boolean
- Whether the Audit Policy is enabled.
- data
Access booleanLevel - Whether the Data Access Level Policy is enabled.
- max
User stringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit boolean - Whether the Search Audit Policy is enabled.
- boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent PoliciesSessions Limit User Concurrent Sessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit bool
- Whether the Audit Policy is enabled.
- data_
access_ boollevel - Whether the Data Access Level Policy is enabled.
- max_
user_ strsession_ timeout - The maximum web session timeout users are able to configure within their user preferences.
- search_
audit bool - Whether the Search Audit Policy is enabled.
- bool
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user_
concurrent_ Policiessessions_ limit User Concurrent Sessions Limit Args - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
- audit Boolean
- Whether the Audit Policy is enabled.
- data
Access BooleanLevel - Whether the Data Access Level Policy is enabled.
- max
User StringSession Timeout - The maximum web session timeout users are able to configure within their user preferences.
- search
Audit Boolean - Whether the Search Audit Policy is enabled.
- Boolean
- Whether the Share a Dashboard Outside Organization Policy is enabled.
- user
Concurrent Property MapSessions Limit - The User Concurrent Sessions Limit Policy. See user_concurrent_sessions_limit schema for details.
Supporting Types
PoliciesUserConcurrentSessionsLimit, PoliciesUserConcurrentSessionsLimitArgs
- Enabled bool
- Whether the User Concurrent Sessions Limit Policy is enabled.
- Max
Concurrent intSessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
- Enabled bool
- Whether the User Concurrent Sessions Limit Policy is enabled.
- Max
Concurrent intSessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
- enabled Boolean
- Whether the User Concurrent Sessions Limit Policy is enabled.
- max
Concurrent IntegerSessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
- enabled boolean
- Whether the User Concurrent Sessions Limit Policy is enabled.
- max
Concurrent numberSessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
- enabled bool
- Whether the User Concurrent Sessions Limit Policy is enabled.
- max_
concurrent_ intsessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
- enabled Boolean
- Whether the User Concurrent Sessions Limit Policy is enabled.
- max
Concurrent NumberSessions - Maximum number of concurrent sessions a user may have. Defaults to
100
.
Import
Policies can be imported using the id org-policies
.
hcl
$ pulumi import sumologic:index/policies:Policies example_policies org-policies
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.