scaleway.IamGroup
Explore with Pulumi AI
Creates and manages Scaleway IAM Groups. For more information, see the documentation.
Examples
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const basic = new scaleway.IamGroup("basic", {
applicationIds: [],
description: "basic description",
userIds: [],
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
basic = scaleway.IamGroup("basic",
application_ids=[],
description="basic description",
user_ids=[])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var basic = new Scaleway.IamGroup("basic", new()
{
ApplicationIds = new[] {},
Description = "basic description",
UserIds = new[] {},
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewIamGroup(ctx, "basic", &scaleway.IamGroupArgs{
ApplicationIds: pulumi.StringArray{},
Description: pulumi.String("basic description"),
UserIds: pulumi.StringArray{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.IamGroup;
import com.pulumi.scaleway.IamGroupArgs;
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 basic = new IamGroup("basic", IamGroupArgs.builder()
.applicationIds()
.description("basic description")
.userIds()
.build());
}
}
resources:
basic:
type: scaleway:IamGroup
properties:
applicationIds: []
description: basic description
userIds: []
With applications
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const app = new scaleway.IamApplication("app", {});
const withApp = new scaleway.IamGroup("withApp", {
applicationIds: [app.id],
userIds: [],
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
app = scaleway.IamApplication("app")
with_app = scaleway.IamGroup("withApp",
application_ids=[app.id],
user_ids=[])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var app = new Scaleway.IamApplication("app");
var withApp = new Scaleway.IamGroup("withApp", new()
{
ApplicationIds = new[]
{
app.Id,
},
UserIds = new[] {},
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
app, err := scaleway.NewIamApplication(ctx, "app", nil)
if err != nil {
return err
}
_, err = scaleway.NewIamGroup(ctx, "withApp", &scaleway.IamGroupArgs{
ApplicationIds: pulumi.StringArray{
app.ID(),
},
UserIds: pulumi.StringArray{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.IamApplication;
import com.pulumi.scaleway.IamGroup;
import com.pulumi.scaleway.IamGroupArgs;
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 app = new IamApplication("app");
var withApp = new IamGroup("withApp", IamGroupArgs.builder()
.applicationIds(app.id())
.userIds()
.build());
}
}
resources:
app:
type: scaleway:IamApplication
withApp:
type: scaleway:IamGroup
properties:
applicationIds:
- ${app.id}
userIds: []
Create IamGroup Resource
new IamGroup(name: string, args?: IamGroupArgs, opts?: CustomResourceOptions);
@overload
def IamGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None)
@overload
def IamGroup(resource_name: str,
args: Optional[IamGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewIamGroup(ctx *Context, name string, args *IamGroupArgs, opts ...ResourceOption) (*IamGroup, error)
public IamGroup(string name, IamGroupArgs? args = null, CustomResourceOptions? opts = null)
public IamGroup(String name, IamGroupArgs args)
public IamGroup(String name, IamGroupArgs args, CustomResourceOptions options)
type: scaleway:IamGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamGroupArgs
- 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 IamGroupArgs
- 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 IamGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IamGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The IamGroup resource accepts the following input properties:
- Application
Ids List<string> The list of IDs of the applications attached to the group.
- Description string
The description of the IAM group.
- Name string
The name of the IAM group.
- Organization
Id string organization_id
) The ID of the organization the group is associated with.- User
Ids List<string> The list of IDs of the users attached to the group.
- Application
Ids []string The list of IDs of the applications attached to the group.
- Description string
The description of the IAM group.
- Name string
The name of the IAM group.
- Organization
Id string organization_id
) The ID of the organization the group is associated with.- User
Ids []string The list of IDs of the users attached to the group.
- application
Ids List<String> The list of IDs of the applications attached to the group.
- description String
The description of the IAM group.
- name String
The name of the IAM group.
- organization
Id String organization_id
) The ID of the organization the group is associated with.- user
Ids List<String> The list of IDs of the users attached to the group.
- application
Ids string[] The list of IDs of the applications attached to the group.
- description string
The description of the IAM group.
- name string
The name of the IAM group.
- organization
Id string organization_id
) The ID of the organization the group is associated with.- user
Ids string[] The list of IDs of the users attached to the group.
- application_
ids Sequence[str] The list of IDs of the applications attached to the group.
- description str
The description of the IAM group.
- name str
The name of the IAM group.
- organization_
id str organization_id
) The ID of the organization the group is associated with.- user_
ids Sequence[str] The list of IDs of the users attached to the group.
- application
Ids List<String> The list of IDs of the applications attached to the group.
- description String
The description of the IAM group.
- name String
The name of the IAM group.
- organization
Id String organization_id
) The ID of the organization the group is associated with.- user
Ids List<String> The list of IDs of the users attached to the group.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamGroup resource produces the following output properties:
- created_
at str The date and time of the creation of the group
- id str
The provider-assigned unique ID for this managed resource.
- updated_
at str The date and time of the last update of the group
Look up Existing IamGroup Resource
Get an existing IamGroup 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?: IamGroupState, opts?: CustomResourceOptions): IamGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_ids: Optional[Sequence[str]] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
updated_at: Optional[str] = None,
user_ids: Optional[Sequence[str]] = None) -> IamGroup
func GetIamGroup(ctx *Context, name string, id IDInput, state *IamGroupState, opts ...ResourceOption) (*IamGroup, error)
public static IamGroup Get(string name, Input<string> id, IamGroupState? state, CustomResourceOptions? opts = null)
public static IamGroup get(String name, Output<String> id, IamGroupState 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.
- Application
Ids List<string> The list of IDs of the applications attached to the group.
- Created
At string The date and time of the creation of the group
- Description string
The description of the IAM group.
- Name string
The name of the IAM group.
- Organization
Id string organization_id
) The ID of the organization the group is associated with.- Updated
At string The date and time of the last update of the group
- User
Ids List<string> The list of IDs of the users attached to the group.
- Application
Ids []string The list of IDs of the applications attached to the group.
- Created
At string The date and time of the creation of the group
- Description string
The description of the IAM group.
- Name string
The name of the IAM group.
- Organization
Id string organization_id
) The ID of the organization the group is associated with.- Updated
At string The date and time of the last update of the group
- User
Ids []string The list of IDs of the users attached to the group.
- application
Ids List<String> The list of IDs of the applications attached to the group.
- created
At String The date and time of the creation of the group
- description String
The description of the IAM group.
- name String
The name of the IAM group.
- organization
Id String organization_id
) The ID of the organization the group is associated with.- updated
At String The date and time of the last update of the group
- user
Ids List<String> The list of IDs of the users attached to the group.
- application
Ids string[] The list of IDs of the applications attached to the group.
- created
At string The date and time of the creation of the group
- description string
The description of the IAM group.
- name string
The name of the IAM group.
- organization
Id string organization_id
) The ID of the organization the group is associated with.- updated
At string The date and time of the last update of the group
- user
Ids string[] The list of IDs of the users attached to the group.
- application_
ids Sequence[str] The list of IDs of the applications attached to the group.
- created_
at str The date and time of the creation of the group
- description str
The description of the IAM group.
- name str
The name of the IAM group.
- organization_
id str organization_id
) The ID of the organization the group is associated with.- updated_
at str The date and time of the last update of the group
- user_
ids Sequence[str] The list of IDs of the users attached to the group.
- application
Ids List<String> The list of IDs of the applications attached to the group.
- created
At String The date and time of the creation of the group
- description String
The description of the IAM group.
- name String
The name of the IAM group.
- organization
Id String organization_id
) The ID of the organization the group is associated with.- updated
At String The date and time of the last update of the group
- user
Ids List<String> The list of IDs of the users attached to the group.
Import
IAM groups can be imported using the {id}
, e.g. bash
$ pulumi import scaleway:index/iamGroup:IamGroup basic 11111111-1111-1111-1111-111111111111
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.