1. Packages
  2. LBr Labs EKS
  3. API Docs
  4. IamRoleMapping
LBr Labs EKS v0.21.0 published on Thursday, Jul 18, 2024 by lbrlabs

lbrlabs-eks.IamRoleMapping

Explore with Pulumi AI

lbrlabs-eks logo
LBr Labs EKS v0.21.0 published on Thursday, Jul 18, 2024 by lbrlabs

    Create IamRoleMapping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IamRoleMapping(name: string, args: IamRoleMappingArgs, opts?: CustomResourceOptions);
    @overload
    def IamRoleMapping(resource_name: str,
                       args: IamRoleMappingArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamRoleMapping(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       groups: Optional[Sequence[str]] = None,
                       role_arn: Optional[str] = None,
                       username: Optional[str] = None)
    func NewIamRoleMapping(ctx *Context, name string, args IamRoleMappingArgs, opts ...ResourceOption) (*IamRoleMapping, error)
    public IamRoleMapping(string name, IamRoleMappingArgs args, CustomResourceOptions? opts = null)
    public IamRoleMapping(String name, IamRoleMappingArgs args)
    public IamRoleMapping(String name, IamRoleMappingArgs args, CustomResourceOptions options)
    
    type: lbrlabs-eks:IamRoleMapping
    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 IamRoleMappingArgs
    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 IamRoleMappingArgs
    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 IamRoleMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamRoleMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamRoleMappingArgs
    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 iamRoleMappingResource = new Eks.IamRoleMapping("iamRoleMappingResource", new()
    {
        Groups = new[]
        {
            "string",
        },
        RoleArn = "string",
        Username = "string",
    });
    
    example, err := lbrlabseks.NewIamRoleMapping(ctx, "iamRoleMappingResource", &lbrlabseks.IamRoleMappingArgs{
    	Groups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RoleArn:  pulumi.String("string"),
    	Username: pulumi.String("string"),
    })
    
    var iamRoleMappingResource = new IamRoleMapping("iamRoleMappingResource", IamRoleMappingArgs.builder()
        .groups("string")
        .roleArn("string")
        .username("string")
        .build());
    
    iam_role_mapping_resource = lbrlabs_eks.IamRoleMapping("iamRoleMappingResource",
        groups=["string"],
        role_arn="string",
        username="string")
    
    const iamRoleMappingResource = new lbrlabs_eks.IamRoleMapping("iamRoleMappingResource", {
        groups: ["string"],
        roleArn: "string",
        username: "string",
    });
    
    type: lbrlabs-eks:IamRoleMapping
    properties:
        groups:
            - string
        roleArn: string
        username: string
    

    IamRoleMapping 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 IamRoleMapping resource accepts the following input properties:

    Groups List<string>
    An array of groups to map the IAM role to.
    RoleArn string
    The arn of the role to map to a Kubernetes group.
    Username string
    The username to assign to the rolemapping.
    Groups []string
    An array of groups to map the IAM role to.
    RoleArn string
    The arn of the role to map to a Kubernetes group.
    Username string
    The username to assign to the rolemapping.
    groups List<String>
    An array of groups to map the IAM role to.
    roleArn String
    The arn of the role to map to a Kubernetes group.
    username String
    The username to assign to the rolemapping.
    groups string[]
    An array of groups to map the IAM role to.
    roleArn string
    The arn of the role to map to a Kubernetes group.
    username string
    The username to assign to the rolemapping.
    groups Sequence[str]
    An array of groups to map the IAM role to.
    role_arn str
    The arn of the role to map to a Kubernetes group.
    username str
    The username to assign to the rolemapping.
    groups List<String>
    An array of groups to map the IAM role to.
    roleArn String
    The arn of the role to map to a Kubernetes group.
    username String
    The username to assign to the rolemapping.

    Outputs

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

    Package Details

    Repository
    lbrlabs-eks lbrlabs/pulumi-lbrlabs-eks
    License
    lbrlabs-eks logo
    LBr Labs EKS v0.21.0 published on Thursday, Jul 18, 2024 by lbrlabs