sysdig.GroupMappingConfig
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const resolutionStrategies = new sysdig.GroupMappingConfig("resolutionStrategies", {
differentTeamSameRoleStrategy: "UNAUTHORIZED",
noMappingStrategy: "UNAUTHORIZED",
});
import pulumi
import pulumi_sysdig as sysdig
resolution_strategies = sysdig.GroupMappingConfig("resolutionStrategies",
different_team_same_role_strategy="UNAUTHORIZED",
no_mapping_strategy="UNAUTHORIZED")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sysdig.NewGroupMappingConfig(ctx, "resolutionStrategies", &sysdig.GroupMappingConfigArgs{
DifferentTeamSameRoleStrategy: pulumi.String("UNAUTHORIZED"),
NoMappingStrategy: pulumi.String("UNAUTHORIZED"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() =>
{
var resolutionStrategies = new Sysdig.GroupMappingConfig("resolutionStrategies", new()
{
DifferentTeamSameRoleStrategy = "UNAUTHORIZED",
NoMappingStrategy = "UNAUTHORIZED",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.GroupMappingConfig;
import com.pulumi.sysdig.GroupMappingConfigArgs;
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 resolutionStrategies = new GroupMappingConfig("resolutionStrategies", GroupMappingConfigArgs.builder()
.differentTeamSameRoleStrategy("UNAUTHORIZED")
.noMappingStrategy("UNAUTHORIZED")
.build());
}
}
resources:
resolutionStrategies:
type: sysdig:GroupMappingConfig
properties:
differentTeamSameRoleStrategy: UNAUTHORIZED
noMappingStrategy: UNAUTHORIZED
Create GroupMappingConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupMappingConfig(name: string, args: GroupMappingConfigArgs, opts?: CustomResourceOptions);
@overload
def GroupMappingConfig(resource_name: str,
args: GroupMappingConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupMappingConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
different_team_same_role_strategy: Optional[str] = None,
no_mapping_strategy: Optional[str] = None,
group_mapping_config_id: Optional[str] = None,
timeouts: Optional[GroupMappingConfigTimeoutsArgs] = None)
func NewGroupMappingConfig(ctx *Context, name string, args GroupMappingConfigArgs, opts ...ResourceOption) (*GroupMappingConfig, error)
public GroupMappingConfig(string name, GroupMappingConfigArgs args, CustomResourceOptions? opts = null)
public GroupMappingConfig(String name, GroupMappingConfigArgs args)
public GroupMappingConfig(String name, GroupMappingConfigArgs args, CustomResourceOptions options)
type: sysdig:GroupMappingConfig
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 GroupMappingConfigArgs
- 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 GroupMappingConfigArgs
- 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 GroupMappingConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupMappingConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupMappingConfigArgs
- 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 groupMappingConfigResource = new Sysdig.GroupMappingConfig("groupMappingConfigResource", new()
{
DifferentTeamSameRoleStrategy = "string",
NoMappingStrategy = "string",
GroupMappingConfigId = "string",
Timeouts = new Sysdig.Inputs.GroupMappingConfigTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewGroupMappingConfig(ctx, "groupMappingConfigResource", &sysdig.GroupMappingConfigArgs{
DifferentTeamSameRoleStrategy: pulumi.String("string"),
NoMappingStrategy: pulumi.String("string"),
GroupMappingConfigId: pulumi.String("string"),
Timeouts: &sysdig.GroupMappingConfigTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var groupMappingConfigResource = new GroupMappingConfig("groupMappingConfigResource", GroupMappingConfigArgs.builder()
.differentTeamSameRoleStrategy("string")
.noMappingStrategy("string")
.groupMappingConfigId("string")
.timeouts(GroupMappingConfigTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
group_mapping_config_resource = sysdig.GroupMappingConfig("groupMappingConfigResource",
different_team_same_role_strategy="string",
no_mapping_strategy="string",
group_mapping_config_id="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const groupMappingConfigResource = new sysdig.GroupMappingConfig("groupMappingConfigResource", {
differentTeamSameRoleStrategy: "string",
noMappingStrategy: "string",
groupMappingConfigId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:GroupMappingConfig
properties:
differentTeamSameRoleStrategy: string
groupMappingConfigId: string
noMappingStrategy: string
timeouts:
create: string
delete: string
read: string
update: string
GroupMappingConfig 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 GroupMappingConfig resource accepts the following input properties:
- Different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- No
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- Group
Mapping stringConfig Id - Timeouts
Group
Mapping Config Timeouts
- Different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- No
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- Group
Mapping stringConfig Id - Timeouts
Group
Mapping Config Timeouts Args
- different
Team StringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- no
Mapping StringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- group
Mapping StringConfig Id - timeouts
Group
Mapping Config Timeouts
- different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- no
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- group
Mapping stringConfig Id - timeouts
Group
Mapping Config Timeouts
- different_
team_ strsame_ role_ strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- no_
mapping_ strstrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- group_
mapping_ strconfig_ id - timeouts
Group
Mapping Config Timeouts Args
- different
Team StringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- no
Mapping StringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- group
Mapping StringConfig Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupMappingConfig 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 GroupMappingConfig Resource
Get an existing GroupMappingConfig 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?: GroupMappingConfigState, opts?: CustomResourceOptions): GroupMappingConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
different_team_same_role_strategy: Optional[str] = None,
group_mapping_config_id: Optional[str] = None,
no_mapping_strategy: Optional[str] = None,
timeouts: Optional[GroupMappingConfigTimeoutsArgs] = None) -> GroupMappingConfig
func GetGroupMappingConfig(ctx *Context, name string, id IDInput, state *GroupMappingConfigState, opts ...ResourceOption) (*GroupMappingConfig, error)
public static GroupMappingConfig Get(string name, Input<string> id, GroupMappingConfigState? state, CustomResourceOptions? opts = null)
public static GroupMappingConfig get(String name, Output<String> id, GroupMappingConfigState state, CustomResourceOptions options)
resources: _: type: sysdig:GroupMappingConfig 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.
- Different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- Group
Mapping stringConfig Id - No
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- Timeouts
Group
Mapping Config Timeouts
- Different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- Group
Mapping stringConfig Id - No
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- Timeouts
Group
Mapping Config Timeouts Args
- different
Team StringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- group
Mapping StringConfig Id - no
Mapping StringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- timeouts
Group
Mapping Config Timeouts
- different
Team stringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- group
Mapping stringConfig Id - no
Mapping stringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- timeouts
Group
Mapping Config Timeouts
- different_
team_ strsame_ role_ strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- group_
mapping_ strconfig_ id - no_
mapping_ strstrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- timeouts
Group
Mapping Config Timeouts Args
- different
Team StringSame Role Strategy - Sets how the system behaves when conflicting group mapping information received. Possible values are:
UNAUTHORIZED
,FIRST_MATCH
,WEIGHTED
- group
Mapping StringConfig Id - no
Mapping StringStrategy - Sets how the system behaves when no group mapping information received from the IdP or Group information received, but the user is not a member of any mapped group. Possible values are:
UNAUTHORIZED
,DEFAULT_TEAM_DEFAULT_ROLE
- timeouts Property Map
Supporting Types
GroupMappingConfigTimeouts, GroupMappingConfigTimeoutsArgs
Import
Sysdig group mapping config can be imported, e.g.
$ pulumi import sysdig:index/groupMappingConfig:GroupMappingConfig resolution_strategies conflicts_resolution_strategies
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.