LBr Labs EKS v0.23.0 published on Saturday, Nov 16, 2024 by lbrlabs
lbrlabs-eks.IamServiceAccountRole
Explore with Pulumi AI
Create IamServiceAccountRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamServiceAccountRole(name: string, args: IamServiceAccountRoleArgs, opts?: ComponentResourceOptions);
@overload
def IamServiceAccountRole(resource_name: str,
args: IamServiceAccountRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IamServiceAccountRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_name: Optional[str] = None,
oidc_provider_arn: Optional[str] = None,
oidc_provider_url: Optional[str] = None,
service_account_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewIamServiceAccountRole(ctx *Context, name string, args IamServiceAccountRoleArgs, opts ...ResourceOption) (*IamServiceAccountRole, error)
public IamServiceAccountRole(string name, IamServiceAccountRoleArgs args, ComponentResourceOptions? opts = null)
public IamServiceAccountRole(String name, IamServiceAccountRoleArgs args)
public IamServiceAccountRole(String name, IamServiceAccountRoleArgs args, ComponentResourceOptions options)
type: lbrlabs-eks:IamServiceAccountRole
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 IamServiceAccountRoleArgs
- 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 IamServiceAccountRoleArgs
- 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 IamServiceAccountRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamServiceAccountRoleArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamServiceAccountRoleArgs
- 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 iamServiceAccountRoleResource = new Eks.IamServiceAccountRole("iamServiceAccountRoleResource", new()
{
NamespaceName = "string",
OidcProviderArn = "string",
OidcProviderUrl = "string",
ServiceAccountName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := lbrlabseks.NewIamServiceAccountRole(ctx, "iamServiceAccountRoleResource", &lbrlabseks.IamServiceAccountRoleArgs{
NamespaceName: pulumi.String("string"),
OidcProviderArn: pulumi.String("string"),
OidcProviderUrl: pulumi.String("string"),
ServiceAccountName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var iamServiceAccountRoleResource = new IamServiceAccountRole("iamServiceAccountRoleResource", IamServiceAccountRoleArgs.builder()
.namespaceName("string")
.oidcProviderArn("string")
.oidcProviderUrl("string")
.serviceAccountName("string")
.tags(Map.of("string", "string"))
.build());
iam_service_account_role_resource = lbrlabs_eks.IamServiceAccountRole("iamServiceAccountRoleResource",
namespace_name="string",
oidc_provider_arn="string",
oidc_provider_url="string",
service_account_name="string",
tags={
"string": "string",
})
const iamServiceAccountRoleResource = new lbrlabs_eks.IamServiceAccountRole("iamServiceAccountRoleResource", {
namespaceName: "string",
oidcProviderArn: "string",
oidcProviderUrl: "string",
serviceAccountName: "string",
tags: {
string: "string",
},
});
type: lbrlabs-eks:IamServiceAccountRole
properties:
namespaceName: string
oidcProviderArn: string
oidcProviderUrl: string
serviceAccountName: string
tags:
string: string
IamServiceAccountRole 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 IamServiceAccountRole resource accepts the following input properties:
- Namespace
Name string - The namespace to create the service account in.
- Oidc
Provider stringArn - The arn of the OIDC provider attached to your EKS cluster.
- Oidc
Provider stringUrl - The URL of the OIDC provider attached to your EKS cluster.
- Service
Account stringName - The name of the service account to bind to the role
- Dictionary<string, string>
- Key-value map of tags to apply to the service account.
- Namespace
Name string - The namespace to create the service account in.
- Oidc
Provider stringArn - The arn of the OIDC provider attached to your EKS cluster.
- Oidc
Provider stringUrl - The URL of the OIDC provider attached to your EKS cluster.
- Service
Account stringName - The name of the service account to bind to the role
- map[string]string
- Key-value map of tags to apply to the service account.
- namespace
Name String - The namespace to create the service account in.
- oidc
Provider StringArn - The arn of the OIDC provider attached to your EKS cluster.
- oidc
Provider StringUrl - The URL of the OIDC provider attached to your EKS cluster.
- service
Account StringName - The name of the service account to bind to the role
- Map<String,String>
- Key-value map of tags to apply to the service account.
- namespace
Name string - The namespace to create the service account in.
- oidc
Provider stringArn - The arn of the OIDC provider attached to your EKS cluster.
- oidc
Provider stringUrl - The URL of the OIDC provider attached to your EKS cluster.
- service
Account stringName - The name of the service account to bind to the role
- {[key: string]: string}
- Key-value map of tags to apply to the service account.
- namespace_
name str - The namespace to create the service account in.
- oidc_
provider_ strarn - The arn of the OIDC provider attached to your EKS cluster.
- oidc_
provider_ strurl - The URL of the OIDC provider attached to your EKS cluster.
- service_
account_ strname - The name of the service account to bind to the role
- Mapping[str, str]
- Key-value map of tags to apply to the service account.
- namespace
Name String - The namespace to create the service account in.
- oidc
Provider StringArn - The arn of the OIDC provider attached to your EKS cluster.
- oidc
Provider StringUrl - The URL of the OIDC provider attached to your EKS cluster.
- service
Account StringName - The name of the service account to bind to the role
- Map<String>
- Key-value map of tags to apply to the service account.
Outputs
All input properties are implicitly available as output properties. Additionally, the IamServiceAccountRole resource produces the following output properties:
- Role
Pulumi.
Aws. Iam. Role - This type is defined in the AWS Classic package.
- Role Role
- This type is defined in the AWS Classic package.
- role Role
- This type is defined in the AWS Classic package.
- role
pulumi
Awsiam Role - This type is defined in the AWS Classic package.
- role
pulumi_
aws.iam. Role - This type is defined in the AWS Classic package.
- role aws:iam:Role
- This type is defined in the AWS Classic package.
Package Details
- Repository
- lbrlabs-eks lbrlabs/pulumi-lbrlabs-eks
- License