1. Packages
  2. Aquasec
  3. API Docs
  4. getRolesMapping
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

aquasec.getRolesMapping

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aquasec:index/getRolesMapping:getRolesMapping
      arguments:
        # arguments dictionary

    getRolesMapping Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ldaps []GetRolesMappingLdap
    LDAP Authentication
    Oauth2s []GetRolesMappingOauth2
    Oauth2 Authentication
    Openids []GetRolesMappingOpenid
    OpenId Authentication
    Samls []GetRolesMappingSaml
    SAML Authentication
    id String
    The provider-assigned unique ID for this managed resource.
    ldaps List<GetRolesMappingLdap>
    LDAP Authentication
    oauth2s List<GetRolesMappingOauth2>
    Oauth2 Authentication
    openids List<GetRolesMappingOpenid>
    OpenId Authentication
    samls List<GetRolesMappingSaml>
    SAML Authentication
    id string
    The provider-assigned unique ID for this managed resource.
    ldaps GetRolesMappingLdap[]
    LDAP Authentication
    oauth2s GetRolesMappingOauth2[]
    Oauth2 Authentication
    openids GetRolesMappingOpenid[]
    OpenId Authentication
    samls GetRolesMappingSaml[]
    SAML Authentication
    id str
    The provider-assigned unique ID for this managed resource.
    ldaps Sequence[GetRolesMappingLdap]
    LDAP Authentication
    oauth2s Sequence[GetRolesMappingOauth2]
    Oauth2 Authentication
    openids Sequence[GetRolesMappingOpenid]
    OpenId Authentication
    samls Sequence[GetRolesMappingSaml]
    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 aquasec Terraform Provider.
    aquasec logo
    Aquasec v0.8.29 published on Monday, Jul 22, 2024 by Pulumiverse