hsdp.IamGroupMembership
Explore with Pulumi AI
Example Usage
The following example adds users to a group obtained via a data source
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const remoteDevelopers = new hsdp.IamGroupMembership("remoteDevelopers", {
iamGroupId: data.hsdp_iam_group.developers.id,
users: [
hsdp_iam_user.developer1.id,
hsdp_iam_user.developer1.id,
],
});
import pulumi
import pulumi_hsdp as hsdp
remote_developers = hsdp.IamGroupMembership("remoteDevelopers",
iam_group_id=data["hsdp_iam_group"]["developers"]["id"],
users=[
hsdp_iam_user["developer1"]["id"],
hsdp_iam_user["developer1"]["id"],
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hsdp.NewIamGroupMembership(ctx, "remoteDevelopers", &hsdp.IamGroupMembershipArgs{
IamGroupId: pulumi.Any(data.Hsdp_iam_group.Developers.Id),
Users: pulumi.StringArray{
hsdp_iam_user.Developer1.Id,
hsdp_iam_user.Developer1.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() =>
{
var remoteDevelopers = new Hsdp.IamGroupMembership("remoteDevelopers", new()
{
IamGroupId = data.Hsdp_iam_group.Developers.Id,
Users = new[]
{
hsdp_iam_user.Developer1.Id,
hsdp_iam_user.Developer1.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.IamGroupMembership;
import com.pulumi.hsdp.IamGroupMembershipArgs;
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 remoteDevelopers = new IamGroupMembership("remoteDevelopers", IamGroupMembershipArgs.builder()
.iamGroupId(data.hsdp_iam_group().developers().id())
.users(
hsdp_iam_user.developer1().id(),
hsdp_iam_user.developer1().id())
.build());
}
}
resources:
remoteDevelopers:
type: hsdp:IamGroupMembership
properties:
iamGroupId: ${data.hsdp_iam_group.developers.id}
users:
- ${hsdp_iam_user.developer1.id}
- ${hsdp_iam_user.developer1.id}
Create IamGroupMembership Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamGroupMembership(name: string, args: IamGroupMembershipArgs, opts?: CustomResourceOptions);
@overload
def IamGroupMembership(resource_name: str,
args: IamGroupMembershipArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IamGroupMembership(resource_name: str,
opts: Optional[ResourceOptions] = None,
iam_group_id: Optional[str] = None,
iam_group_membership_id: Optional[str] = None,
services: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None)
func NewIamGroupMembership(ctx *Context, name string, args IamGroupMembershipArgs, opts ...ResourceOption) (*IamGroupMembership, error)
public IamGroupMembership(string name, IamGroupMembershipArgs args, CustomResourceOptions? opts = null)
public IamGroupMembership(String name, IamGroupMembershipArgs args)
public IamGroupMembership(String name, IamGroupMembershipArgs args, CustomResourceOptions options)
type: hsdp:IamGroupMembership
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 IamGroupMembershipArgs
- 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 IamGroupMembershipArgs
- 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 IamGroupMembershipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamGroupMembershipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamGroupMembershipArgs
- 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 iamGroupMembershipResource = new Hsdp.IamGroupMembership("iamGroupMembershipResource", new()
{
IamGroupId = "string",
IamGroupMembershipId = "string",
Services = new[]
{
"string",
},
Users = new[]
{
"string",
},
});
example, err := hsdp.NewIamGroupMembership(ctx, "iamGroupMembershipResource", &hsdp.IamGroupMembershipArgs{
IamGroupId: pulumi.String("string"),
IamGroupMembershipId: pulumi.String("string"),
Services: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var iamGroupMembershipResource = new IamGroupMembership("iamGroupMembershipResource", IamGroupMembershipArgs.builder()
.iamGroupId("string")
.iamGroupMembershipId("string")
.services("string")
.users("string")
.build());
iam_group_membership_resource = hsdp.IamGroupMembership("iamGroupMembershipResource",
iam_group_id="string",
iam_group_membership_id="string",
services=["string"],
users=["string"])
const iamGroupMembershipResource = new hsdp.IamGroupMembership("iamGroupMembershipResource", {
iamGroupId: "string",
iamGroupMembershipId: "string",
services: ["string"],
users: ["string"],
});
type: hsdp:IamGroupMembership
properties:
iamGroupId: string
iamGroupMembershipId: string
services:
- string
users:
- string
IamGroupMembership 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 IamGroupMembership resource accepts the following input properties:
- Iam
Group stringId - The ID of the IAM Group to add users or services to
- Iam
Group stringMembership Id - The GUID of the group membership resource
- Services List<string>
- The list of service identity IDs to include in this group.
- Users List<string>
- The list of user IDs to include in this group. The provider only manages this list of users.
- Iam
Group stringId - The ID of the IAM Group to add users or services to
- Iam
Group stringMembership Id - The GUID of the group membership resource
- Services []string
- The list of service identity IDs to include in this group.
- Users []string
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group StringId - The ID of the IAM Group to add users or services to
- iam
Group StringMembership Id - The GUID of the group membership resource
- services List<String>
- The list of service identity IDs to include in this group.
- users List<String>
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group stringId - The ID of the IAM Group to add users or services to
- iam
Group stringMembership Id - The GUID of the group membership resource
- services string[]
- The list of service identity IDs to include in this group.
- users string[]
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam_
group_ strid - The ID of the IAM Group to add users or services to
- iam_
group_ strmembership_ id - The GUID of the group membership resource
- services Sequence[str]
- The list of service identity IDs to include in this group.
- users Sequence[str]
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group StringId - The ID of the IAM Group to add users or services to
- iam
Group StringMembership Id - The GUID of the group membership resource
- services List<String>
- The list of service identity IDs to include in this group.
- users List<String>
- The list of user IDs to include in this group. The provider only manages this list of users.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamGroupMembership 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 IamGroupMembership Resource
Get an existing IamGroupMembership 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?: IamGroupMembershipState, opts?: CustomResourceOptions): IamGroupMembership
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
iam_group_id: Optional[str] = None,
iam_group_membership_id: Optional[str] = None,
services: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None) -> IamGroupMembership
func GetIamGroupMembership(ctx *Context, name string, id IDInput, state *IamGroupMembershipState, opts ...ResourceOption) (*IamGroupMembership, error)
public static IamGroupMembership Get(string name, Input<string> id, IamGroupMembershipState? state, CustomResourceOptions? opts = null)
public static IamGroupMembership get(String name, Output<String> id, IamGroupMembershipState state, CustomResourceOptions options)
resources: _: type: hsdp:IamGroupMembership 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.
- Iam
Group stringId - The ID of the IAM Group to add users or services to
- Iam
Group stringMembership Id - The GUID of the group membership resource
- Services List<string>
- The list of service identity IDs to include in this group.
- Users List<string>
- The list of user IDs to include in this group. The provider only manages this list of users.
- Iam
Group stringId - The ID of the IAM Group to add users or services to
- Iam
Group stringMembership Id - The GUID of the group membership resource
- Services []string
- The list of service identity IDs to include in this group.
- Users []string
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group StringId - The ID of the IAM Group to add users or services to
- iam
Group StringMembership Id - The GUID of the group membership resource
- services List<String>
- The list of service identity IDs to include in this group.
- users List<String>
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group stringId - The ID of the IAM Group to add users or services to
- iam
Group stringMembership Id - The GUID of the group membership resource
- services string[]
- The list of service identity IDs to include in this group.
- users string[]
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam_
group_ strid - The ID of the IAM Group to add users or services to
- iam_
group_ strmembership_ id - The GUID of the group membership resource
- services Sequence[str]
- The list of service identity IDs to include in this group.
- users Sequence[str]
- The list of user IDs to include in this group. The provider only manages this list of users.
- iam
Group StringId - The ID of the IAM Group to add users or services to
- iam
Group StringMembership Id - The GUID of the group membership resource
- services List<String>
- The list of service identity IDs to include in this group.
- users List<String>
- The list of user IDs to include in this group. The provider only manages this list of users.
Package Details
- Repository
- hsdp philips-software/terraform-provider-hsdp
- License
- Notes
- This Pulumi package is based on the
hsdp
Terraform Provider.