juju.JaasAccessRole
Explore with Pulumi AI
A resource that represents access to a role when using JAAS.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
development:
type: juju:JaasAccessRole
properties:
roleId: ${juju_jaas_role"target-role"[%!s(MISSING)].uuid}
access: assignee
users:
- foo@domain.com
roles:
- ${juju_jaas_role.development.uuid}
serviceAccounts:
- Client-ID-1
- Client-ID-2
Create JaasAccessRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new JaasAccessRole(name: string, args: JaasAccessRoleArgs, opts?: CustomResourceOptions);
@overload
def JaasAccessRole(resource_name: str,
args: JaasAccessRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def JaasAccessRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
role_id: Optional[str] = None,
groups: Optional[Sequence[str]] = None,
service_accounts: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None)
func NewJaasAccessRole(ctx *Context, name string, args JaasAccessRoleArgs, opts ...ResourceOption) (*JaasAccessRole, error)
public JaasAccessRole(string name, JaasAccessRoleArgs args, CustomResourceOptions? opts = null)
public JaasAccessRole(String name, JaasAccessRoleArgs args)
public JaasAccessRole(String name, JaasAccessRoleArgs args, CustomResourceOptions options)
type: juju:JaasAccessRole
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 JaasAccessRoleArgs
- 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 JaasAccessRoleArgs
- 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 JaasAccessRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JaasAccessRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JaasAccessRoleArgs
- 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 jaasAccessRoleResource = new Juju.JaasAccessRole("jaasAccessRoleResource", new()
{
Access = "string",
RoleId = "string",
Groups = new[]
{
"string",
},
ServiceAccounts = new[]
{
"string",
},
Users = new[]
{
"string",
},
});
example, err := juju.NewJaasAccessRole(ctx, "jaasAccessRoleResource", &juju.JaasAccessRoleArgs{
Access: pulumi.String("string"),
RoleId: pulumi.String("string"),
Groups: pulumi.StringArray{
pulumi.String("string"),
},
ServiceAccounts: pulumi.StringArray{
pulumi.String("string"),
},
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var jaasAccessRoleResource = new JaasAccessRole("jaasAccessRoleResource", JaasAccessRoleArgs.builder()
.access("string")
.roleId("string")
.groups("string")
.serviceAccounts("string")
.users("string")
.build());
jaas_access_role_resource = juju.JaasAccessRole("jaasAccessRoleResource",
access="string",
role_id="string",
groups=["string"],
service_accounts=["string"],
users=["string"])
const jaasAccessRoleResource = new juju.JaasAccessRole("jaasAccessRoleResource", {
access: "string",
roleId: "string",
groups: ["string"],
serviceAccounts: ["string"],
users: ["string"],
});
type: juju:JaasAccessRole
properties:
access: string
groups:
- string
roleId: string
serviceAccounts:
- string
users:
- string
JaasAccessRole 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 JaasAccessRole resource accepts the following input properties:
- Access string
- Role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- Groups List<string>
- List of groups to grant access. A valid group ID is the group's UUID.
- 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
- Role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- Groups []string
- List of groups to grant access. A valid group ID is the group's UUID.
- 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
- role
Id String - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- 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
- role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- groups string[]
- List of groups to grant access. A valid group ID is the group's UUID.
- 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
- role_
id str - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- groups Sequence[str]
- List of groups to grant access. A valid group ID is the group's UUID.
- 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
- role
Id String - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- groups List<String>
- List of groups to grant access. A valid group ID is the group's UUID.
- 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 JaasAccessRole 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 JaasAccessRole Resource
Get an existing JaasAccessRole 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?: JaasAccessRoleState, opts?: CustomResourceOptions): JaasAccessRole
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access: Optional[str] = None,
groups: Optional[Sequence[str]] = None,
role_id: Optional[str] = None,
service_accounts: Optional[Sequence[str]] = None,
users: Optional[Sequence[str]] = None) -> JaasAccessRole
func GetJaasAccessRole(ctx *Context, name string, id IDInput, state *JaasAccessRoleState, opts ...ResourceOption) (*JaasAccessRole, error)
public static JaasAccessRole Get(string name, Input<string> id, JaasAccessRoleState? state, CustomResourceOptions? opts = null)
public static JaasAccessRole get(String name, Output<String> id, JaasAccessRoleState state, CustomResourceOptions options)
resources: _: type: juju:JaasAccessRole 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.
- Role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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.
- Role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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.
- role
Id String - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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.
- role
Id string - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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.
- role_
id str - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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.
- role
Id String - The UUID of the role for access management. If this is changed the resource will be deleted and a new resource will be created.
- 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 role access can be imported using the role UUID and access level
$ pulumi import juju:index/jaasAccessRole:JaasAccessRole development UUID:assignee
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.