# ManagedInstancesProviderProperty

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const managedInstancesProviderProperty: batch.CfnComputeEnvironment.ManagedInstancesProviderProperty = {
  infrastructureRoleArn: 'infrastructureRoleArn',
  instanceLaunchTemplate: {
    ec2InstanceProfileArn: 'ec2InstanceProfileArn',
    networkConfiguration: {
      securityGroups: ['securityGroups'],
      subnets: ['subnets'],
    },

    // the properties below are optional
    capacityOptionType: 'capacityOptionType',
    capacityReservations: {
      reservationGroupArn: 'reservationGroupArn',
      reservationPreference: 'reservationPreference',
    },
    fipsEnabled: false,
    instanceMetadataTagsPropagation: false,
    instanceRequirements: {
      allowedInstanceTypes: ['allowedInstanceTypes'],
    },
    localStorageConfiguration: {
      useLocalStorage: false,
    },
    monitoring: 'monitoring',
    storageConfiguration: {
      storageSizeGiB: 123,
    },
  },

  // the properties below are optional
  infrastructureOptimization: {
    scaleInAfter: 123,
  },
  propagateTags: 'propagateTags',
};
```

## Properties

- `infrastructureOptimization`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComputeEnvironment.InfrastructureOptimizationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnComputeEnvironment.InfrastructureOptimizationProperty.html)

- `infrastructureRoleArn`: string (required)

- `instanceLaunchTemplate`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComputeEnvironment.InstanceLaunchTemplateProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_batch.CfnComputeEnvironment.InstanceLaunchTemplateProperty.html) (required)

- `propagateTags`: string
