athenz.SelfServeGroupMembers
Explore with Pulumi AI
Example Usage
IMPORTANT NOTE: please do NOT use json syntax but only hcl syntax
import * as pulumi from "@pulumi/pulumi";
import * as athenz from "@pulumi/athenz";
const fooGroup = new athenz.SelfServeGroupMembers("fooGroup", {
auditRef: "manage group membership",
domain: "some_domain",
members: [
{
expiration: "2022-12-29 23:59:59",
name: "domain1.user1",
},
{
expiration: "2022-12-29 23:59:59",
name: "domain2.user2",
},
{
name: "domain3.user3",
},
],
});
import pulumi
import pulumi_athenz as athenz
foo_group = athenz.SelfServeGroupMembers("fooGroup",
audit_ref="manage group membership",
domain="some_domain",
members=[
{
"expiration": "2022-12-29 23:59:59",
"name": "domain1.user1",
},
{
"expiration": "2022-12-29 23:59:59",
"name": "domain2.user2",
},
{
"name": "domain3.user3",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/athenz/athenz"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := athenz.NewSelfServeGroupMembers(ctx, "fooGroup", &athenz.SelfServeGroupMembersArgs{
AuditRef: pulumi.String("manage group membership"),
Domain: pulumi.String("some_domain"),
Members: athenz.SelfServeGroupMembersMemberArray{
&athenz.SelfServeGroupMembersMemberArgs{
Expiration: pulumi.String("2022-12-29 23:59:59"),
Name: pulumi.String("domain1.user1"),
},
&athenz.SelfServeGroupMembersMemberArgs{
Expiration: pulumi.String("2022-12-29 23:59:59"),
Name: pulumi.String("domain2.user2"),
},
&athenz.SelfServeGroupMembersMemberArgs{
Name: pulumi.String("domain3.user3"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Athenz = Pulumi.Athenz;
return await Deployment.RunAsync(() =>
{
var fooGroup = new Athenz.SelfServeGroupMembers("fooGroup", new()
{
AuditRef = "manage group membership",
Domain = "some_domain",
Members = new[]
{
new Athenz.Inputs.SelfServeGroupMembersMemberArgs
{
Expiration = "2022-12-29 23:59:59",
Name = "domain1.user1",
},
new Athenz.Inputs.SelfServeGroupMembersMemberArgs
{
Expiration = "2022-12-29 23:59:59",
Name = "domain2.user2",
},
new Athenz.Inputs.SelfServeGroupMembersMemberArgs
{
Name = "domain3.user3",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.athenz.SelfServeGroupMembers;
import com.pulumi.athenz.SelfServeGroupMembersArgs;
import com.pulumi.athenz.inputs.SelfServeGroupMembersMemberArgs;
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 fooGroup = new SelfServeGroupMembers("fooGroup", SelfServeGroupMembersArgs.builder()
.auditRef("manage group membership")
.domain("some_domain")
.members(
SelfServeGroupMembersMemberArgs.builder()
.expiration("2022-12-29 23:59:59")
.name("domain1.user1")
.build(),
SelfServeGroupMembersMemberArgs.builder()
.expiration("2022-12-29 23:59:59")
.name("domain2.user2")
.build(),
SelfServeGroupMembersMemberArgs.builder()
.name("domain3.user3")
.build())
.build());
}
}
resources:
fooGroup:
type: athenz:SelfServeGroupMembers
properties:
auditRef: manage group membership
domain: some_domain
members:
- expiration: 2022-12-29 23:59:59
name: domain1.user1
- expiration: 2022-12-29 23:59:59
name: domain2.user2
- name: domain3.user3
Create SelfServeGroupMembers Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SelfServeGroupMembers(name: string, args: SelfServeGroupMembersArgs, opts?: CustomResourceOptions);
@overload
def SelfServeGroupMembers(resource_name: str,
args: SelfServeGroupMembersArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SelfServeGroupMembers(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
audit_ref: Optional[str] = None,
members: Optional[Sequence[SelfServeGroupMembersMemberArgs]] = None,
name: Optional[str] = None,
self_serve_group_members_id: Optional[str] = None)
func NewSelfServeGroupMembers(ctx *Context, name string, args SelfServeGroupMembersArgs, opts ...ResourceOption) (*SelfServeGroupMembers, error)
public SelfServeGroupMembers(string name, SelfServeGroupMembersArgs args, CustomResourceOptions? opts = null)
public SelfServeGroupMembers(String name, SelfServeGroupMembersArgs args)
public SelfServeGroupMembers(String name, SelfServeGroupMembersArgs args, CustomResourceOptions options)
type: athenz:SelfServeGroupMembers
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 SelfServeGroupMembersArgs
- 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 SelfServeGroupMembersArgs
- 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 SelfServeGroupMembersArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SelfServeGroupMembersArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SelfServeGroupMembersArgs
- 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 selfServeGroupMembersResource = new Athenz.SelfServeGroupMembers("selfServeGroupMembersResource", new()
{
Domain = "string",
AuditRef = "string",
Members = new[]
{
new Athenz.Inputs.SelfServeGroupMembersMemberArgs
{
Name = "string",
Expiration = "string",
},
},
Name = "string",
SelfServeGroupMembersId = "string",
});
example, err := athenz.NewSelfServeGroupMembers(ctx, "selfServeGroupMembersResource", &athenz.SelfServeGroupMembersArgs{
Domain: pulumi.String("string"),
AuditRef: pulumi.String("string"),
Members: athenz.SelfServeGroupMembersMemberArray{
&athenz.SelfServeGroupMembersMemberArgs{
Name: pulumi.String("string"),
Expiration: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
SelfServeGroupMembersId: pulumi.String("string"),
})
var selfServeGroupMembersResource = new SelfServeGroupMembers("selfServeGroupMembersResource", SelfServeGroupMembersArgs.builder()
.domain("string")
.auditRef("string")
.members(SelfServeGroupMembersMemberArgs.builder()
.name("string")
.expiration("string")
.build())
.name("string")
.selfServeGroupMembersId("string")
.build());
self_serve_group_members_resource = athenz.SelfServeGroupMembers("selfServeGroupMembersResource",
domain="string",
audit_ref="string",
members=[{
"name": "string",
"expiration": "string",
}],
name="string",
self_serve_group_members_id="string")
const selfServeGroupMembersResource = new athenz.SelfServeGroupMembers("selfServeGroupMembersResource", {
domain: "string",
auditRef: "string",
members: [{
name: "string",
expiration: "string",
}],
name: "string",
selfServeGroupMembersId: "string",
});
type: athenz:SelfServeGroupMembers
properties:
auditRef: string
domain: string
members:
- expiration: string
name: string
name: string
selfServeGroupMembersId: string
SelfServeGroupMembers 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 SelfServeGroupMembers resource accepts the following input properties:
- Domain string
- Name of the domain that group belongs to
- Audit
Ref string - string containing audit specification or ticket number.
- Members
List<Self
Serve Group Members Member> - Name string
- Name of the group
- Self
Serve stringGroup Members Id - The ID of this resource.
- Domain string
- Name of the domain that group belongs to
- Audit
Ref string - string containing audit specification or ticket number.
- Members
[]Self
Serve Group Members Member Args - Name string
- Name of the group
- Self
Serve stringGroup Members Id - The ID of this resource.
- domain String
- Name of the domain that group belongs to
- audit
Ref String - string containing audit specification or ticket number.
- members
List<Self
Serve Group Members Member> - name String
- Name of the group
- self
Serve StringGroup Members Id - The ID of this resource.
- domain string
- Name of the domain that group belongs to
- audit
Ref string - string containing audit specification or ticket number.
- members
Self
Serve Group Members Member[] - name string
- Name of the group
- self
Serve stringGroup Members Id - The ID of this resource.
- domain str
- Name of the domain that group belongs to
- audit_
ref str - string containing audit specification or ticket number.
- members
Sequence[Self
Serve Group Members Member Args] - name str
- Name of the group
- self_
serve_ strgroup_ members_ id - The ID of this resource.
- domain String
- Name of the domain that group belongs to
- audit
Ref String - string containing audit specification or ticket number.
- members List<Property Map>
- name String
- Name of the group
- self
Serve StringGroup Members Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SelfServeGroupMembers 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 SelfServeGroupMembers Resource
Get an existing SelfServeGroupMembers 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?: SelfServeGroupMembersState, opts?: CustomResourceOptions): SelfServeGroupMembers
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
audit_ref: Optional[str] = None,
domain: Optional[str] = None,
members: Optional[Sequence[SelfServeGroupMembersMemberArgs]] = None,
name: Optional[str] = None,
self_serve_group_members_id: Optional[str] = None) -> SelfServeGroupMembers
func GetSelfServeGroupMembers(ctx *Context, name string, id IDInput, state *SelfServeGroupMembersState, opts ...ResourceOption) (*SelfServeGroupMembers, error)
public static SelfServeGroupMembers Get(string name, Input<string> id, SelfServeGroupMembersState? state, CustomResourceOptions? opts = null)
public static SelfServeGroupMembers get(String name, Output<String> id, SelfServeGroupMembersState state, CustomResourceOptions options)
resources: _: type: athenz:SelfServeGroupMembers 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.
- Audit
Ref string - string containing audit specification or ticket number.
- Domain string
- Name of the domain that group belongs to
- Members
List<Self
Serve Group Members Member> - Name string
- Name of the group
- Self
Serve stringGroup Members Id - The ID of this resource.
- Audit
Ref string - string containing audit specification or ticket number.
- Domain string
- Name of the domain that group belongs to
- Members
[]Self
Serve Group Members Member Args - Name string
- Name of the group
- Self
Serve stringGroup Members Id - The ID of this resource.
- audit
Ref String - string containing audit specification or ticket number.
- domain String
- Name of the domain that group belongs to
- members
List<Self
Serve Group Members Member> - name String
- Name of the group
- self
Serve StringGroup Members Id - The ID of this resource.
- audit
Ref string - string containing audit specification or ticket number.
- domain string
- Name of the domain that group belongs to
- members
Self
Serve Group Members Member[] - name string
- Name of the group
- self
Serve stringGroup Members Id - The ID of this resource.
- audit_
ref str - string containing audit specification or ticket number.
- domain str
- Name of the domain that group belongs to
- members
Sequence[Self
Serve Group Members Member Args] - name str
- Name of the group
- self_
serve_ strgroup_ members_ id - The ID of this resource.
- audit
Ref String - string containing audit specification or ticket number.
- domain String
- Name of the domain that group belongs to
- members List<Property Map>
- name String
- Name of the group
- self
Serve StringGroup Members Id - The ID of this resource.
Supporting Types
SelfServeGroupMembersMember, SelfServeGroupMembersMemberArgs
- Name string
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- Expiration string
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
- Name string
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- Expiration string
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
- name String
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- expiration String
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
- name string
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- expiration string
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
- name str
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- expiration str
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
- name String
- The name of the Athenz principal member. must be in this format:
user.<userid> or <domain>.<service> or <domain>:group.<group>
.
- The name of the Athenz principal member. must be in this format:
- expiration String
- The expiration time in UTC of the Athenz principal member. must be in this format:
<yyyy>-<mm>-<dd> <hh>:<MM>:<ss>
- The expiration time in UTC of the Athenz principal member. must be in this format:
Package Details
- Repository
- athenz athenz/terraform-provider-athenz
- License
- Notes
- This Pulumi package is based on the
athenz
Terraform Provider.