aquasec.UserSaas
Explore with Pulumi AI
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
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",
}],
});
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",
)])
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
})
}
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 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());
}
}
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserSaas(name: string, args: UserSaasArgs, opts?: CustomResourceOptions);
@overload
def UserSaas(resource_name: str,
args: UserSaasArgs,
opts: Optional[ResourceOptions] = None)
@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)
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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var userSaasResource = new Aquasec.UserSaas("userSaasResource", new()
{
AccountAdmin = false,
CspRoles = new[]
{
"string",
},
Email = "string",
Groups = new[]
{
new Aquasec.Inputs.UserSaasGroupArgs
{
GroupAdmin = false,
Name = "string",
},
},
});
example, err := aquasec.NewUserSaas(ctx, "userSaasResource", &aquasec.UserSaasArgs{
AccountAdmin: pulumi.Bool(false),
CspRoles: pulumi.StringArray{
pulumi.String("string"),
},
Email: pulumi.String("string"),
Groups: aquasec.UserSaasGroupArray{
&aquasec.UserSaasGroupArgs{
GroupAdmin: pulumi.Bool(false),
Name: pulumi.String("string"),
},
},
})
var userSaasResource = new UserSaas("userSaasResource", UserSaasArgs.builder()
.accountAdmin(false)
.cspRoles("string")
.email("string")
.groups(UserSaasGroupArgs.builder()
.groupAdmin(false)
.name("string")
.build())
.build());
user_saas_resource = aquasec.UserSaas("userSaasResource",
account_admin=False,
csp_roles=["string"],
email="string",
groups=[{
"group_admin": False,
"name": "string",
}])
const userSaasResource = new aquasec.UserSaas("userSaasResource", {
accountAdmin: false,
cspRoles: ["string"],
email: "string",
groups: [{
groupAdmin: false,
name: "string",
}],
});
type: aquasec:UserSaas
properties:
accountAdmin: false
cspRoles:
- string
email: string
groups:
- groupAdmin: false
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UserSaas resource accepts the following input properties:
- Account
Admin bool - Csp
Roles List<string> - Email string
- Groups
List<Pulumiverse.
Aquasec. Inputs. User Saas Group>
- Account
Admin bool - Csp
Roles []string - Email string
- Groups
[]User
Saas Group Args
- account
Admin Boolean - csp
Roles List<String> - email String
- groups
List<User
Saas Group>
- account
Admin boolean - csp
Roles string[] - email string
- groups
User
Saas Group[]
- account_
admin bool - csp_
roles Sequence[str] - email str
- groups
Sequence[User
Saas Group Args]
- account
Admin Boolean - csp
Roles List<String> - email String
- groups List<Property Map>
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. User Saas Login> - Multiaccount bool
- Password
Reset bool - Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- Confirmed bool
- Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Logins
[]User
Saas Login - Multiaccount bool
- Password
Reset bool - Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- confirmed Boolean
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- logins
List<User
Saas Login> - multiaccount Boolean
- password
Reset Boolean - send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id String
- confirmed boolean
- created string
- id string
- The provider-assigned unique ID for this managed resource.
- logins
User
Saas Login[] - multiaccount boolean
- password
Reset boolean - send
Announcements boolean - send
New booleanPlugins - send
New booleanRisks - send
Scan booleanResults - user
Id string
- confirmed bool
- created str
- id str
- The provider-assigned unique ID for this managed resource.
- logins
Sequence[User
Saas Login] - multiaccount bool
- password_
reset bool - send_
announcements bool - send_
new_ boolplugins - send_
new_ boolrisks - send_
scan_ boolresults - user_
id str
- confirmed Boolean
- created String
- id String
- The provider-assigned unique ID for this managed resource.
- logins List<Property Map>
- multiaccount Boolean
- password
Reset Boolean - send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id 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.
- Account
Admin bool - Confirmed bool
- Created string
- Csp
Roles List<string> - Email string
- Groups
List<Pulumiverse.
Aquasec. Inputs. User Saas Group> - Logins
List<Pulumiverse.
Aquasec. Inputs. User Saas Login> - Multiaccount bool
- Password
Reset bool - Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- Account
Admin bool - Confirmed bool
- Created string
- Csp
Roles []string - Email string
- Groups
[]User
Saas Group Args - Logins
[]User
Saas Login Args - Multiaccount bool
- Password
Reset bool - Send
Announcements bool - Send
New boolPlugins - Send
New boolRisks - Send
Scan boolResults - User
Id string
- account
Admin Boolean - confirmed Boolean
- created String
- csp
Roles List<String> - email String
- groups
List<User
Saas Group> - logins
List<User
Saas Login> - multiaccount Boolean
- password
Reset Boolean - send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id String
- account
Admin boolean - confirmed boolean
- created string
- csp
Roles string[] - email string
- groups
User
Saas Group[] - logins
User
Saas Login[] - multiaccount boolean
- password
Reset boolean - send
Announcements boolean - send
New booleanPlugins - send
New booleanRisks - send
Scan booleanResults - user
Id string
- account_
admin bool - confirmed bool
- created str
- csp_
roles Sequence[str] - email str
- groups
Sequence[User
Saas Group Args] - logins
Sequence[User
Saas Login Args] - multiaccount bool
- password_
reset bool - send_
announcements bool - send_
new_ boolplugins - send_
new_ boolrisks - send_
scan_ boolresults - user_
id str
- account
Admin Boolean - confirmed Boolean
- created String
- csp
Roles List<String> - email String
- groups List<Property Map>
- logins List<Property Map>
- multiaccount Boolean
- password
Reset Boolean - send
Announcements Boolean - send
New BooleanPlugins - send
New BooleanRisks - send
Scan BooleanResults - user
Id String
Supporting Types
UserSaasGroup, UserSaasGroupArgs
- Group
Admin bool - Name string
- Group
Admin bool - Name string
- group
Admin Boolean - name String
- group
Admin boolean - name string
- group_
admin bool - name str
- group
Admin Boolean - name String
UserSaasLogin, UserSaasLoginArgs
- created str
- id int
- ip_
address str - user_
id int
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.