flexibleengine.IdentityGroupRoleAssignment
Explore with Pulumi AI
Manages an IAM user group role assignment within FlexibleEngine IAM Service.
This is an alternative to flexibleengine.IdentityRoleAssignmentV3
NOTE: 1. You must have admin privileges to use this resource.
2. When the resource is created, the permissions will take effect after 15 to 30 minutes.
Example Usage
Assign role with project
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const projectId = config.requireObject("projectId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
groupId: testIdentityGroupV3.identityGroupV3Id,
roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
projectId: projectId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
project_id = config.require_object("projectId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
group_id=test_identity_group_v3.identity_group_v3_id,
role_id=test_identity_role_v3.id,
project_id=project_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
projectId := cfg.RequireObject("projectId")
testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
Name: "rds_adm",
}, nil)
if err != nil {
return err
}
testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: testIdentityGroupV3.IdentityGroupV3Id,
RoleId: pulumi.String(testIdentityRoleV3.Id),
ProjectId: pulumi.Any(projectId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var projectId = config.RequireObject<dynamic>("projectId");
var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
{
Name = "rds_adm",
});
var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
{
GroupId = testIdentityGroupV3.IdentityGroupV3Id,
RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
ProjectId = projectId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 config = ctx.config();
final var projectId = config.get("projectId");
final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
.name("rds_adm")
.build());
var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
.groupId(testIdentityGroupV3.identityGroupV3Id())
.roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
.projectId(projectId)
.build());
}
}
configuration:
projectId:
type: dynamic
resources:
testIdentityGroupV3:
type: flexibleengine:IdentityGroupV3
testIdentityGroupRoleAssignment:
type: flexibleengine:IdentityGroupRoleAssignment
properties:
groupId: ${testIdentityGroupV3.identityGroupV3Id}
roleId: ${testIdentityRoleV3.id}
projectId: ${projectId}
variables:
testIdentityRoleV3:
fn::invoke:
function: flexibleengine:getIdentityRoleV3
arguments:
name: rds_adm
Assign role with all projects
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const all = new flexibleengine.IdentityGroupRoleAssignment("all", {
groupId: testIdentityGroupV3.identityGroupV3Id,
roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
projectId: "all",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
all = flexibleengine.IdentityGroupRoleAssignment("all",
group_id=test_identity_group_v3.identity_group_v3_id,
role_id=test_identity_role_v3.id,
project_id="all")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
Name: "rds_adm",
}, nil)
if err != nil {
return err
}
testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "all", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: testIdentityGroupV3.IdentityGroupV3Id,
RoleId: pulumi.String(testIdentityRoleV3.Id),
ProjectId: pulumi.String("all"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
{
Name = "rds_adm",
});
var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");
var all = new Flexibleengine.IdentityGroupRoleAssignment("all", new()
{
GroupId = testIdentityGroupV3.IdentityGroupV3Id,
RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
ProjectId = "all",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
.name("rds_adm")
.build());
var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");
var all = new IdentityGroupRoleAssignment("all", IdentityGroupRoleAssignmentArgs.builder()
.groupId(testIdentityGroupV3.identityGroupV3Id())
.roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
.projectId("all")
.build());
}
}
resources:
testIdentityGroupV3:
type: flexibleengine:IdentityGroupV3
all:
type: flexibleengine:IdentityGroupRoleAssignment
properties:
groupId: ${testIdentityGroupV3.identityGroupV3Id}
roleId: ${testIdentityRoleV3.id}
projectId: all
variables:
testIdentityRoleV3:
fn::invoke:
function: flexibleengine:getIdentityRoleV3
arguments:
name: rds_adm
Assign role with domain
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const domainId = config.requireObject("domainId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
name: "obs_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
groupId: testIdentityGroupV3.identityGroupV3Id,
roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
domainId: domainId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
domain_id = config.require_object("domainId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="obs_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
group_id=test_identity_group_v3.identity_group_v3_id,
role_id=test_identity_role_v3.id,
domain_id=domain_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
domainId := cfg.RequireObject("domainId")
testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
Name: "obs_adm",
}, nil)
if err != nil {
return err
}
testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: testIdentityGroupV3.IdentityGroupV3Id,
RoleId: pulumi.String(testIdentityRoleV3.Id),
DomainId: pulumi.Any(domainId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var domainId = config.RequireObject<dynamic>("domainId");
var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
{
Name = "obs_adm",
});
var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
{
GroupId = testIdentityGroupV3.IdentityGroupV3Id,
RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
DomainId = domainId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 config = ctx.config();
final var domainId = config.get("domainId");
final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
.name("obs_adm")
.build());
var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
.groupId(testIdentityGroupV3.identityGroupV3Id())
.roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
.domainId(domainId)
.build());
}
}
configuration:
domainId:
type: dynamic
resources:
testIdentityGroupV3:
type: flexibleengine:IdentityGroupV3
testIdentityGroupRoleAssignment:
type: flexibleengine:IdentityGroupRoleAssignment
properties:
groupId: ${testIdentityGroupV3.identityGroupV3Id}
roleId: ${testIdentityRoleV3.id}
domainId: ${domainId}
variables:
testIdentityRoleV3:
fn::invoke:
function: flexibleengine:getIdentityRoleV3
arguments:
name: obs_adm
Assign role with enterprise project
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const enterpriseProjectId = config.requireObject("enterpriseProjectId");
const testIdentityRoleV3 = flexibleengine.getIdentityRoleV3({
name: "rds_adm",
});
const testIdentityGroupV3 = new flexibleengine.IdentityGroupV3("testIdentityGroupV3", {});
const testIdentityGroupRoleAssignment = new flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", {
groupId: testIdentityGroupV3.identityGroupV3Id,
roleId: testIdentityRoleV3.then(testIdentityRoleV3 => testIdentityRoleV3.id),
enterpriseProjectId: enterpriseProjectId,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
enterprise_project_id = config.require_object("enterpriseProjectId")
test_identity_role_v3 = flexibleengine.get_identity_role_v3(name="rds_adm")
test_identity_group_v3 = flexibleengine.IdentityGroupV3("testIdentityGroupV3")
test_identity_group_role_assignment = flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment",
group_id=test_identity_group_v3.identity_group_v3_id,
role_id=test_identity_role_v3.id,
enterprise_project_id=enterprise_project_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
enterpriseProjectId := cfg.RequireObject("enterpriseProjectId")
testIdentityRoleV3, err := flexibleengine.LookupIdentityRoleV3(ctx, &flexibleengine.LookupIdentityRoleV3Args{
Name: "rds_adm",
}, nil)
if err != nil {
return err
}
testIdentityGroupV3, err := flexibleengine.NewIdentityGroupV3(ctx, "testIdentityGroupV3", nil)
if err != nil {
return err
}
_, err = flexibleengine.NewIdentityGroupRoleAssignment(ctx, "testIdentityGroupRoleAssignment", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: testIdentityGroupV3.IdentityGroupV3Id,
RoleId: pulumi.String(testIdentityRoleV3.Id),
EnterpriseProjectId: pulumi.Any(enterpriseProjectId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var enterpriseProjectId = config.RequireObject<dynamic>("enterpriseProjectId");
var testIdentityRoleV3 = Flexibleengine.GetIdentityRoleV3.Invoke(new()
{
Name = "rds_adm",
});
var testIdentityGroupV3 = new Flexibleengine.IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new Flexibleengine.IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", new()
{
GroupId = testIdentityGroupV3.IdentityGroupV3Id,
RoleId = testIdentityRoleV3.Apply(getIdentityRoleV3Result => getIdentityRoleV3Result.Id),
EnterpriseProjectId = enterpriseProjectId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetIdentityRoleV3Args;
import com.pulumi.flexibleengine.IdentityGroupV3;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignment;
import com.pulumi.flexibleengine.IdentityGroupRoleAssignmentArgs;
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 config = ctx.config();
final var enterpriseProjectId = config.get("enterpriseProjectId");
final var testIdentityRoleV3 = FlexibleengineFunctions.getIdentityRoleV3(GetIdentityRoleV3Args.builder()
.name("rds_adm")
.build());
var testIdentityGroupV3 = new IdentityGroupV3("testIdentityGroupV3");
var testIdentityGroupRoleAssignment = new IdentityGroupRoleAssignment("testIdentityGroupRoleAssignment", IdentityGroupRoleAssignmentArgs.builder()
.groupId(testIdentityGroupV3.identityGroupV3Id())
.roleId(testIdentityRoleV3.applyValue(getIdentityRoleV3Result -> getIdentityRoleV3Result.id()))
.enterpriseProjectId(enterpriseProjectId)
.build());
}
}
configuration:
enterpriseProjectId:
type: dynamic
resources:
testIdentityGroupV3:
type: flexibleengine:IdentityGroupV3
testIdentityGroupRoleAssignment:
type: flexibleengine:IdentityGroupRoleAssignment
properties:
groupId: ${testIdentityGroupV3.identityGroupV3Id}
roleId: ${testIdentityRoleV3.id}
enterpriseProjectId: ${enterpriseProjectId}
variables:
testIdentityRoleV3:
fn::invoke:
function: flexibleengine:getIdentityRoleV3
arguments:
name: rds_adm
Create IdentityGroupRoleAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityGroupRoleAssignment(name: string, args: IdentityGroupRoleAssignmentArgs, opts?: CustomResourceOptions);
@overload
def IdentityGroupRoleAssignment(resource_name: str,
args: IdentityGroupRoleAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityGroupRoleAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
role_id: Optional[str] = None,
domain_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
identity_group_role_assignment_id: Optional[str] = None,
project_id: Optional[str] = None)
func NewIdentityGroupRoleAssignment(ctx *Context, name string, args IdentityGroupRoleAssignmentArgs, opts ...ResourceOption) (*IdentityGroupRoleAssignment, error)
public IdentityGroupRoleAssignment(string name, IdentityGroupRoleAssignmentArgs args, CustomResourceOptions? opts = null)
public IdentityGroupRoleAssignment(String name, IdentityGroupRoleAssignmentArgs args)
public IdentityGroupRoleAssignment(String name, IdentityGroupRoleAssignmentArgs args, CustomResourceOptions options)
type: flexibleengine:IdentityGroupRoleAssignment
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 IdentityGroupRoleAssignmentArgs
- 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 IdentityGroupRoleAssignmentArgs
- 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 IdentityGroupRoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityGroupRoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityGroupRoleAssignmentArgs
- 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 identityGroupRoleAssignmentResource = new Flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", new()
{
GroupId = "string",
RoleId = "string",
DomainId = "string",
EnterpriseProjectId = "string",
IdentityGroupRoleAssignmentId = "string",
ProjectId = "string",
});
example, err := flexibleengine.NewIdentityGroupRoleAssignment(ctx, "identityGroupRoleAssignmentResource", &flexibleengine.IdentityGroupRoleAssignmentArgs{
GroupId: pulumi.String("string"),
RoleId: pulumi.String("string"),
DomainId: pulumi.String("string"),
EnterpriseProjectId: pulumi.String("string"),
IdentityGroupRoleAssignmentId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
})
var identityGroupRoleAssignmentResource = new IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", IdentityGroupRoleAssignmentArgs.builder()
.groupId("string")
.roleId("string")
.domainId("string")
.enterpriseProjectId("string")
.identityGroupRoleAssignmentId("string")
.projectId("string")
.build());
identity_group_role_assignment_resource = flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource",
group_id="string",
role_id="string",
domain_id="string",
enterprise_project_id="string",
identity_group_role_assignment_id="string",
project_id="string")
const identityGroupRoleAssignmentResource = new flexibleengine.IdentityGroupRoleAssignment("identityGroupRoleAssignmentResource", {
groupId: "string",
roleId: "string",
domainId: "string",
enterpriseProjectId: "string",
identityGroupRoleAssignmentId: "string",
projectId: "string",
});
type: flexibleengine:IdentityGroupRoleAssignment
properties:
domainId: string
enterpriseProjectId: string
groupId: string
identityGroupRoleAssignmentId: string
projectId: string
roleId: string
IdentityGroupRoleAssignment 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 IdentityGroupRoleAssignment resource accepts the following input properties:
- Group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- Role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- Domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- Enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- Identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - Project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- Group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- Role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- Domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- Enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- Identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - Project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- group
Id String - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- role
Id String - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id String - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project StringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- identity
Group StringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id String Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- group_
id str - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- role_
id str - Specifies the role to assign. Changing this parameter will create a new resource.
- domain_
id str - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise_
project_ strid Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- identity_
group_ strrole_ assignment_ id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project_
id str Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- group
Id String - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- role
Id String - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id String - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project StringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- identity
Group StringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id String Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityGroupRoleAssignment 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 IdentityGroupRoleAssignment Resource
Get an existing IdentityGroupRoleAssignment 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?: IdentityGroupRoleAssignmentState, opts?: CustomResourceOptions): IdentityGroupRoleAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_id: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
group_id: Optional[str] = None,
identity_group_role_assignment_id: Optional[str] = None,
project_id: Optional[str] = None,
role_id: Optional[str] = None) -> IdentityGroupRoleAssignment
func GetIdentityGroupRoleAssignment(ctx *Context, name string, id IDInput, state *IdentityGroupRoleAssignmentState, opts ...ResourceOption) (*IdentityGroupRoleAssignment, error)
public static IdentityGroupRoleAssignment Get(string name, Input<string> id, IdentityGroupRoleAssignmentState? state, CustomResourceOptions? opts = null)
public static IdentityGroupRoleAssignment get(String name, Output<String> id, IdentityGroupRoleAssignmentState state, CustomResourceOptions options)
resources: _: type: flexibleengine:IdentityGroupRoleAssignment 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.
- Domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- Enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- Group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- Identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - Project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- Role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- Domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- Enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- Group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- Identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - Project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- Role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id String - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project StringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- group
Id String - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- identity
Group StringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id String Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- role
Id String - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id string - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project stringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- group
Id string - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- identity
Group stringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id string Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- role
Id string - Specifies the role to assign. Changing this parameter will create a new resource.
- domain_
id str - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise_
project_ strid Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- group_
id str - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- identity_
group_ strrole_ assignment_ id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project_
id str Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- role_
id str - Specifies the role to assign. Changing this parameter will create a new resource.
- domain
Id String - Specifies the domain to assign the role in. Changing this parameter will create a new resource.
- enterprise
Project StringId Specifies the enterprise project to assign the role in. Changing this parameter will create a new resource.
Exactly one of
domain_id
,project_id
orenterprise_project_id
must be specified.- group
Id String - Specifies the group to assign the role to. Changing this parameter will create a new resource.
- identity
Group StringRole Assignment Id - The resource ID. When assign in domain, the format is
<group_id>/<role_id>/<domain_id>
; when assign in project, the format is<group_id>/<role_id>/<project_id>
; when assign in enterprise project, the format is<group_id>/<role_id>/<enterprise_project_id>
; - project
Id String Specifies the project to assign the role in. If
project_id
is set to all, it means that the specified user group will be able to use all projects, including existing and future projects.Changing this parameter will create a new resource.
- role
Id String - Specifies the role to assign. Changing this parameter will create a new resource.
Import
The role assignments can be imported using the group_id
, role_id
and domain_id
, project_id
,
enterprise_project_id
, e.g.
bash
$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<domain_id>
or
bash
$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<project_id>
or
bash
$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/all
or
bash
$ pulumi import flexibleengine:index/identityGroupRoleAssignment:IdentityGroupRoleAssignment test <group_id>/<role_id>/<enterprise_project_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.