LBr Labs EKS v1.3.0 published on Monday, Mar 24, 2025 by lbrlabs
lbrlabs-eks.AttachedFargateProfile
Explore with Pulumi AI
Create AttachedFargateProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AttachedFargateProfile(name: string, args: AttachedFargateProfileArgs, opts?: ComponentResourceOptions);@overload
def AttachedFargateProfile(resource_name: str,
                           args: AttachedFargateProfileArgs,
                           opts: Optional[ResourceOptions] = None)
@overload
def AttachedFargateProfile(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           cluster_name: Optional[str] = None,
                           selectors: Optional[Sequence[pulumi_aws.eks.FargateProfileSelectorArgs]] = None,
                           subnet_ids: Optional[Sequence[str]] = None,
                           tags: Optional[Mapping[str, str]] = None)func NewAttachedFargateProfile(ctx *Context, name string, args AttachedFargateProfileArgs, opts ...ResourceOption) (*AttachedFargateProfile, error)public AttachedFargateProfile(string name, AttachedFargateProfileArgs args, ComponentResourceOptions? opts = null)
public AttachedFargateProfile(String name, AttachedFargateProfileArgs args)
public AttachedFargateProfile(String name, AttachedFargateProfileArgs args, ComponentResourceOptions options)
type: lbrlabs-eks:AttachedFargateProfile
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 AttachedFargateProfileArgs
- 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 AttachedFargateProfileArgs
- 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 AttachedFargateProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AttachedFargateProfileArgs
- The arguments to resource properties.
- opts ComponentResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AttachedFargateProfileArgs
- 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 attachedFargateProfileResource = new Eks.AttachedFargateProfile("attachedFargateProfileResource", new()
{
    ClusterName = "string",
    Selectors = new[]
    {
        new Aws.Eks.Inputs.FargateProfileSelectorArgs
        {
            Namespace = "string",
            Labels = 
            {
                { "string", "string" },
            },
        },
    },
    SubnetIds = new[]
    {
        "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := lbrlabseks.NewAttachedFargateProfile(ctx, "attachedFargateProfileResource", &lbrlabseks.AttachedFargateProfileArgs{
	ClusterName: pulumi.String("string"),
	Selectors: eks.FargateProfileSelectorArray{
		&eks.FargateProfileSelectorArgs{
			Namespace: pulumi.String("string"),
			Labels: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
		},
	},
	SubnetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var attachedFargateProfileResource = new AttachedFargateProfile("attachedFargateProfileResource", AttachedFargateProfileArgs.builder()
    .clusterName("string")
    .selectors(FargateProfileSelectorArgs.builder()
        .namespace("string")
        .labels(Map.of("string", "string"))
        .build())
    .subnetIds("string")
    .tags(Map.of("string", "string"))
    .build());
attached_fargate_profile_resource = lbrlabs_eks.AttachedFargateProfile("attachedFargateProfileResource",
    cluster_name="string",
    selectors=[{
        "namespace": "string",
        "labels": {
            "string": "string",
        },
    }],
    subnet_ids=["string"],
    tags={
        "string": "string",
    })
const attachedFargateProfileResource = new lbrlabs_eks.AttachedFargateProfile("attachedFargateProfileResource", {
    clusterName: "string",
    selectors: [{
        namespace: "string",
        labels: {
            string: "string",
        },
    }],
    subnetIds: ["string"],
    tags: {
        string: "string",
    },
});
type: lbrlabs-eks:AttachedFargateProfile
properties:
    clusterName: string
    selectors:
        - labels:
            string: string
          namespace: string
    subnetIds:
        - string
    tags:
        string: string
AttachedFargateProfile 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 AttachedFargateProfile resource accepts the following input properties:
- ClusterName string
- The name of the cluster to assign the fargate profile to.
- Selectors
List<Pulumi.Aws. Eks. Inputs. Fargate Profile Selector> 
- SubnetIds List<string>
- The subnet IDs to use for the fargate profile.
- Dictionary<string, string>
- Key-value map for tags to apply to Fargate Profile.
- ClusterName string
- The name of the cluster to assign the fargate profile to.
- Selectors
FargateProfile Selector Args 
- SubnetIds []string
- The subnet IDs to use for the fargate profile.
- map[string]string
- Key-value map for tags to apply to Fargate Profile.
- clusterName String
- The name of the cluster to assign the fargate profile to.
- selectors
List<FargateProfile Selector> 
- subnetIds List<String>
- The subnet IDs to use for the fargate profile.
- Map<String,String>
- Key-value map for tags to apply to Fargate Profile.
- clusterName string
- The name of the cluster to assign the fargate profile to.
- selectors
pulumiAwstypesinputeks Fargate Profile Selector[] 
- subnetIds string[]
- The subnet IDs to use for the fargate profile.
- {[key: string]: string}
- Key-value map for tags to apply to Fargate Profile.
- cluster_name str
- The name of the cluster to assign the fargate profile to.
- selectors
Sequence[pulumi_aws.eks. Fargate Profile Selector Args] 
- subnet_ids Sequence[str]
- The subnet IDs to use for the fargate profile.
- Mapping[str, str]
- Key-value map for tags to apply to Fargate Profile.
- clusterName String
- The name of the cluster to assign the fargate profile to.
- selectors List<Property Map>
- subnetIds List<String>
- The subnet IDs to use for the fargate profile.
- Map<String>
- Key-value map for tags to apply to Fargate Profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the AttachedFargateProfile resource produces the following output properties:
- Profile
Pulumi.Aws. Eks. Fargate Profile 
- This type is defined in the AWS Classic package.
- Role
Pulumi.Aws. Iam. Role 
- This type is defined in the AWS Classic package.
- Profile
FargateProfile 
- This type is defined in the AWS Classic package.
- Role Role
- This type is defined in the AWS Classic package.
- profile
FargateProfile 
- This type is defined in the AWS Classic package.
- role Role
- This type is defined in the AWS Classic package.
- profile
pulumiAwseks Fargate Profile 
- This type is defined in the AWS Classic package.
- role
pulumiAwsiam Role 
- This type is defined in the AWS Classic package.
- profile
pulumi_aws.eks. Fargate Profile 
- This type is defined in the AWS Classic package.
- role
pulumi_aws.iam. Role 
- This type is defined in the AWS Classic package.
- profile
aws:eks:FargateProfile 
- 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
