1. Packages
  2. LBr Labs EKS
  3. API Docs
  4. IamRoleMapping
LBr Labs EKS v1.3.0 published on Monday, Mar 24, 2025 by lbrlabs

lbrlabs-eks.IamRoleMapping

Explore with Pulumi AI

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?: ComponentResourceOptions);
@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, ComponentResourceOptions? opts = null)
public IamRoleMapping(String name, IamRoleMappingArgs args)
public IamRoleMapping(String name, IamRoleMappingArgs args, ComponentResourceOptions options)
type: lbrlabs-eks:IamRoleMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IamRoleMappingArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. IamRoleMappingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IamRoleMappingArgs
The arguments to resource properties.
opts ComponentResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamRoleMappingArgs
The arguments to resource properties.
options ComponentResourceOptions
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",
});
Copy
example, err := lbrlabseks.NewIamRoleMapping(ctx, "iamRoleMappingResource", &lbrlabseks.IamRoleMappingArgs{
	Groups: pulumi.StringArray{
		pulumi.String("string"),
	},
	RoleArn:  pulumi.String("string"),
	Username: pulumi.String("string"),
})
Copy
var iamRoleMappingResource = new IamRoleMapping("iamRoleMappingResource", IamRoleMappingArgs.builder()
    .groups("string")
    .roleArn("string")
    .username("string")
    .build());
Copy
iam_role_mapping_resource = lbrlabs_eks.IamRoleMapping("iamRoleMappingResource",
    groups=["string"],
    role_arn="string",
    username="string")
Copy
const iamRoleMappingResource = new lbrlabs_eks.IamRoleMapping("iamRoleMappingResource", {
    groups: ["string"],
    roleArn: "string",
    username: "string",
});
Copy
type: lbrlabs-eks:IamRoleMapping
properties:
    groups:
        - string
    roleArn: string
    username: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IamRoleMapping resource accepts the following input properties:

Groups This property is required. List<string>
An array of groups to map the IAM role to.
RoleArn This property is required. string
The arn of the role to map to a Kubernetes group.
Username This property is required. string
The username to assign to the rolemapping.
Groups This property is required. []string
An array of groups to map the IAM role to.
RoleArn This property is required. string
The arn of the role to map to a Kubernetes group.
Username This property is required. string
The username to assign to the rolemapping.
groups This property is required. List<String>
An array of groups to map the IAM role to.
roleArn This property is required. String
The arn of the role to map to a Kubernetes group.
username This property is required. String
The username to assign to the rolemapping.
groups This property is required. string[]
An array of groups to map the IAM role to.
roleArn This property is required. string
The arn of the role to map to a Kubernetes group.
username This property is required. string
The username to assign to the rolemapping.
groups This property is required. Sequence[str]
An array of groups to map the IAM role to.
role_arn This property is required. str
The arn of the role to map to a Kubernetes group.
username This property is required. str
The username to assign to the rolemapping.
groups This property is required. List<String>
An array of groups to map the IAM role to.
roleArn This property is required. String
The arn of the role to map to a Kubernetes group.
username This property is required. 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