1. Packages
  2. Juju Provider
  3. API Docs
  4. JaasAccessCloud
juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju

juju.JaasAccessCloud

Explore with Pulumi AI

juju logo
juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju

    A resource that represents access to a cloud when using JAAS.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as juju from "@pulumi/juju";
    
    const development = new juju.JaasAccessCloud("development", {
        cloudName: "aws",
        access: "can_addmodel",
        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.JaasAccessCloud("development",
        cloud_name="aws",
        access="can_addmodel",
        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.NewJaasAccessCloud(ctx, "development", &juju.JaasAccessCloudArgs{
    			CloudName: pulumi.String("aws"),
    			Access:    pulumi.String("can_addmodel"),
    			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.JaasAccessCloud("development", new()
        {
            CloudName = "aws",
            Access = "can_addmodel",
            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.JaasAccessCloud;
    import com.pulumi.juju.JaasAccessCloudArgs;
    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 JaasAccessCloud("development", JaasAccessCloudArgs.builder()
                .cloudName("aws")
                .access("can_addmodel")
                .users("foo@domain.com")
                .groups(juju_jaas_group.development().uuid())
                .serviceAccounts(            
                    "Client-ID-1",
                    "Client-ID-2")
                .build());
    
        }
    }
    
    resources:
      development:
        type: juju:JaasAccessCloud
        properties:
          cloudName: aws
          access: can_addmodel
          users:
            - foo@domain.com
          groups:
            - ${juju_jaas_group.development.uuid}
          serviceAccounts:
            - Client-ID-1
            - Client-ID-2
    

    Create JaasAccessCloud Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new JaasAccessCloud(name: string, args: JaasAccessCloudArgs, opts?: CustomResourceOptions);
    @overload
    def JaasAccessCloud(resource_name: str,
                        args: JaasAccessCloudArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def JaasAccessCloud(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        access: Optional[str] = None,
                        cloud_name: 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 NewJaasAccessCloud(ctx *Context, name string, args JaasAccessCloudArgs, opts ...ResourceOption) (*JaasAccessCloud, error)
    public JaasAccessCloud(string name, JaasAccessCloudArgs args, CustomResourceOptions? opts = null)
    public JaasAccessCloud(String name, JaasAccessCloudArgs args)
    public JaasAccessCloud(String name, JaasAccessCloudArgs args, CustomResourceOptions options)
    
    type: juju:JaasAccessCloud
    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 JaasAccessCloudArgs
    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 JaasAccessCloudArgs
    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 JaasAccessCloudArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JaasAccessCloudArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JaasAccessCloudArgs
    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 jaasAccessCloudResource = new Juju.JaasAccessCloud("jaasAccessCloudResource", new()
    {
        Access = "string",
        CloudName = "string",
        Groups = new[]
        {
            "string",
        },
        Roles = new[]
        {
            "string",
        },
        ServiceAccounts = new[]
        {
            "string",
        },
        Users = new[]
        {
            "string",
        },
    });
    
    example, err := juju.NewJaasAccessCloud(ctx, "jaasAccessCloudResource", &juju.JaasAccessCloudArgs{
    	Access:    pulumi.String("string"),
    	CloudName: 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 jaasAccessCloudResource = new JaasAccessCloud("jaasAccessCloudResource", JaasAccessCloudArgs.builder()
        .access("string")
        .cloudName("string")
        .groups("string")
        .roles("string")
        .serviceAccounts("string")
        .users("string")
        .build());
    
    jaas_access_cloud_resource = juju.JaasAccessCloud("jaasAccessCloudResource",
        access="string",
        cloud_name="string",
        groups=["string"],
        roles=["string"],
        service_accounts=["string"],
        users=["string"])
    
    const jaasAccessCloudResource = new juju.JaasAccessCloud("jaasAccessCloudResource", {
        access: "string",
        cloudName: "string",
        groups: ["string"],
        roles: ["string"],
        serviceAccounts: ["string"],
        users: ["string"],
    });
    
    type: juju:JaasAccessCloud
    properties:
        access: string
        cloudName: string
        groups:
            - string
        roles:
            - string
        serviceAccounts:
            - string
        users:
            - string
    

    JaasAccessCloud 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 JaasAccessCloud resource accepts the following input properties:

    Access string
    CloudName string
    The name of the cloud 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.
    Roles List<string>
    List of roles UUIDs to grant access.
    ServiceAccounts 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
    CloudName string
    The name of the cloud 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.
    Roles []string
    List of roles UUIDs to grant access.
    ServiceAccounts []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
    cloudName String
    The name of the cloud 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.
    roles List<String>
    List of roles UUIDs to grant access.
    serviceAccounts 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
    cloudName string
    The name of the cloud 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.
    roles string[]
    List of roles UUIDs to grant access.
    serviceAccounts 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
    cloud_name str
    The name of the cloud 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.
    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
    cloudName String
    The name of the cloud 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.
    roles List<String>
    List of roles UUIDs to grant access.
    serviceAccounts 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 JaasAccessCloud 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 JaasAccessCloud Resource

    Get an existing JaasAccessCloud 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?: JaasAccessCloudState, opts?: CustomResourceOptions): JaasAccessCloud
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access: Optional[str] = None,
            cloud_name: Optional[str] = None,
            groups: Optional[Sequence[str]] = None,
            roles: Optional[Sequence[str]] = None,
            service_accounts: Optional[Sequence[str]] = None,
            users: Optional[Sequence[str]] = None) -> JaasAccessCloud
    func GetJaasAccessCloud(ctx *Context, name string, id IDInput, state *JaasAccessCloudState, opts ...ResourceOption) (*JaasAccessCloud, error)
    public static JaasAccessCloud Get(string name, Input<string> id, JaasAccessCloudState? state, CustomResourceOptions? opts = null)
    public static JaasAccessCloud get(String name, Output<String> id, JaasAccessCloudState state, CustomResourceOptions options)
    resources:  _:    type: juju:JaasAccessCloud    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.
    The following state arguments are supported:
    Access string
    CloudName string
    The name of the cloud 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.
    Roles List<string>
    List of roles UUIDs to grant access.
    ServiceAccounts 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
    CloudName string
    The name of the cloud 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.
    Roles []string
    List of roles UUIDs to grant access.
    ServiceAccounts []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
    cloudName String
    The name of the cloud 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.
    roles List<String>
    List of roles UUIDs to grant access.
    serviceAccounts 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
    cloudName string
    The name of the cloud 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.
    roles string[]
    List of roles UUIDs to grant access.
    serviceAccounts 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
    cloud_name str
    The name of the cloud 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.
    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
    cloudName String
    The name of the cloud 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.
    roles List<String>
    List of roles UUIDs to grant access.
    serviceAccounts 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 cloud access can be imported using the cloud name and access level

    $ pulumi import juju:index/jaasAccessCloud:JaasAccessCloud development aws:can_addmodel
    

    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.
    juju logo
    juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju