1. Packages
  2. LBr Labs EKS
  3. API Docs
  4. IamServiceAccountRole
LBr Labs EKS v0.23.0 published on Saturday, Nov 16, 2024 by lbrlabs

lbrlabs-eks.IamServiceAccountRole

Explore with Pulumi AI

lbrlabs-eks logo
LBr Labs EKS v0.23.0 published on Saturday, Nov 16, 2024 by lbrlabs

    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:

    NamespaceName string
    The namespace to create the service account in.
    OidcProviderArn string
    The arn of the OIDC provider attached to your EKS cluster.
    OidcProviderUrl string
    The URL of the OIDC provider attached to your EKS cluster.
    ServiceAccountName string
    The name of the service account to bind to the role
    Tags Dictionary<string, string>
    Key-value map of tags to apply to the service account.
    NamespaceName string
    The namespace to create the service account in.
    OidcProviderArn string
    The arn of the OIDC provider attached to your EKS cluster.
    OidcProviderUrl string
    The URL of the OIDC provider attached to your EKS cluster.
    ServiceAccountName string
    The name of the service account to bind to the role
    Tags map[string]string
    Key-value map of tags to apply to the service account.
    namespaceName String
    The namespace to create the service account in.
    oidcProviderArn String
    The arn of the OIDC provider attached to your EKS cluster.
    oidcProviderUrl String
    The URL of the OIDC provider attached to your EKS cluster.
    serviceAccountName String
    The name of the service account to bind to the role
    tags Map<String,String>
    Key-value map of tags to apply to the service account.
    namespaceName string
    The namespace to create the service account in.
    oidcProviderArn string
    The arn of the OIDC provider attached to your EKS cluster.
    oidcProviderUrl string
    The URL of the OIDC provider attached to your EKS cluster.
    serviceAccountName string
    The name of the service account to bind to the role
    tags {[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_arn str
    The arn of the OIDC provider attached to your EKS cluster.
    oidc_provider_url str
    The URL of the OIDC provider attached to your EKS cluster.
    service_account_name str
    The name of the service account to bind to the role
    tags Mapping[str, str]
    Key-value map of tags to apply to the service account.
    namespaceName String
    The namespace to create the service account in.
    oidcProviderArn String
    The arn of the OIDC provider attached to your EKS cluster.
    oidcProviderUrl String
    The URL of the OIDC provider attached to your EKS cluster.
    serviceAccountName String
    The name of the service account to bind to the role
    tags 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 pulumiAwsiamRole
    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
    lbrlabs-eks logo
    LBr Labs EKS v0.23.0 published on Saturday, Nov 16, 2024 by lbrlabs