aquasec.RoleMappingSaas
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumiverse/aquasec";
const rolesMappingSaasRoleMappingSaas = new aquasec.RoleMappingSaas("rolesMappingSaasRoleMappingSaas", {
samlGroups: [
"group1",
"group2",
],
cspRole: "Administrator",
});
export const rolesMappingSaas = rolesMappingSaasRoleMappingSaas;
import pulumi
import pulumiverse_aquasec as aquasec
roles_mapping_saas_role_mapping_saas = aquasec.RoleMappingSaas("rolesMappingSaasRoleMappingSaas",
saml_groups=[
"group1",
"group2",
],
csp_role="Administrator")
pulumi.export("rolesMappingSaas", roles_mapping_saas_role_mapping_saas)
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 {
rolesMappingSaasRoleMappingSaas, err := aquasec.NewRoleMappingSaas(ctx, "rolesMappingSaasRoleMappingSaas", &aquasec.RoleMappingSaasArgs{
SamlGroups: pulumi.StringArray{
pulumi.String("group1"),
pulumi.String("group2"),
},
CspRole: pulumi.String("Administrator"),
})
if err != nil {
return err
}
ctx.Export("rolesMappingSaas", rolesMappingSaasRoleMappingSaas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumiverse.Aquasec;
return await Deployment.RunAsync(() =>
{
var rolesMappingSaasRoleMappingSaas = new Aquasec.RoleMappingSaas("rolesMappingSaasRoleMappingSaas", new()
{
SamlGroups = new[]
{
"group1",
"group2",
},
CspRole = "Administrator",
});
return new Dictionary<string, object?>
{
["rolesMappingSaas"] = rolesMappingSaasRoleMappingSaas,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.RoleMappingSaas;
import com.pulumi.aquasec.RoleMappingSaasArgs;
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 rolesMappingSaasRoleMappingSaas = new RoleMappingSaas("rolesMappingSaasRoleMappingSaas", RoleMappingSaasArgs.builder()
.samlGroups(
"group1",
"group2")
.cspRole("Administrator")
.build());
ctx.export("rolesMappingSaas", rolesMappingSaasRoleMappingSaas);
}
}
resources:
rolesMappingSaasRoleMappingSaas:
type: aquasec:RoleMappingSaas
properties:
samlGroups:
- group1
- group2
cspRole: Administrator
outputs:
rolesMappingSaas: ${rolesMappingSaasRoleMappingSaas}
Create RoleMappingSaas Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoleMappingSaas(name: string, args: RoleMappingSaasArgs, opts?: CustomResourceOptions);
@overload
def RoleMappingSaas(resource_name: str,
args: RoleMappingSaasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RoleMappingSaas(resource_name: str,
opts: Optional[ResourceOptions] = None,
csp_role: Optional[str] = None,
saml_groups: Optional[Sequence[str]] = None)
func NewRoleMappingSaas(ctx *Context, name string, args RoleMappingSaasArgs, opts ...ResourceOption) (*RoleMappingSaas, error)
public RoleMappingSaas(string name, RoleMappingSaasArgs args, CustomResourceOptions? opts = null)
public RoleMappingSaas(String name, RoleMappingSaasArgs args)
public RoleMappingSaas(String name, RoleMappingSaasArgs args, CustomResourceOptions options)
type: aquasec:RoleMappingSaas
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 RoleMappingSaasArgs
- 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 RoleMappingSaasArgs
- 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 RoleMappingSaasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleMappingSaasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoleMappingSaasArgs
- 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 roleMappingSaasResource = new Aquasec.RoleMappingSaas("roleMappingSaasResource", new()
{
CspRole = "string",
SamlGroups = new[]
{
"string",
},
});
example, err := aquasec.NewRoleMappingSaas(ctx, "roleMappingSaasResource", &aquasec.RoleMappingSaasArgs{
CspRole: pulumi.String("string"),
SamlGroups: pulumi.StringArray{
pulumi.String("string"),
},
})
var roleMappingSaasResource = new RoleMappingSaas("roleMappingSaasResource", RoleMappingSaasArgs.builder()
.cspRole("string")
.samlGroups("string")
.build());
role_mapping_saas_resource = aquasec.RoleMappingSaas("roleMappingSaasResource",
csp_role="string",
saml_groups=["string"])
const roleMappingSaasResource = new aquasec.RoleMappingSaas("roleMappingSaasResource", {
cspRole: "string",
samlGroups: ["string"],
});
type: aquasec:RoleMappingSaas
properties:
cspRole: string
samlGroups:
- string
RoleMappingSaas 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 RoleMappingSaas resource accepts the following input properties:
- Csp
Role string - Saml
Groups List<string>
- Csp
Role string - Saml
Groups []string
- csp
Role String - saml
Groups List<String>
- csp
Role string - saml
Groups string[]
- csp_
role str - saml_
groups Sequence[str]
- csp
Role String - saml
Groups List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the RoleMappingSaas resource produces the following output properties:
- Account
Id int - Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Mapping intId
- Account
Id int - Created string
- Id string
- The provider-assigned unique ID for this managed resource.
- Role
Mapping intId
- account
Id Integer - created String
- id String
- The provider-assigned unique ID for this managed resource.
- role
Mapping IntegerId
- account
Id number - created string
- id string
- The provider-assigned unique ID for this managed resource.
- role
Mapping numberId
- account_
id int - created str
- id str
- The provider-assigned unique ID for this managed resource.
- role_
mapping_ intid
- account
Id Number - created String
- id String
- The provider-assigned unique ID for this managed resource.
- role
Mapping NumberId
Look up Existing RoleMappingSaas Resource
Get an existing RoleMappingSaas 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?: RoleMappingSaasState, opts?: CustomResourceOptions): RoleMappingSaas
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[int] = None,
created: Optional[str] = None,
csp_role: Optional[str] = None,
role_mapping_id: Optional[int] = None,
saml_groups: Optional[Sequence[str]] = None) -> RoleMappingSaas
func GetRoleMappingSaas(ctx *Context, name string, id IDInput, state *RoleMappingSaasState, opts ...ResourceOption) (*RoleMappingSaas, error)
public static RoleMappingSaas Get(string name, Input<string> id, RoleMappingSaasState? state, CustomResourceOptions? opts = null)
public static RoleMappingSaas get(String name, Output<String> id, RoleMappingSaasState 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
Id int - Created string
- Csp
Role string - Role
Mapping intId - Saml
Groups List<string>
- Account
Id int - Created string
- Csp
Role string - Role
Mapping intId - Saml
Groups []string
- account
Id Integer - created String
- csp
Role String - role
Mapping IntegerId - saml
Groups List<String>
- account
Id number - created string
- csp
Role string - role
Mapping numberId - saml
Groups string[]
- account_
id int - created str
- csp_
role str - role_
mapping_ intid - saml_
groups Sequence[str]
- account
Id Number - created String
- csp
Role String - role
Mapping NumberId - saml
Groups List<String>
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aquasec
Terraform Provider.