LBr Labs EKS v0.23.0 published on Saturday, Nov 16, 2024 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 string
- The unique name of the resource.
- args IamRoleMappingArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- 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 ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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
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:
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