create_capacity_provider
async
¶
create_capacity_provider(
capacity_provider_name: CapacityProviderName,
vpc_config: CapacityProviderVpcConfig,
permissions_config: CapacityProviderPermissionsConfig,
*,
config_overrides: Optional[AsyncLambdaClientConfig] = None,
instance_requirements: Optional[InstanceRequirements] = None,
capacity_provider_scaling_config: Optional[CapacityProviderScalingConfig] = None,
kms_key_arn: Optional[KMSKeyArnNonEmpty] = None,
tags: Optional[Tags] = None,
propagate_tags: Optional[PropagateTags] = None,
telemetry_config: Optional[CapacityProviderTelemetryConfig] = None,
) -> CreateCapacityProviderResponse
Creates a capacity provider that manages compute resources for Lambda Event Functions
Parameters:
-
capacity_provider_name(CapacityProviderName) –The name of the capacity provider.
-
vpc_config(CapacityProviderVpcConfig) –The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.
-
permissions_config(CapacityProviderPermissionsConfig) –The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.
-
instance_requirements(Optional[InstanceRequirements], default:None) –The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.
-
capacity_provider_scaling_config(Optional[CapacityProviderScalingConfig], default:None) –The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.
-
kms_key_arn(Optional[KMSKeyArnNonEmpty], default:None) –The ARN of the KMS key used to encrypt data associated with the capacity provider.
-
tags(Optional[Tags], default:None) –A list of tags to associate with the capacity provider.
-
propagate_tags(Optional[PropagateTags], default:None) –The tag propagation configuration for the capacity provider. Specifies tags to apply to managed resources at launch.
-
telemetry_config(Optional[CapacityProviderTelemetryConfig], default:None) –The telemetry configuration for the capacity provider. Specifies logging settings for managed resources.
Raises:
-
CapacityProviderLimitExceededException–The maximum number of capacity providers for your account has been exceeded. For more information, see Lambda quotas
-
InvalidParameterValueException–One of the parameters in the request is not valid.
-
ResourceConflictException–The resource already exists, or another operation is in progress.
-
ServiceException–The Lambda service encountered an internal error.
-
TooManyRequestsException–The request throughput limit was exceeded. For more information, see Lambda quotas.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lambda/_services/async__lambda.py
1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 | |