juju.JaasAccessController
Explore with Pulumi AI
A resource that represents direct access the JAAS controller.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as juju from "@pulumi/juju";
const development = new juju.JaasAccessController("development", {
access: "administrator",
users: ["foo@domain.com"],
groups: [juju_jaas_group.development.uuid],
serviceAccounts: [
"Client-ID-1",
"Client-ID-2",
],
});
import pulumi
import pulumi_juju as juju
development = juju.JaasAccessController("development",
access="administrator",
users=["foo@domain.com"],
groups=[juju_jaas_group["development"]["uuid"]],
service_accounts=[
"Client-ID-1",
"Client-ID-2",
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/juju/juju"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := juju.NewJaasAccessController(ctx, "development", &juju.JaasAccessControllerArgs{
Access: pulumi.String("administrator"),
Users: pulumi.StringArray{
pulumi.String("foo@domain.com"),
},
Groups: pulumi.StringArray{
juju_jaas_group.Development.Uuid,
},
ServiceAccounts: pulumi.StringArray{
pulumi.String("Client-ID-1"),
pulumi.String("Client-ID-2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Juju = Pulumi.Juju;
return await Deployment.RunAsync(() =>
{
var development = new Juju.JaasAccessController("development", new()
{
Access = "administrator",
Users = new[]
{
"foo@domain.com",
},
Groups = new[]
{
juju_jaas_group.Development.Uuid,
},
ServiceAccounts = new[]
{
"Client-ID-1",
"Client-ID-2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.juju.JaasAccessController;
import com.pulumi.juju.JaasAccessControllerArgs;
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 development = new JaasAccessController("development", JaasAccessControllerArgs.builder()
.access("administrator")
.users("foo@domain.com")
.groups(juju_jaas_group.development().uuid())
.serviceAccounts(
"Client-ID-1",
"Client-ID-2")
.build());
}
}
resources:
development:
type: juju:JaasAccessController
properties:
access: administrator
users:
- foo@domain.com
groups:
- ${juju_jaas_group.development.uuid}
serviceAccounts:
- Client-ID-1
- Client-ID-2
Create JaasAccessController Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JaasAccessController(name: string, args: JaasAccessControllerArgs, opts?: CustomResourceOptions);
@overload
def JaasAccessController(resource_name: str,
args: JaasAccessControllerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JaasAccessController(resource_name: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
groups: Optional[Sequence[str]] = None,
roles: Optional[Sequence[str]] = None,
service_accounts: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None)
func NewJaasAccessController(ctx *Context, name string, args JaasAccessControllerArgs, opts ...ResourceOption) (*JaasAccessController, error)
public JaasAccessController(string name, JaasAccessControllerArgs args, CustomResourceOptions? opts = null)
public JaasAccessController(String name, JaasAccessControllerArgs args)
public JaasAccessController(String name, JaasAccessControllerArgs args, CustomResourceOptions options)
type: juju:JaasAccessController
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 JaasAccessControllerArgs
- 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 JaasAccessControllerArgs
- 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 JaasAccessControllerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JaasAccessControllerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JaasAccessControllerArgs
- 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 jaasAccessControllerResource = new Juju.JaasAccessController("jaasAccessControllerResource", new()
{
Access = "string",
Groups = new[]
{
"string",
},
Roles = new[]
{
"string",
},
ServiceAccounts = new[]
{
"string",
},
Users = new[]
{
"string",
},
});
example, err := juju.NewJaasAccessController(ctx, "jaasAccessControllerResource", &juju.JaasAccessControllerArgs{
Access: pulumi.String("string"),
Groups: pulumi.StringArray{
pulumi.String("string"),
},
Roles: pulumi.StringArray{
pulumi.String("string"),
},
ServiceAccounts: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var jaasAccessControllerResource = new JaasAccessController("jaasAccessControllerResource", JaasAccessControllerArgs.builder()
.access("string")
.groups("string")
.roles("string")
.serviceAccounts("string")
.users("string")
.build());
jaas_access_controller_resource = juju.JaasAccessController("jaasAccessControllerResource",
access="string",
groups=["string"],
roles=["string"],
service_accounts=["string"],
users=["string"])
const jaasAccessControllerResource = new juju.JaasAccessController("jaasAccessControllerResource", {
access: "string",
groups: ["string"],
roles: ["string"],
serviceAccounts: ["string"],
users: ["string"],
});
type: juju:JaasAccessController
properties:
access: string
groups:
- string
roles:
- string
serviceAccounts:
- string
users:
- string
JaasAccessController 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 JaasAccessController resource accepts the following input properties:
- Access string
- Groups List<string>
- List of groups to grant access. A valid group ID is the group's UUID.
- Roles List<string>
- List of roles UUIDs to grant access.
- Service
Accounts List<string> - List of service accounts to grant access. A valid service account is the service account's name.
- Users List<string>
- List of users to grant access. A valid user is the user's name or email.
- Access string
- Groups []string
- List of groups to grant access. A valid group ID is the group's UUID.
- Roles []string
- List of roles UUIDs to grant access.
- Service
Accounts []string - List of service accounts to grant access. A valid service account is the service account's name.
- Users []string
- List of users to grant access. A valid user is the user's name or email.
- access String
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- roles List<String>
- List of roles UUIDs to grant access.
- service
Accounts List<String> - List of service accounts to grant access. A valid service account is the service account's name.
- users List<String>
- List of users to grant access. A valid user is the user's name or email.
- access string
- groups string[]
- List of groups to grant access. A valid group ID is the group's UUID.
- roles string[]
- List of roles UUIDs to grant access.
- service
Accounts string[] - List of service accounts to grant access. A valid service account is the service account's name.
- users string[]
- List of users to grant access. A valid user is the user's name or email.
- access str
- groups Sequence[str]
- List of groups to grant access. A valid group ID is the group's UUID.
- roles Sequence[str]
- List of roles UUIDs to grant access.
- service_
accounts Sequence[str] - List of service accounts to grant access. A valid service account is the service account's name.
- users Sequence[str]
- List of users to grant access. A valid user is the user's name or email.
- access String
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- roles List<String>
- List of roles UUIDs to grant access.
- service
Accounts List<String> - List of service accounts to grant access. A valid service account is the service account's name.
- users List<String>
- List of users to grant access. A valid user is the user's name or email.
Outputs
All input properties are implicitly available as output properties. Additionally, the JaasAccessController 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 JaasAccessController Resource
Get an existing JaasAccessController 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?: JaasAccessControllerState, opts?: CustomResourceOptions): JaasAccessController
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
groups: Optional[Sequence[str]] = None,
roles: Optional[Sequence[str]] = None,
service_accounts: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None) -> JaasAccessController
func GetJaasAccessController(ctx *Context, name string, id IDInput, state *JaasAccessControllerState, opts ...ResourceOption) (*JaasAccessController, error)
public static JaasAccessController Get(string name, Input<string> id, JaasAccessControllerState? state, CustomResourceOptions? opts = null)
public static JaasAccessController get(String name, Output<String> id, JaasAccessControllerState state, CustomResourceOptions options)
resources: _: type: juju:JaasAccessController 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.
- Access string
- Groups List<string>
- List of groups to grant access. A valid group ID is the group's UUID.
- Roles List<string>
- List of roles UUIDs to grant access.
- Service
Accounts List<string> - List of service accounts to grant access. A valid service account is the service account's name.
- Users List<string>
- List of users to grant access. A valid user is the user's name or email.
- Access string
- Groups []string
- List of groups to grant access. A valid group ID is the group's UUID.
- Roles []string
- List of roles UUIDs to grant access.
- Service
Accounts []string - List of service accounts to grant access. A valid service account is the service account's name.
- Users []string
- List of users to grant access. A valid user is the user's name or email.
- access String
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- roles List<String>
- List of roles UUIDs to grant access.
- service
Accounts List<String> - List of service accounts to grant access. A valid service account is the service account's name.
- users List<String>
- List of users to grant access. A valid user is the user's name or email.
- access string
- groups string[]
- List of groups to grant access. A valid group ID is the group's UUID.
- roles string[]
- List of roles UUIDs to grant access.
- service
Accounts string[] - List of service accounts to grant access. A valid service account is the service account's name.
- users string[]
- List of users to grant access. A valid user is the user's name or email.
- access str
- groups Sequence[str]
- List of groups to grant access. A valid group ID is the group's UUID.
- roles Sequence[str]
- List of roles UUIDs to grant access.
- service_
accounts Sequence[str] - List of service accounts to grant access. A valid service account is the service account's name.
- users Sequence[str]
- List of users to grant access. A valid user is the user's name or email.
- access String
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- roles List<String>
- List of roles UUIDs to grant access.
- service
Accounts List<String> - List of service accounts to grant access. A valid service account is the service account's name.
- users List<String>
- List of users to grant access. A valid user is the user's name or email.
Import
JAAS controller access can be imported using the fixed JAAS controller name and access level
I.e. in this case jimm is the only valid controller name.
$ pulumi import juju:index/jaasAccessController:JaasAccessController development jimm:administrator
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- juju juju/terraform-provider-juju
- License
- Notes
- This Pulumi package is based on the
juju
Terraform Provider.