awx.SettingsLdapTeamMap
Explore with Pulumi AI
TBD
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as awx from "@pulumi/awx";
const _default = awx.getOrganization({
name: "Default",
});
const adminTeam = new awx.Team("adminTeam", {organizationId: _default.then(_default => _default.id)});
const adminTeamMap = new awx.SettingsLdapTeamMap("adminTeamMap", {
users: ["CN=MyTeam,OU=Groups,DC=example,DC=com"],
organization: _default.then(_default => _default.name),
remove: true,
});
import pulumi
import pulumi_awx as awx
default = awx.get_organization(name="Default")
admin_team = awx.Team("adminTeam", organization_id=default.id)
admin_team_map = awx.SettingsLdapTeamMap("adminTeamMap",
users=["CN=MyTeam,OU=Groups,DC=example,DC=com"],
organization=default.name,
remove=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := awx.LookupOrganization(ctx, &awx.LookupOrganizationArgs{
Name: pulumi.StringRef("Default"),
}, nil)
if err != nil {
return err
}
_, err = awx.NewTeam(ctx, "adminTeam", &awx.TeamArgs{
OrganizationId: pulumi.Float64(_default.Id),
})
if err != nil {
return err
}
_, err = awx.NewSettingsLdapTeamMap(ctx, "adminTeamMap", &awx.SettingsLdapTeamMapArgs{
Users: pulumi.StringArray{
pulumi.String("CN=MyTeam,OU=Groups,DC=example,DC=com"),
},
Organization: pulumi.String(_default.Name),
Remove: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Awx = Pulumi.Awx;
return await Deployment.RunAsync(() =>
{
var @default = Awx.GetOrganization.Invoke(new()
{
Name = "Default",
});
var adminTeam = new Awx.Team("adminTeam", new()
{
OrganizationId = @default.Apply(@default => @default.Apply(getOrganizationResult => getOrganizationResult.Id)),
});
var adminTeamMap = new Awx.SettingsLdapTeamMap("adminTeamMap", new()
{
Users = new[]
{
"CN=MyTeam,OU=Groups,DC=example,DC=com",
},
Organization = @default.Apply(@default => @default.Apply(getOrganizationResult => getOrganizationResult.Name)),
Remove = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.awx.AwxFunctions;
import com.pulumi.awx.inputs.GetOrganizationArgs;
import com.pulumi.awx.Team;
import com.pulumi.awx.TeamArgs;
import com.pulumi.awx.SettingsLdapTeamMap;
import com.pulumi.awx.SettingsLdapTeamMapArgs;
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) {
final var default = AwxFunctions.getOrganization(GetOrganizationArgs.builder()
.name("Default")
.build());
var adminTeam = new Team("adminTeam", TeamArgs.builder()
.organizationId(default_.id())
.build());
var adminTeamMap = new SettingsLdapTeamMap("adminTeamMap", SettingsLdapTeamMapArgs.builder()
.users("CN=MyTeam,OU=Groups,DC=example,DC=com")
.organization(default_.name())
.remove(true)
.build());
}
}
resources:
adminTeam:
type: awx:Team
properties:
organizationId: ${default.id}
adminTeamMap:
type: awx:SettingsLdapTeamMap
properties:
users:
- CN=MyTeam,OU=Groups,DC=example,DC=com
organization: ${default.name}
remove: true
variables:
default:
fn::invoke:
function: awx:getOrganization
arguments:
name: Default
Create SettingsLdapTeamMap Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SettingsLdapTeamMap(name: string, args: SettingsLdapTeamMapArgs, opts?: CustomResourceOptions);
@overload
def SettingsLdapTeamMap(resource_name: str,
args: SettingsLdapTeamMapArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SettingsLdapTeamMap(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
name: Optional[str] = None,
remove: Optional[bool] = None,
settings_ldap_team_map_id: Optional[str] = None,
timeouts: Optional[SettingsLdapTeamMapTimeoutsArgs] = None,
users: Optional[Sequence[str]] = None)
func NewSettingsLdapTeamMap(ctx *Context, name string, args SettingsLdapTeamMapArgs, opts ...ResourceOption) (*SettingsLdapTeamMap, error)
public SettingsLdapTeamMap(string name, SettingsLdapTeamMapArgs args, CustomResourceOptions? opts = null)
public SettingsLdapTeamMap(String name, SettingsLdapTeamMapArgs args)
public SettingsLdapTeamMap(String name, SettingsLdapTeamMapArgs args, CustomResourceOptions options)
type: awx:SettingsLdapTeamMap
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 SettingsLdapTeamMapArgs
- 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 SettingsLdapTeamMapArgs
- 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 SettingsLdapTeamMapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SettingsLdapTeamMapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SettingsLdapTeamMapArgs
- 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 settingsLdapTeamMapResource = new Awx.SettingsLdapTeamMap("settingsLdapTeamMapResource", new()
{
Organization = "string",
Name = "string",
Remove = false,
SettingsLdapTeamMapId = "string",
Timeouts = new Awx.Inputs.SettingsLdapTeamMapTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Users = new[]
{
"string",
},
});
example, err := awx.NewSettingsLdapTeamMap(ctx, "settingsLdapTeamMapResource", &awx.SettingsLdapTeamMapArgs{
Organization: pulumi.String("string"),
Name: pulumi.String("string"),
Remove: pulumi.Bool(false),
SettingsLdapTeamMapId: pulumi.String("string"),
Timeouts: &awx.SettingsLdapTeamMapTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var settingsLdapTeamMapResource = new SettingsLdapTeamMap("settingsLdapTeamMapResource", SettingsLdapTeamMapArgs.builder()
.organization("string")
.name("string")
.remove(false)
.settingsLdapTeamMapId("string")
.timeouts(SettingsLdapTeamMapTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.users("string")
.build());
settings_ldap_team_map_resource = awx.SettingsLdapTeamMap("settingsLdapTeamMapResource",
organization="string",
name="string",
remove=False,
settings_ldap_team_map_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
users=["string"])
const settingsLdapTeamMapResource = new awx.SettingsLdapTeamMap("settingsLdapTeamMapResource", {
organization: "string",
name: "string",
remove: false,
settingsLdapTeamMapId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
users: ["string"],
});
type: awx:SettingsLdapTeamMap
properties:
name: string
organization: string
remove: false
settingsLdapTeamMapId: string
timeouts:
create: string
delete: string
update: string
users:
- string
SettingsLdapTeamMap 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 SettingsLdapTeamMap resource accepts the following input properties:
- Organization string
- Name of the team organization
- Name string
- Name of this team
- Remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- Settings
Ldap stringTeam Map Id - Timeouts
Settings
Ldap Team Map Timeouts - Users List<string>
- Optional list of Group DNs to map access to this team
- Organization string
- Name of the team organization
- Name string
- Name of this team
- Remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- Settings
Ldap stringTeam Map Id - Timeouts
Settings
Ldap Team Map Timeouts Args - Users []string
- Optional list of Group DNs to map access to this team
- organization String
- Name of the team organization
- name String
- Name of this team
- remove Boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap StringTeam Map Id - timeouts
Settings
Ldap Team Map Timeouts - users List<String>
- Optional list of Group DNs to map access to this team
- organization string
- Name of the team organization
- name string
- Name of this team
- remove boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap stringTeam Map Id - timeouts
Settings
Ldap Team Map Timeouts - users string[]
- Optional list of Group DNs to map access to this team
- organization str
- Name of the team organization
- name str
- Name of this team
- remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- settings_
ldap_ strteam_ map_ id - timeouts
Settings
Ldap Team Map Timeouts Args - users Sequence[str]
- Optional list of Group DNs to map access to this team
- organization String
- Name of the team organization
- name String
- Name of this team
- remove Boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap StringTeam Map Id - timeouts Property Map
- users List<String>
- Optional list of Group DNs to map access to this team
Outputs
All input properties are implicitly available as output properties. Additionally, the SettingsLdapTeamMap 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 SettingsLdapTeamMap Resource
Get an existing SettingsLdapTeamMap 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?: SettingsLdapTeamMapState, opts?: CustomResourceOptions): SettingsLdapTeamMap
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
remove: Optional[bool] = None,
settings_ldap_team_map_id: Optional[str] = None,
timeouts: Optional[SettingsLdapTeamMapTimeoutsArgs] = None,
users: Optional[Sequence[str]] = None) -> SettingsLdapTeamMap
func GetSettingsLdapTeamMap(ctx *Context, name string, id IDInput, state *SettingsLdapTeamMapState, opts ...ResourceOption) (*SettingsLdapTeamMap, error)
public static SettingsLdapTeamMap Get(string name, Input<string> id, SettingsLdapTeamMapState? state, CustomResourceOptions? opts = null)
public static SettingsLdapTeamMap get(String name, Output<String> id, SettingsLdapTeamMapState state, CustomResourceOptions options)
resources: _: type: awx:SettingsLdapTeamMap 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.
- Name string
- Name of this team
- Organization string
- Name of the team organization
- Remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- Settings
Ldap stringTeam Map Id - Timeouts
Settings
Ldap Team Map Timeouts - Users List<string>
- Optional list of Group DNs to map access to this team
- Name string
- Name of this team
- Organization string
- Name of the team organization
- Remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- Settings
Ldap stringTeam Map Id - Timeouts
Settings
Ldap Team Map Timeouts Args - Users []string
- Optional list of Group DNs to map access to this team
- name String
- Name of this team
- organization String
- Name of the team organization
- remove Boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap StringTeam Map Id - timeouts
Settings
Ldap Team Map Timeouts - users List<String>
- Optional list of Group DNs to map access to this team
- name string
- Name of this team
- organization string
- Name of the team organization
- remove boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap stringTeam Map Id - timeouts
Settings
Ldap Team Map Timeouts - users string[]
- Optional list of Group DNs to map access to this team
- name str
- Name of this team
- organization str
- Name of the team organization
- remove bool
- When True, a user who is not a member of the given groups will be removed from the team
- settings_
ldap_ strteam_ map_ id - timeouts
Settings
Ldap Team Map Timeouts Args - users Sequence[str]
- Optional list of Group DNs to map access to this team
- name String
- Name of this team
- organization String
- Name of the team organization
- remove Boolean
- When True, a user who is not a member of the given groups will be removed from the team
- settings
Ldap StringTeam Map Id - timeouts Property Map
- users List<String>
- Optional list of Group DNs to map access to this team
Supporting Types
SettingsLdapTeamMapTimeouts, SettingsLdapTeamMapTimeoutsArgs
Package Details
- Repository
- awx denouche/terraform-provider-awx
- License
- Notes
- This Pulumi package is based on the
awx
Terraform Provider.