1. Packages
  2. Aquasec
  3. API Docs
  4. RoleMappingSaas
Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse

aquasec.RoleMappingSaas

Explore with Pulumi AI

aquasec logo
Aquasec v0.8.27 published on Monday, Jan 29, 2024 by Pulumiverse

    Example Usage

    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 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
    	})
    }
    
    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);
        }
    }
    
    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)
    
    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;
    
    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

    The RoleMappingSaas resource accepts the following input properties:

    CspRole string
    SamlGroups List<string>
    CspRole string
    SamlGroups []string
    cspRole String
    samlGroups List<String>
    cspRole string
    samlGroups string[]
    csp_role str
    saml_groups Sequence[str]
    cspRole String
    samlGroups List<String>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RoleMappingSaas resource produces the following output properties:

    AccountId int
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleMappingId int
    AccountId int
    Created string
    Id string
    The provider-assigned unique ID for this managed resource.
    RoleMappingId int
    accountId Integer
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    roleMappingId Integer
    accountId number
    created string
    id string
    The provider-assigned unique ID for this managed resource.
    roleMappingId number
    account_id int
    created str
    id str
    The provider-assigned unique ID for this managed resource.
    role_mapping_id int
    accountId Number
    created String
    id String
    The provider-assigned unique ID for this managed resource.
    roleMappingId Number

    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.
    The following state arguments are supported:
    AccountId int
    Created string
    CspRole string
    RoleMappingId int
    SamlGroups List<string>
    AccountId int
    Created string
    CspRole string
    RoleMappingId int
    SamlGroups []string
    accountId Integer
    created String
    cspRole String
    roleMappingId Integer
    samlGroups List<String>
    accountId number
    created string
    cspRole string
    roleMappingId number
    samlGroups string[]
    accountId Number
    created String
    cspRole String
    roleMappingId 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.27 published on Monday, Jan 29, 2024 by Pulumiverse