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

aquasec.getRolesMappingSaas

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 rolesMappingSaas = aquasec.getRolesMappingSaas({});
    export const roleMapping = rolesMappingSaas.then(rolesMappingSaas => rolesMappingSaas.rolesMappings);
    
    import pulumi
    import pulumi_aquasec as aquasec
    
    roles_mapping_saas = aquasec.get_roles_mapping_saas()
    pulumi.export("roleMapping", roles_mapping_saas.roles_mappings)
    
    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 {
    		rolesMappingSaas, err := aquasec.GetRolesMappingSaas(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("roleMapping", rolesMappingSaas.RolesMappings)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aquasec = Pulumi.Aquasec;
    
    return await Deployment.RunAsync(() => 
    {
        var rolesMappingSaas = Aquasec.GetRolesMappingSaas.Invoke();
    
        return new Dictionary<string, object?>
        {
            ["roleMapping"] = rolesMappingSaas.Apply(getRolesMappingSaasResult => getRolesMappingSaasResult.RolesMappings),
        };
    });
    
    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 rolesMappingSaas = AquasecFunctions.getRolesMappingSaas();
    
            ctx.export("roleMapping", rolesMappingSaas.applyValue(getRolesMappingSaasResult -> getRolesMappingSaasResult.rolesMappings()));
        }
    }
    
    variables:
      rolesMappingSaas:
        fn::invoke:
          Function: aquasec:getRolesMappingSaas
          Arguments: {}
    outputs:
      roleMapping: ${rolesMappingSaas.rolesMappings}
    

    Using getRolesMappingSaas

    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 getRolesMappingSaas(opts?: InvokeOptions): Promise<GetRolesMappingSaasResult>
    function getRolesMappingSaasOutput(opts?: InvokeOptions): Output<GetRolesMappingSaasResult>
    def get_roles_mapping_saas(opts: Optional[InvokeOptions] = None) -> GetRolesMappingSaasResult
    def get_roles_mapping_saas_output(opts: Optional[InvokeOptions] = None) -> Output[GetRolesMappingSaasResult]
    func GetRolesMappingSaas(ctx *Context, opts ...InvokeOption) (*GetRolesMappingSaasResult, error)
    func GetRolesMappingSaasOutput(ctx *Context, opts ...InvokeOption) GetRolesMappingSaasResultOutput

    > Note: This function is named GetRolesMappingSaas in the Go SDK.

    public static class GetRolesMappingSaas 
    {
        public static Task<GetRolesMappingSaasResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetRolesMappingSaasResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRolesMappingSaasResult> getRolesMappingSaas(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aquasec:index/getRolesMappingSaas:getRolesMappingSaas
      arguments:
        # arguments dictionary

    getRolesMappingSaas Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RolesMappings List<Pulumiverse.Aquasec.Outputs.GetRolesMappingSaasRolesMapping>
    Id string
    The provider-assigned unique ID for this managed resource.
    RolesMappings []GetRolesMappingSaasRolesMapping
    id String
    The provider-assigned unique ID for this managed resource.
    rolesMappings List<GetRolesMappingSaasRolesMapping>
    id string
    The provider-assigned unique ID for this managed resource.
    rolesMappings GetRolesMappingSaasRolesMapping[]
    id str
    The provider-assigned unique ID for this managed resource.
    roles_mappings Sequence[GetRolesMappingSaasRolesMapping]
    id String
    The provider-assigned unique ID for this managed resource.
    rolesMappings List<Property Map>

    Supporting Types

    GetRolesMappingSaasRolesMapping

    AccountId int
    Created string
    CspRole string
    Id int
    SamlGroups List<string>
    AccountId int
    Created string
    CspRole string
    Id int
    SamlGroups []string
    accountId Integer
    created String
    cspRole String
    id Integer
    samlGroups List<String>
    accountId number
    created string
    cspRole string
    id number
    samlGroups string[]
    account_id int
    created str
    csp_role str
    id int
    saml_groups Sequence[str]
    accountId Number
    created String
    cspRole String
    id Number
    samlGroups List<String>

    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