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)
// 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
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
[]Get
Roles Mapping Ldap - LDAP Authentication
- Oauth2s
[]Get
Roles Mapping Oauth2 - Oauth2 Authentication
- Openids
[]Get
Roles Mapping Openid - OpenId Authentication
- Samls
[]Get
Roles Mapping Saml - SAML Authentication
- id String
- The provider-assigned unique ID for this managed resource.
- ldaps
List<Get
Roles Mapping Ldap> - LDAP Authentication
- oauth2s
List<Get
Roles Mapping Oauth2> - Oauth2 Authentication
- openids
List<Get
Roles Mapping Openid> - OpenId Authentication
- samls
List<Get
Roles Mapping Saml> - SAML Authentication
- id string
- The provider-assigned unique ID for this managed resource.
- ldaps
Get
Roles Mapping Ldap[] - LDAP Authentication
- oauth2s
Get
Roles Mapping Oauth2[] - Oauth2 Authentication
- openids
Get
Roles Mapping Openid[] - OpenId Authentication
- samls
Get
Roles Mapping Saml[] - SAML Authentication
- id str
- The provider-assigned unique ID for this managed resource.
- ldaps
Sequence[Get
Roles Mapping Ldap] - LDAP Authentication
- oauth2s
Sequence[Get
Roles Mapping Oauth2] - Oauth2 Authentication
- openids
Sequence[Get
Roles Mapping Openid] - OpenId Authentication
- samls
Sequence[Get
Roles 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
- Role
Mapping Dictionary<string, string> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- Role
Mapping map[string]string - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping Map<String,String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping {[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
- role
Mapping Map<String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingOauth2
- Role
Mapping Dictionary<string, string> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- Role
Mapping map[string]string - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping Map<String,String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping {[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
- role
Mapping Map<String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingOpenid
- Role
Mapping Dictionary<string, string> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- Role
Mapping map[string]string - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping Map<String,String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping {[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
- role
Mapping Map<String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
GetRolesMappingSaml
- Role
Mapping Dictionary<string, string> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- Role
Mapping map[string]string - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping Map<String,String> - Role Mapping is used to define the IdP role that the user will assume in Aqua
- role
Mapping {[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
- role
Mapping 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.