1. Packages
  2. Aquasec
  3. API Docs
  4. UserSaas
Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse

aquasec.UserSaas

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse

    The aquasec.UserSaas resource manages your saas users within Aqua.

    The users created must have at least one Csp Role that is already present within Aqua.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aquasec = Pulumiverse.Aquasec;
    
    return await Deployment.RunAsync(() => 
    {
        var iaC1 = new Aquasec.UserSaas("iaC1", new()
        {
            AccountAdmin = true,
            CspRoles = new[] {},
            Email = "infrastructure1@example.com",
        });
    
        var iaC2 = new Aquasec.UserSaas("iaC2", new()
        {
            AccountAdmin = false,
            CspRoles = new[]
            {
                "Default",
            },
            Email = "infrastructure2@example.com",
            Groups = new[]
            {
                new Aquasec.Inputs.UserSaasGroupArgs
                {
                    GroupAdmin = false,
                    Name = "IacGroupName",
                },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-aquasec/sdk/go/aquasec"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aquasec.NewUserSaas(ctx, "iaC1", &aquasec.UserSaasArgs{
    			AccountAdmin: pulumi.Bool(true),
    			CspRoles:     pulumi.StringArray{},
    			Email:        pulumi.String("infrastructure1@example.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = aquasec.NewUserSaas(ctx, "iaC2", &aquasec.UserSaasArgs{
    			AccountAdmin: pulumi.Bool(false),
    			CspRoles: pulumi.StringArray{
    				pulumi.String("Default"),
    			},
    			Email: pulumi.String("infrastructure2@example.com"),
    			Groups: aquasec.UserSaasGroupArray{
    				&aquasec.UserSaasGroupArgs{
    					GroupAdmin: pulumi.Bool(false),
    					Name:       pulumi.String("IacGroupName"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aquasec.UserSaas;
    import com.pulumi.aquasec.UserSaasArgs;
    import com.pulumi.aquasec.inputs.UserSaasGroupArgs;
    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 iaC1 = new UserSaas("iaC1", UserSaasArgs.builder()        
                .accountAdmin(true)
                .cspRoles()
                .email("infrastructure1@example.com")
                .build());
    
            var iaC2 = new UserSaas("iaC2", UserSaasArgs.builder()        
                .accountAdmin(false)
                .cspRoles("Default")
                .email("infrastructure2@example.com")
                .groups(UserSaasGroupArgs.builder()
                    .groupAdmin(false)
                    .name("IacGroupName")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_aquasec as aquasec
    
    ia_c1 = aquasec.UserSaas("iaC1",
        account_admin=True,
        csp_roles=[],
        email="infrastructure1@example.com")
    ia_c2 = aquasec.UserSaas("iaC2",
        account_admin=False,
        csp_roles=["Default"],
        email="infrastructure2@example.com",
        groups=[aquasec.UserSaasGroupArgs(
            group_admin=False,
            name="IacGroupName",
        )])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aquasec from "@pulumiverse/aquasec";
    
    const iaC1 = new aquasec.UserSaas("iaC1", {
        accountAdmin: true,
        cspRoles: [],
        email: "infrastructure1@example.com",
    });
    const iaC2 = new aquasec.UserSaas("iaC2", {
        accountAdmin: false,
        cspRoles: ["Default"],
        email: "infrastructure2@example.com",
        groups: [{
            groupAdmin: false,
            name: "IacGroupName",
        }],
    });
    
    resources:
      iaC1:
        type: aquasec:UserSaas
        properties:
          accountAdmin: true
          cspRoles: []
          email: infrastructure1@example.com
      iaC2:
        type: aquasec:UserSaas
        properties:
          accountAdmin: false
          cspRoles:
            - Default
          email: infrastructure2@example.com
          # optional
          groups:
            - groupAdmin: false
              name: IacGroupName
    

    Create UserSaas Resource

    new UserSaas(name: string, args: UserSaasArgs, opts?: CustomResourceOptions);
    @overload
    def UserSaas(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_admin: Optional[bool] = None,
                 csp_roles: Optional[Sequence[str]] = None,
                 email: Optional[str] = None,
                 groups: Optional[Sequence[UserSaasGroupArgs]] = None)
    @overload
    def UserSaas(resource_name: str,
                 args: UserSaasArgs,
                 opts: Optional[ResourceOptions] = None)
    func NewUserSaas(ctx *Context, name string, args UserSaasArgs, opts ...ResourceOption) (*UserSaas, error)
    public UserSaas(string name, UserSaasArgs args, CustomResourceOptions? opts = null)
    public UserSaas(String name, UserSaasArgs args)
    public UserSaas(String name, UserSaasArgs args, CustomResourceOptions options)
    
    type: aquasec:UserSaas
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args UserSaasArgs
    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 UserSaasArgs
    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 UserSaasArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserSaasArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserSaasArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    UserSaas Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The UserSaas resource accepts the following input properties:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserSaas resource produces the following output properties:

    Confirmed bool
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    Logins List<Pulumiverse.Aquasec.Outputs.UserSaasLogin>
    Multiaccount bool
    PasswordReset bool
    SendAnnouncements bool
    SendNewPlugins bool
    SendNewRisks bool
    SendScanResults bool
    UserId string
    Confirmed bool
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    Logins []UserSaasLogin
    Multiaccount bool
    PasswordReset bool
    SendAnnouncements bool
    SendNewPlugins bool
    SendNewRisks bool
    SendScanResults bool
    UserId string
    confirmed Boolean
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    logins List<UserSaasLogin>
    multiaccount Boolean
    passwordReset Boolean
    sendAnnouncements Boolean
    sendNewPlugins Boolean
    sendNewRisks Boolean
    sendScanResults Boolean
    userId String
    confirmed boolean
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    logins UserSaasLogin[]
    multiaccount boolean
    passwordReset boolean
    sendAnnouncements boolean
    sendNewPlugins boolean
    sendNewRisks boolean
    sendScanResults boolean
    userId string
    confirmed bool
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    logins Sequence[UserSaasLogin]
    multiaccount bool
    password_reset bool
    send_announcements bool
    send_new_plugins bool
    send_new_risks bool
    send_scan_results bool
    user_id str
    confirmed Boolean
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    logins List<Property Map>
    multiaccount Boolean
    passwordReset Boolean
    sendAnnouncements Boolean
    sendNewPlugins Boolean
    sendNewRisks Boolean
    sendScanResults Boolean
    userId String

    Look up Existing UserSaas Resource

    Get an existing UserSaas 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?: UserSaasState, opts?: CustomResourceOptions): UserSaas
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_admin: Optional[bool] = None,
            confirmed: Optional[bool] = None,
            created: Optional[str] = None,
            csp_roles: Optional[Sequence[str]] = None,
            email: Optional[str] = None,
            groups: Optional[Sequence[UserSaasGroupArgs]] = None,
            logins: Optional[Sequence[UserSaasLoginArgs]] = None,
            multiaccount: Optional[bool] = None,
            password_reset: Optional[bool] = None,
            send_announcements: Optional[bool] = None,
            send_new_plugins: Optional[bool] = None,
            send_new_risks: Optional[bool] = None,
            send_scan_results: Optional[bool] = None,
            user_id: Optional[str] = None) -> UserSaas
    func GetUserSaas(ctx *Context, name string, id IDInput, state *UserSaasState, opts ...ResourceOption) (*UserSaas, error)
    public static UserSaas Get(string name, Input<string> id, UserSaasState? state, CustomResourceOptions? opts = null)
    public static UserSaas get(String name, Output<String> id, UserSaasState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:

    Supporting Types

    UserSaasGroup, UserSaasGroupArgs

    GroupAdmin bool
    Name string
    GroupAdmin bool
    Name string
    groupAdmin Boolean
    name String
    groupAdmin boolean
    name string
    groupAdmin Boolean
    name String

    UserSaasLogin, UserSaasLoginArgs

    Created string
    Id int
    IpAddress string
    UserId int
    Created string
    Id int
    IpAddress string
    UserId int
    created String
    id Integer
    ipAddress String
    userId Integer
    created string
    id number
    ipAddress string
    userId number
    created String
    id Number
    ipAddress String
    userId Number

    Package Details

    Repository
    aquasec pulumiverse/pulumi-aquasec
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse