temporalcloud.GroupAccess
Explore with Pulumi AI
Provisions Temporal Cloud group access.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as temporalcloud from "@pulumi/temporalcloud";
const myScimGroup = temporalcloud.getScimGroup({
idpId: "usually-group-name",
});
const test = new temporalcloud.Namespace("test", {
regions: ["aws-us-east-1"],
apiKeyAuth: true,
retentionDays: 7,
});
const myGroupAccess = new temporalcloud.GroupAccess("myGroupAccess", {
groupAccessId: temporalcloud_scim_group.my_scim_group.id,
accountAccess: "read",
namespaceAccesses: [{
namespaceId: test.id,
permission: "write",
}],
});
import pulumi
import pulumi_temporalcloud as temporalcloud
my_scim_group = temporalcloud.get_scim_group(idp_id="usually-group-name")
test = temporalcloud.Namespace("test",
regions=["aws-us-east-1"],
api_key_auth=True,
retention_days=7)
my_group_access = temporalcloud.GroupAccess("myGroupAccess",
group_access_id=temporalcloud_scim_group["my_scim_group"]["id"],
account_access="read",
namespace_accesses=[{
"namespace_id": test.id,
"permission": "write",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/temporalcloud/temporalcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := temporalcloud.GetScimGroup(ctx, &temporalcloud.GetScimGroupArgs{
IdpId: "usually-group-name",
}, nil)
if err != nil {
return err
}
test, err := temporalcloud.NewNamespace(ctx, "test", &temporalcloud.NamespaceArgs{
Regions: pulumi.StringArray{
pulumi.String("aws-us-east-1"),
},
ApiKeyAuth: pulumi.Bool(true),
RetentionDays: pulumi.Float64(7),
})
if err != nil {
return err
}
_, err = temporalcloud.NewGroupAccess(ctx, "myGroupAccess", &temporalcloud.GroupAccessArgs{
GroupAccessId: pulumi.Any(temporalcloud_scim_group.My_scim_group.Id),
AccountAccess: pulumi.String("read"),
NamespaceAccesses: temporalcloud.GroupAccessNamespaceAccessArray{
&temporalcloud.GroupAccessNamespaceAccessArgs{
NamespaceId: test.ID(),
Permission: pulumi.String("write"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Temporalcloud = Pulumi.Temporalcloud;
return await Deployment.RunAsync(() =>
{
var myScimGroup = Temporalcloud.GetScimGroup.Invoke(new()
{
IdpId = "usually-group-name",
});
var test = new Temporalcloud.Namespace("test", new()
{
Regions = new[]
{
"aws-us-east-1",
},
ApiKeyAuth = true,
RetentionDays = 7,
});
var myGroupAccess = new Temporalcloud.GroupAccess("myGroupAccess", new()
{
GroupAccessId = temporalcloud_scim_group.My_scim_group.Id,
AccountAccess = "read",
NamespaceAccesses = new[]
{
new Temporalcloud.Inputs.GroupAccessNamespaceAccessArgs
{
NamespaceId = test.Id,
Permission = "write",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.temporalcloud.TemporalcloudFunctions;
import com.pulumi.temporalcloud.inputs.GetScimGroupArgs;
import com.pulumi.temporalcloud.Namespace;
import com.pulumi.temporalcloud.NamespaceArgs;
import com.pulumi.temporalcloud.GroupAccess;
import com.pulumi.temporalcloud.GroupAccessArgs;
import com.pulumi.temporalcloud.inputs.GroupAccessNamespaceAccessArgs;
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 myScimGroup = TemporalcloudFunctions.getScimGroup(GetScimGroupArgs.builder()
.idpId("usually-group-name")
.build());
var test = new Namespace("test", NamespaceArgs.builder()
.regions("aws-us-east-1")
.apiKeyAuth(true)
.retentionDays(7)
.build());
var myGroupAccess = new GroupAccess("myGroupAccess", GroupAccessArgs.builder()
.groupAccessId(temporalcloud_scim_group.my_scim_group().id())
.accountAccess("read")
.namespaceAccesses(GroupAccessNamespaceAccessArgs.builder()
.namespaceId(test.id())
.permission("write")
.build())
.build());
}
}
resources:
test:
type: temporalcloud:Namespace
properties:
regions:
- aws-us-east-1
apiKeyAuth: true
retentionDays: 7
myGroupAccess:
type: temporalcloud:GroupAccess
properties:
groupAccessId: ${temporalcloud_scim_group.my_scim_group.id}
accountAccess: read
namespaceAccesses:
- namespaceId: ${test.id}
permission: write
variables:
myScimGroup:
fn::invoke:
function: temporalcloud:getScimGroup
arguments:
idpId: usually-group-name
Create GroupAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GroupAccess(name: string, args: GroupAccessArgs, opts?: CustomResourceOptions);
@overload
def GroupAccess(resource_name: str,
args: GroupAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GroupAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_access: Optional[str] = None,
group_access_id: Optional[str] = None,
namespace_accesses: Optional[Sequence[GroupAccessNamespaceAccessArgs]] = None)
func NewGroupAccess(ctx *Context, name string, args GroupAccessArgs, opts ...ResourceOption) (*GroupAccess, error)
public GroupAccess(string name, GroupAccessArgs args, CustomResourceOptions? opts = null)
public GroupAccess(String name, GroupAccessArgs args)
public GroupAccess(String name, GroupAccessArgs args, CustomResourceOptions options)
type: temporalcloud:GroupAccess
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 GroupAccessArgs
- 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 GroupAccessArgs
- 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 GroupAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GroupAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GroupAccessArgs
- 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 groupAccessResource = new Temporalcloud.GroupAccess("groupAccessResource", new()
{
AccountAccess = "string",
GroupAccessId = "string",
NamespaceAccesses = new[]
{
new Temporalcloud.Inputs.GroupAccessNamespaceAccessArgs
{
NamespaceId = "string",
Permission = "string",
},
},
});
example, err := temporalcloud.NewGroupAccess(ctx, "groupAccessResource", &temporalcloud.GroupAccessArgs{
AccountAccess: pulumi.String("string"),
GroupAccessId: pulumi.String("string"),
NamespaceAccesses: temporalcloud.GroupAccessNamespaceAccessArray{
&temporalcloud.GroupAccessNamespaceAccessArgs{
NamespaceId: pulumi.String("string"),
Permission: pulumi.String("string"),
},
},
})
var groupAccessResource = new GroupAccess("groupAccessResource", GroupAccessArgs.builder()
.accountAccess("string")
.groupAccessId("string")
.namespaceAccesses(GroupAccessNamespaceAccessArgs.builder()
.namespaceId("string")
.permission("string")
.build())
.build());
group_access_resource = temporalcloud.GroupAccess("groupAccessResource",
account_access="string",
group_access_id="string",
namespace_accesses=[{
"namespace_id": "string",
"permission": "string",
}])
const groupAccessResource = new temporalcloud.GroupAccess("groupAccessResource", {
accountAccess: "string",
groupAccessId: "string",
namespaceAccesses: [{
namespaceId: "string",
permission: "string",
}],
});
type: temporalcloud:GroupAccess
properties:
accountAccess: string
groupAccessId: string
namespaceAccesses:
- namespaceId: string
permission: string
GroupAccess 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 GroupAccess resource accepts the following input properties:
- Account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- Group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- Namespace
Accesses List<GroupAccess Namespace Access> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- Account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- Group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- Namespace
Accesses []GroupAccess Namespace Access Args - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access String - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access StringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses List<GroupAccess Namespace Access> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses GroupAccess Namespace Access[] - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account_
access str - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group_
access_ strid - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace_
accesses Sequence[GroupAccess Namespace Access Args] - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access String - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access StringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses List<Property Map> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
Outputs
All input properties are implicitly available as output properties. Additionally, the GroupAccess 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 GroupAccess Resource
Get an existing GroupAccess 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?: GroupAccessState, opts?: CustomResourceOptions): GroupAccess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_access: Optional[str] = None,
group_access_id: Optional[str] = None,
namespace_accesses: Optional[Sequence[GroupAccessNamespaceAccessArgs]] = None) -> GroupAccess
func GetGroupAccess(ctx *Context, name string, id IDInput, state *GroupAccessState, opts ...ResourceOption) (*GroupAccess, error)
public static GroupAccess Get(string name, Input<string> id, GroupAccessState? state, CustomResourceOptions? opts = null)
public static GroupAccess get(String name, Output<String> id, GroupAccessState state, CustomResourceOptions options)
resources: _: type: temporalcloud:GroupAccess 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.
- Account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- Group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- Namespace
Accesses List<GroupAccess Namespace Access> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- Account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- Group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- Namespace
Accesses []GroupAccess Namespace Access Args - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access String - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access StringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses List<GroupAccess Namespace Access> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access string - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access stringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses GroupAccess Namespace Access[] - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account_
access str - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group_
access_ strid - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace_
accesses Sequence[GroupAccess Namespace Access Args] - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
- account
Access String - The role on the account. Must be one of owner, admin, developer, none, or read (case-insensitive). owner is only valid for import and cannot be created, updated or deleted without Temporal support. none is only valid for users managed via SCIM that derive their roles from group memberships or for group access resources.
- group
Access StringId - The unique identifier of the group access across all Temporal Cloud tenants.
- namespace
Accesses List<Property Map> - The set of namespace accesses. Empty sets are not allowed, omit the attribute instead. Users with account*access roles of owner or admin cannot be assigned explicit permissions to namespaces. They implicitly receive access to all Namespaces.
Supporting Types
GroupAccessNamespaceAccess, GroupAccessNamespaceAccessArgs
- Namespace
Id string - The namespace to assign permissions to.
- Permission string
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
- Namespace
Id string - The namespace to assign permissions to.
- Permission string
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
- namespace
Id String - The namespace to assign permissions to.
- permission String
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
- namespace
Id string - The namespace to assign permissions to.
- permission string
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
- namespace_
id str - The namespace to assign permissions to.
- permission str
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
- namespace
Id String - The namespace to assign permissions to.
- permission String
- The permission to assign. Must be one of admin, write, or read (case-insensitive)
Package Details
- Repository
- temporalcloud temporalio/terraform-provider-temporalcloud
- License
- Notes
- This Pulumi package is based on the
temporalcloud
Terraform Provider.