Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse
aquasec.getRolesMapping
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aquasec from "@pulumi/aquasec";
const rolesMapping = aquasec.getRolesMapping({});
export const roleMappingAll = rolesMapping;
export const roleMappingSaml = rolesMapping.then(rolesMapping => rolesMapping.samls);
import pulumi
import pulumi_aquasec as aquasec
roles_mapping = aquasec.get_roles_mapping()
pulumi.export("roleMappingAll", roles_mapping)
pulumi.export("roleMappingSaml", roles_mapping.samls)
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 {
		rolesMapping, err := aquasec.GetRolesMapping(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("roleMappingAll", rolesMapping)
		ctx.Export("roleMappingSaml", rolesMapping.Samls)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aquasec = Pulumi.Aquasec;
return await Deployment.RunAsync(() => 
{
    var rolesMapping = Aquasec.GetRolesMapping.Invoke();
    return new Dictionary<string, object?>
    {
        ["roleMappingAll"] = rolesMapping,
        ["roleMappingSaml"] = rolesMapping.Apply(getRolesMappingResult => getRolesMappingResult.Samls),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aquasec.AquasecFunctions;
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) {
        final var rolesMapping = AquasecFunctions.getRolesMapping();
        ctx.export("roleMappingAll", rolesMapping.applyValue(getRolesMappingResult -> getRolesMappingResult));
        ctx.export("roleMappingSaml", rolesMapping.applyValue(getRolesMappingResult -> getRolesMappingResult.samls()));
    }
}
variables:
  rolesMapping:
    fn::invoke:
      Function: aquasec:getRolesMapping
      Arguments: {}
outputs:
  roleMappingAll: ${rolesMapping}
  roleMappingSaml: ${rolesMapping.samls}
Using getRolesMapping
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRolesMapping(opts?: InvokeOptions): Promise<GetRolesMappingResult>
function getRolesMappingOutput(opts?: InvokeOptions): Output<GetRolesMappingResult>def get_roles_mapping(opts: Optional[InvokeOptions] = None) -> GetRolesMappingResult
def get_roles_mapping_output(opts: Optional[InvokeOptions] = None) -> Output[GetRolesMappingResult]func GetRolesMapping(ctx *Context, opts ...InvokeOption) (*GetRolesMappingResult, error)
func GetRolesMappingOutput(ctx *Context, opts ...InvokeOption) GetRolesMappingResultOutput> Note: This function is named GetRolesMapping in the Go SDK.
public static class GetRolesMapping 
{
    public static Task<GetRolesMappingResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetRolesMappingResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetRolesMappingResult> getRolesMapping(InvokeOptions options)
public static Output<GetRolesMappingResult> getRolesMapping(InvokeOptions options)
fn::invoke:
  function: aquasec:index/getRolesMapping:getRolesMapping
  arguments:
    # arguments dictionarygetRolesMapping Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ldaps
List<Pulumiverse.Aquasec. Outputs. Get Roles Mapping Ldap> 
- LDAP Authentication
- Oauth2s
List<Pulumiverse.Aquasec. Outputs. Get Roles Mapping Oauth2> 
- Oauth2 Authentication
- Openids
List<Pulumiverse.Aquasec. Outputs. Get Roles Mapping Openid> 
- OpenId Authentication
- Samls
List<Pulumiverse.Aquasec. Outputs. Get Roles Mapping Saml> 
- SAML Authentication
- Id string
- The provider-assigned unique ID for this managed resource.
- Ldaps
[]GetRoles Mapping Ldap 
- LDAP Authentication
- Oauth2s
[]GetRoles Mapping Oauth2 
- Oauth2 Authentication
- Openids
[]GetRoles Mapping Openid 
- OpenId Authentication
- Samls
[]GetRoles Mapping Saml 
- SAML Authentication
- id String
- The provider-assigned unique ID for this managed resource.
- ldaps
List<GetRoles Mapping Ldap> 
- LDAP Authentication
- oauth2s
List<GetRoles Mapping Oauth2> 
- Oauth2 Authentication
- openids
List<GetRoles Mapping Openid> 
- OpenId Authentication
- samls
List<GetRoles Mapping Saml> 
- SAML Authentication
- id string
- The provider-assigned unique ID for this managed resource.
- ldaps
GetRoles Mapping Ldap[] 
- LDAP Authentication
- oauth2s
GetRoles Mapping Oauth2[] 
- Oauth2 Authentication
- openids
GetRoles Mapping Openid[] 
- OpenId Authentication
- samls
GetRoles Mapping Saml[] 
- SAML Authentication
- id str
- The provider-assigned unique ID for this managed resource.
- ldaps
Sequence[GetRoles Mapping Ldap] 
- LDAP Authentication
- oauth2s
Sequence[GetRoles Mapping Oauth2] 
- Oauth2 Authentication
- openids
Sequence[GetRoles Mapping Openid] 
- OpenId Authentication
- samls
Sequence[GetRoles Mapping Saml] 
- SAML Authentication
- id String
- The provider-assigned unique ID for this managed resource.
- ldaps List<Property Map>
- LDAP Authentication
- oauth2s List<Property Map>
- Oauth2 Authentication
- openids List<Property Map>
- OpenId Authentication
- samls List<Property Map>
- SAML Authentication
Supporting Types
GetRolesMappingLdap   
- RoleMapping Dictionary<string, string>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- RoleMapping map[string]string
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String,String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping {[key: string]: string}
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- role_mapping Mapping[str, str]
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingOauth2   
- RoleMapping Dictionary<string, string>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- RoleMapping map[string]string
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String,String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping {[key: string]: string}
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- role_mapping Mapping[str, str]
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingOpenid   
- RoleMapping Dictionary<string, string>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- RoleMapping map[string]string
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String,String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping {[key: string]: string}
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- role_mapping Mapping[str, str]
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingSaml   
- RoleMapping Dictionary<string, string>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- RoleMapping map[string]string
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String,String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping {[key: string]: string}
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- role_mapping Mapping[str, str]
- Role Mapping is used to define the IdP role that the user will assume in Aqua
- roleMapping Map<String>
- Role Mapping is used to define the IdP role that the user will assume in Aqua
Package Details
- Repository
- aquasec pulumiverse/pulumi-aquasec
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the aquasecTerraform Provider.