AWS SDK for PHP 3.x
  • Namespace
  • Class
Did this page help you? SUBMIT FEEDBACK!

Namespaces

  • Aws
    • AccessAnalyzer
      • Exception
    • Account
      • Exception
    • Acm
      • Exception
    • ACMPCA
      • Exception
    • AlexaForBusiness
      • Exception
    • Amplify
      • Exception
    • AmplifyBackend
      • Exception
    • AmplifyUIBuilder
      • Exception
    • Api
      • ErrorParser
      • Parser
        • Exception
      • Serializer
    • ApiGateway
      • Exception
    • ApiGatewayManagementApi
      • Exception
    • ApiGatewayV2
      • Exception
    • AppConfig
      • Exception
    • AppConfigData
      • Exception
    • Appflow
      • Exception
    • AppIntegrationsService
      • Exception
    • ApplicationAutoScaling
      • Exception
    • ApplicationCostProfiler
      • Exception
    • ApplicationDiscoveryService
      • Exception
    • ApplicationInsights
      • Exception
    • AppMesh
      • Exception
    • AppRegistry
      • Exception
    • AppRunner
      • Exception
    • Appstream
      • Exception
    • AppSync
      • Exception
    • ARCZonalShift
      • Exception
    • Arn
      • Exception
    • Athena
      • Exception
    • AuditManager
      • Exception
    • AugmentedAIRuntime
      • Exception
    • AutoScaling
      • Exception
    • AutoScalingPlans
      • Exception
    • Backup
      • Exception
    • BackupGateway
      • Exception
    • BackupStorage
      • Exception
    • Batch
      • Exception
    • BillingConductor
      • Exception
    • Braket
      • Exception
    • Budgets
      • Exception
    • Chime
      • Exception
    • ChimeSDKIdentity
      • Exception
    • ChimeSDKMediaPipelines
      • Exception
    • ChimeSDKMeetings
      • Exception
    • ChimeSDKMessaging
      • Exception
    • ChimeSDKVoice
      • Exception
    • CleanRooms
      • Exception
    • ClientSideMonitoring
      • Exception
    • Cloud9
      • Exception
    • CloudControlApi
      • Exception
    • CloudDirectory
      • Exception
    • CloudFormation
      • Exception
    • CloudFront
      • Exception
    • CloudHsm
      • Exception
    • CloudHSMV2
      • Exception
    • CloudSearch
      • Exception
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudTrailData
      • Exception
    • CloudWatch
      • Exception
    • CloudWatchEvents
      • Exception
    • CloudWatchEvidently
      • Exception
    • CloudWatchLogs
      • Exception
    • CloudWatchRUM
      • Exception
    • CodeArtifact
      • Exception
    • CodeBuild
      • Exception
    • CodeCatalyst
      • Exception
    • CodeCommit
      • Exception
    • CodeDeploy
      • Exception
    • CodeGuruProfiler
      • Exception
    • CodeGuruReviewer
      • Exception
    • CodePipeline
      • Exception
    • CodeStar
      • Exception
    • CodeStarconnections
      • Exception
    • CodeStarNotifications
      • Exception
    • CognitoIdentity
      • Exception
    • CognitoIdentityProvider
      • Exception
    • CognitoSync
      • Exception
    • Comprehend
      • Exception
    • ComprehendMedical
      • Exception
    • ComputeOptimizer
      • Exception
    • ConfigService
      • Exception
    • Connect
      • Exception
    • ConnectCampaignService
      • Exception
    • ConnectCases
      • Exception
    • ConnectContactLens
      • Exception
    • ConnectParticipant
      • Exception
    • ConnectWisdomService
      • Exception
    • ControlTower
      • Exception
    • CostandUsageReportService
      • Exception
    • CostExplorer
      • Exception
    • Credentials
    • Crypto
      • Cipher
      • Polyfill
    • CustomerProfiles
      • Exception
    • DatabaseMigrationService
      • Exception
    • DataExchange
      • Exception
    • DataPipeline
      • Exception
    • DataSync
      • Exception
    • DAX
      • Exception
    • DefaultsMode
      • Exception
    • Detective
      • Exception
    • DeviceFarm
      • Exception
    • DevOpsGuru
      • Exception
    • DirectConnect
      • Exception
    • DirectoryService
      • Exception
    • DLM
      • Exception
    • DocDB
      • Exception
    • DocDBElastic
      • Exception
    • drs
      • Exception
    • DynamoDb
      • Exception
    • DynamoDbStreams
      • Exception
    • EBS
      • Exception
    • Ec2
      • Exception
    • EC2InstanceConnect
      • Exception
    • Ecr
      • Exception
    • ECRPublic
      • Exception
    • Ecs
      • Exception
    • Efs
      • Exception
    • EKS
      • Exception
    • ElastiCache
      • Exception
    • ElasticBeanstalk
      • Exception
    • ElasticInference
      • Exception
    • ElasticLoadBalancing
      • Exception
    • ElasticLoadBalancingV2
      • Exception
    • ElasticsearchService
      • Exception
    • ElasticTranscoder
      • Exception
    • Emr
      • Exception
    • EMRContainers
      • Exception
    • EMRServerless
      • Exception
    • Endpoint
      • UseDualstackEndpoint
        • Exception
      • UseFipsEndpoint
        • Exception
    • EndpointDiscovery
      • Exception
    • EndpointV2
      • Rule
      • Ruleset
    • EventBridge
      • Exception
    • Exception
    • finspace
      • Exception
    • FinSpaceData
      • Exception
    • Firehose
      • Exception
    • FIS
      • Exception
    • FMS
      • Exception
    • ForecastQueryService
      • Exception
    • ForecastService
      • Exception
    • FraudDetector
      • Exception
    • FSx
      • Exception
    • GameLift
      • Exception
    • GameSparks
      • Exception
    • Glacier
      • Exception
    • GlobalAccelerator
      • Exception
    • Glue
      • Exception
    • GlueDataBrew
      • Exception
    • Greengrass
      • Exception
    • GreengrassV2
      • Exception
    • GroundStation
      • Exception
    • GuardDuty
      • Exception
    • Handler
      • GuzzleV5
      • GuzzleV6
    • Health
      • Exception
    • HealthLake
      • Exception
    • Honeycode
      • Exception
    • Iam
      • Exception
    • IdentityStore
      • Exception
    • imagebuilder
      • Exception
    • ImportExport
      • Exception
    • Inspector
      • Exception
    • Inspector2
      • Exception
    • InternetMonitor
      • Exception
    • Iot
      • Exception
    • IoT1ClickDevicesService
      • Exception
    • IoT1ClickProjects
      • Exception
    • IoTAnalytics
      • Exception
    • IotDataPlane
      • Exception
    • IoTDeviceAdvisor
      • Exception
    • IoTEvents
      • Exception
    • IoTEventsData
      • Exception
    • IoTFleetHub
      • Exception
    • IoTFleetWise
      • Exception
    • IoTJobsDataPlane
      • Exception
    • IoTRoboRunner
      • Exception
    • IoTSecureTunneling
      • Exception
    • IoTSiteWise
      • Exception
    • IoTThingsGraph
      • Exception
    • IoTTwinMaker
      • Exception
    • IoTWireless
      • Exception
    • IVS
      • Exception
    • ivschat
      • Exception
    • Kafka
      • Exception
    • KafkaConnect
      • Exception
    • kendra
      • Exception
    • KendraRanking
      • Exception
    • Keyspaces
      • Exception
    • Kinesis
      • Exception
    • KinesisAnalytics
      • Exception
    • KinesisAnalyticsV2
      • Exception
    • KinesisVideo
      • Exception
    • KinesisVideoArchivedMedia
      • Exception
    • KinesisVideoMedia
      • Exception
    • KinesisVideoSignalingChannels
      • Exception
    • KinesisVideoWebRTCStorage
      • Exception
    • Kms
      • Exception
    • LakeFormation
      • Exception
    • Lambda
      • Exception
    • LexModelBuildingService
      • Exception
    • LexModelsV2
      • Exception
    • LexRuntimeService
      • Exception
    • LexRuntimeV2
      • Exception
    • LicenseManager
      • Exception
    • LicenseManagerLinuxSubscriptions
      • Exception
    • LicenseManagerUserSubscriptions
      • Exception
    • Lightsail
      • Exception
    • LocationService
      • Exception
    • LookoutEquipment
      • Exception
    • LookoutforVision
      • Exception
    • LookoutMetrics
      • Exception
    • MachineLearning
      • Exception
    • Macie
      • Exception
    • Macie2
      • Exception
    • MainframeModernization
      • Exception
    • ManagedBlockchain
      • Exception
    • ManagedGrafana
      • Exception
    • MarketplaceCatalog
      • Exception
    • MarketplaceCommerceAnalytics
      • Exception
    • MarketplaceEntitlementService
      • Exception
    • MarketplaceMetering
      • Exception
    • MediaConnect
      • Exception
    • MediaConvert
      • Exception
    • MediaLive
      • Exception
    • MediaPackage
      • Exception
    • MediaPackageVod
      • Exception
    • MediaStore
      • Exception
    • MediaStoreData
      • Exception
    • MediaTailor
      • Exception
    • MemoryDB
      • Exception
    • mgn
      • Exception
    • MigrationHub
      • Exception
    • MigrationHubConfig
      • Exception
    • MigrationHubOrchestrator
      • Exception
    • MigrationHubRefactorSpaces
      • Exception
    • MigrationHubStrategyRecommendations
      • Exception
    • Mobile
      • Exception
    • MQ
      • Exception
    • MTurk
      • Exception
    • Multipart
    • MWAA
      • Exception
    • Neptune
      • Exception
    • NetworkFirewall
      • Exception
    • NetworkManager
      • Exception
    • NimbleStudio
      • Exception
    • OAM
      • Exception
    • Omics
      • Exception
    • OpenSearchServerless
      • Exception
    • OpenSearchService
      • Exception
    • OpsWorks
      • Exception
    • OpsWorksCM
      • Exception
    • Organizations
      • Exception
    • Outposts
      • Exception
    • Panorama
      • Exception
    • Personalize
      • Exception
    • PersonalizeEvents
      • Exception
    • PersonalizeRuntime
      • Exception
    • PI
      • Exception
    • Pinpoint
      • Exception
    • PinpointEmail
      • Exception
    • PinpointSMSVoice
      • Exception
    • PinpointSMSVoiceV2
      • Exception
    • Pipes
      • Exception
    • Polly
      • Exception
    • Pricing
      • Exception
    • PrivateNetworks
      • Exception
    • PrometheusService
      • Exception
    • Proton
      • Exception
    • QLDB
      • Exception
    • QLDBSession
      • Exception
    • QuickSight
      • Exception
    • RAM
      • Exception
    • Rds
      • Exception
    • RDSDataService
      • Exception
    • RecycleBin
      • Exception
    • Redshift
      • Exception
    • RedshiftDataAPIService
      • Exception
    • RedshiftServerless
      • Exception
    • Rekognition
      • Exception
    • ResilienceHub
      • Exception
    • ResourceExplorer2
      • Exception
    • ResourceGroups
      • Exception
    • ResourceGroupsTaggingAPI
      • Exception
    • Retry
      • Exception
    • RoboMaker
      • Exception
    • RolesAnywhere
      • Exception
    • Route53
      • Exception
    • Route53Domains
      • Exception
    • Route53RecoveryCluster
      • Exception
    • Route53RecoveryControlConfig
      • Exception
    • Route53RecoveryReadiness
      • Exception
    • Route53Resolver
      • Exception
    • S3
      • Crypto
      • Exception
      • RegionalEndpoint
        • Exception
      • UseArnRegion
        • Exception
    • S3Control
      • Exception
    • S3Outposts
      • Exception
    • SageMaker
      • Exception
    • SagemakerEdgeManager
      • Exception
    • SageMakerFeatureStoreRuntime
      • Exception
    • SageMakerGeospatial
      • Exception
    • SageMakerMetrics
      • Exception
    • SageMakerRuntime
      • Exception
    • SavingsPlans
      • Exception
    • Scheduler
      • Exception
    • Schemas
      • Exception
    • Script
      • Composer
    • SecretsManager
      • Exception
    • SecurityHub
      • Exception
    • SecurityLake
      • Exception
    • ServerlessApplicationRepository
      • Exception
    • ServiceCatalog
      • Exception
    • ServiceDiscovery
      • Exception
    • ServiceQuotas
      • Exception
    • Ses
      • Exception
    • SesV2
      • Exception
    • Sfn
      • Exception
    • Shield
      • Exception
    • Signature
    • signer
      • Exception
    • SimSpaceWeaver
      • Exception
    • Sms
      • Exception
    • SnowBall
      • Exception
    • SnowDeviceManagement
      • Exception
    • Sns
      • Exception
    • Sqs
      • Exception
    • Ssm
      • Exception
    • SSMContacts
      • Exception
    • SSMIncidents
      • Exception
    • SsmSap
      • Exception
    • SSO
      • Exception
    • SSOAdmin
      • Exception
    • SSOOIDC
      • Exception
    • StorageGateway
      • Exception
    • Sts
      • Exception
      • RegionalEndpoints
        • Exception
    • Support
      • Exception
    • SupportApp
      • Exception
    • Swf
      • Exception
    • Synthetics
      • Exception
    • Textract
      • Exception
    • TimestreamQuery
      • Exception
    • TimestreamWrite
      • Exception
    • Tnb
      • Exception
    • Token
    • TranscribeService
      • Exception
    • Transfer
      • Exception
    • Translate
      • Exception
    • VoiceID
      • Exception
    • Waf
      • Exception
    • WafRegional
      • Exception
    • WAFV2
      • Exception
    • WellArchitected
      • Exception
    • WorkDocs
      • Exception
    • WorkLink
      • Exception
    • WorkMail
      • Exception
    • WorkMailMessageFlow
      • Exception
    • WorkSpaces
      • Exception
    • WorkSpacesWeb
      • Exception
    • XRay
      • Exception
  • GuzzleHttp
    • Promise
    • Psr7
  • Psr
    • Http
      • Message

Classes

  • Aws\AbstractConfigurationProvider
  • Aws\AccessAnalyzer\AccessAnalyzerClient
  • Aws\Account\AccountClient
  • Aws\Acm\AcmClient
  • Aws\ACMPCA\ACMPCAClient
  • Aws\AlexaForBusiness\AlexaForBusinessClient
  • Aws\Amplify\AmplifyClient
  • Aws\AmplifyBackend\AmplifyBackendClient
  • Aws\AmplifyUIBuilder\AmplifyUIBuilderClient
  • Aws\Api\AbstractModel
  • Aws\Api\ApiProvider
  • Aws\Api\DateTimeResult
  • Aws\Api\DocModel
  • Aws\Api\ErrorParser\AbstractErrorParser
  • Aws\Api\ErrorParser\JsonRpcErrorParser
  • Aws\Api\ErrorParser\RestJsonErrorParser
  • Aws\Api\ErrorParser\XmlErrorParser
  • Aws\Api\ListShape
  • Aws\Api\MapShape
  • Aws\Api\Operation
  • Aws\Api\Parser\Crc32ValidatingParser
  • Aws\Api\Parser\DecodingEventStreamIterator
  • Aws\Api\Parser\EventParsingIterator
  • Aws\Api\Parser\JsonParser
  • Aws\Api\Parser\JsonRpcParser
  • Aws\Api\Parser\QueryParser
  • Aws\Api\Parser\RestJsonParser
  • Aws\Api\Parser\RestXmlParser
  • Aws\Api\Parser\XmlParser
  • Aws\Api\Serializer\XmlBody
  • Aws\Api\Service
  • Aws\Api\Shape
  • Aws\Api\ShapeMap
  • Aws\Api\StructureShape
  • Aws\Api\TimestampShape
  • Aws\Api\Validator
  • Aws\ApiGateway\ApiGatewayClient
  • Aws\ApiGatewayManagementApi\ApiGatewayManagementApiClient
  • Aws\ApiGatewayV2\ApiGatewayV2Client
  • Aws\AppConfig\AppConfigClient
  • Aws\AppConfigData\AppConfigDataClient
  • Aws\Appflow\AppflowClient
  • Aws\AppIntegrationsService\AppIntegrationsServiceClient
  • Aws\ApplicationAutoScaling\ApplicationAutoScalingClient
  • Aws\ApplicationCostProfiler\ApplicationCostProfilerClient
  • Aws\ApplicationDiscoveryService\ApplicationDiscoveryServiceClient
  • Aws\ApplicationInsights\ApplicationInsightsClient
  • Aws\AppMesh\AppMeshClient
  • Aws\AppRegistry\AppRegistryClient
  • Aws\AppRunner\AppRunnerClient
  • Aws\Appstream\AppstreamClient
  • Aws\AppSync\AppSyncClient
  • Aws\ARCZonalShift\ARCZonalShiftClient
  • Aws\Athena\AthenaClient
  • Aws\AuditManager\AuditManagerClient
  • Aws\AugmentedAIRuntime\AugmentedAIRuntimeClient
  • Aws\AutoScaling\AutoScalingClient
  • Aws\AutoScalingPlans\AutoScalingPlansClient
  • Aws\AwsClient
  • Aws\Backup\BackupClient
  • Aws\BackupGateway\BackupGatewayClient
  • Aws\BackupStorage\BackupStorageClient
  • Aws\Batch\BatchClient
  • Aws\BillingConductor\BillingConductorClient
  • Aws\Braket\BraketClient
  • Aws\Budgets\BudgetsClient
  • Aws\Chime\ChimeClient
  • Aws\ChimeSDKIdentity\ChimeSDKIdentityClient
  • Aws\ChimeSDKMediaPipelines\ChimeSDKMediaPipelinesClient
  • Aws\ChimeSDKMeetings\ChimeSDKMeetingsClient
  • Aws\ChimeSDKMessaging\ChimeSDKMessagingClient
  • Aws\ChimeSDKVoice\ChimeSDKVoiceClient
  • Aws\CleanRooms\CleanRoomsClient
  • Aws\ClientResolver
  • Aws\ClientSideMonitoring\Configuration
  • Aws\ClientSideMonitoring\ConfigurationProvider
  • Aws\Cloud9\Cloud9Client
  • Aws\CloudControlApi\CloudControlApiClient
  • Aws\CloudDirectory\CloudDirectoryClient
  • Aws\CloudFormation\CloudFormationClient
  • Aws\CloudFront\CloudFrontClient
  • Aws\CloudFront\CookieSigner
  • Aws\CloudFront\UrlSigner
  • Aws\CloudHsm\CloudHsmClient
  • Aws\CloudHSMV2\CloudHSMV2Client
  • Aws\CloudSearch\CloudSearchClient
  • Aws\CloudSearchDomain\CloudSearchDomainClient
  • Aws\CloudTrail\CloudTrailClient
  • Aws\CloudTrail\LogFileIterator
  • Aws\CloudTrail\LogFileReader
  • Aws\CloudTrail\LogRecordIterator
  • Aws\CloudTrailData\CloudTrailDataClient
  • Aws\CloudWatch\CloudWatchClient
  • Aws\CloudWatchEvents\CloudWatchEventsClient
  • Aws\CloudWatchEvidently\CloudWatchEvidentlyClient
  • Aws\CloudWatchLogs\CloudWatchLogsClient
  • Aws\CloudWatchRUM\CloudWatchRUMClient
  • Aws\CodeArtifact\CodeArtifactClient
  • Aws\CodeBuild\CodeBuildClient
  • Aws\CodeCatalyst\CodeCatalystClient
  • Aws\CodeCommit\CodeCommitClient
  • Aws\CodeDeploy\CodeDeployClient
  • Aws\CodeGuruProfiler\CodeGuruProfilerClient
  • Aws\CodeGuruReviewer\CodeGuruReviewerClient
  • Aws\CodePipeline\CodePipelineClient
  • Aws\CodeStar\CodeStarClient
  • Aws\CodeStarconnections\CodeStarconnectionsClient
  • Aws\CodeStarNotifications\CodeStarNotificationsClient
  • Aws\CognitoIdentity\CognitoIdentityClient
  • Aws\CognitoIdentity\CognitoIdentityProvider
  • Aws\CognitoIdentityProvider\CognitoIdentityProviderClient
  • Aws\CognitoSync\CognitoSyncClient
  • Aws\Command
  • Aws\CommandPool
  • Aws\Comprehend\ComprehendClient
  • Aws\ComprehendMedical\ComprehendMedicalClient
  • Aws\ComputeOptimizer\ComputeOptimizerClient
  • Aws\ConfigService\ConfigServiceClient
  • Aws\Connect\ConnectClient
  • Aws\ConnectCampaignService\ConnectCampaignServiceClient
  • Aws\ConnectCases\ConnectCasesClient
  • Aws\ConnectContactLens\ConnectContactLensClient
  • Aws\ConnectParticipant\ConnectParticipantClient
  • Aws\ConnectWisdomService\ConnectWisdomServiceClient
  • Aws\ControlTower\ControlTowerClient
  • Aws\CostandUsageReportService\CostandUsageReportServiceClient
  • Aws\CostExplorer\CostExplorerClient
  • Aws\Credentials\AssumeRoleCredentialProvider
  • Aws\Credentials\AssumeRoleWithWebIdentityCredentialProvider
  • Aws\Credentials\CredentialProvider
  • Aws\Credentials\Credentials
  • Aws\Credentials\EcsCredentialProvider
  • Aws\Credentials\InstanceProfileProvider
  • Aws\Crypto\AesDecryptingStream
  • Aws\Crypto\AesEncryptingStream
  • Aws\Crypto\AesGcmDecryptingStream
  • Aws\Crypto\AesGcmEncryptingStream
  • Aws\Crypto\Cipher\Cbc
  • Aws\Crypto\KmsMaterialsProvider
  • Aws\Crypto\KmsMaterialsProviderV2
  • Aws\Crypto\MaterialsProvider
  • Aws\Crypto\MaterialsProviderV2
  • Aws\Crypto\Polyfill\AesGcm
  • Aws\Crypto\Polyfill\ByteArray
  • Aws\Crypto\Polyfill\Gmac
  • Aws\Crypto\Polyfill\Key
  • Aws\CustomerProfiles\CustomerProfilesClient
  • Aws\DatabaseMigrationService\DatabaseMigrationServiceClient
  • Aws\DataExchange\DataExchangeClient
  • Aws\DataPipeline\DataPipelineClient
  • Aws\DataSync\DataSyncClient
  • Aws\DAX\DAXClient
  • Aws\DefaultsMode\Configuration
  • Aws\DefaultsMode\ConfigurationProvider
  • Aws\Detective\DetectiveClient
  • Aws\DeviceFarm\DeviceFarmClient
  • Aws\DevOpsGuru\DevOpsGuruClient
  • Aws\DirectConnect\DirectConnectClient
  • Aws\DirectoryService\DirectoryServiceClient
  • Aws\DLM\DLMClient
  • Aws\DocDB\DocDBClient
  • Aws\DocDBElastic\DocDBElasticClient
  • Aws\DoctrineCacheAdapter
  • Aws\drs\drsClient
  • Aws\DynamoDb\BinaryValue
  • Aws\DynamoDb\DynamoDbClient
  • Aws\DynamoDb\LockingSessionConnection
  • Aws\DynamoDb\Marshaler
  • Aws\DynamoDb\NumberValue
  • Aws\DynamoDb\SessionHandler
  • Aws\DynamoDb\SetValue
  • Aws\DynamoDb\StandardSessionConnection
  • Aws\DynamoDb\WriteRequestBatch
  • Aws\DynamoDbStreams\DynamoDbStreamsClient
  • Aws\EBS\EBSClient
  • Aws\Ec2\Ec2Client
  • Aws\EC2InstanceConnect\EC2InstanceConnectClient
  • Aws\Ecr\EcrClient
  • Aws\ECRPublic\ECRPublicClient
  • Aws\Ecs\EcsClient
  • Aws\Efs\EfsClient
  • Aws\EKS\EKSClient
  • Aws\ElastiCache\ElastiCacheClient
  • Aws\ElasticBeanstalk\ElasticBeanstalkClient
  • Aws\ElasticInference\ElasticInferenceClient
  • Aws\ElasticLoadBalancing\ElasticLoadBalancingClient
  • Aws\ElasticLoadBalancingV2\ElasticLoadBalancingV2Client
  • Aws\ElasticsearchService\ElasticsearchServiceClient
  • Aws\ElasticTranscoder\ElasticTranscoderClient
  • Aws\Emr\EmrClient
  • Aws\EMRContainers\EMRContainersClient
  • Aws\EMRServerless\EMRServerlessClient
  • Aws\Endpoint\EndpointProvider
  • Aws\Endpoint\Partition
  • Aws\Endpoint\PartitionEndpointProvider
  • Aws\Endpoint\PatternEndpointProvider
  • Aws\Endpoint\UseDualstackEndpoint\Configuration
  • Aws\Endpoint\UseDualstackEndpoint\ConfigurationProvider
  • Aws\Endpoint\UseFipsEndpoint\Configuration
  • Aws\Endpoint\UseFipsEndpoint\ConfigurationProvider
  • Aws\EndpointDiscovery\Configuration
  • Aws\EndpointDiscovery\ConfigurationProvider
  • Aws\EndpointDiscovery\EndpointDiscoveryMiddleware
  • Aws\EndpointDiscovery\EndpointList
  • Aws\EndpointV2\EndpointDefinitionProvider
  • Aws\EndpointV2\EndpointProviderV2
  • Aws\EndpointV2\Rule\AbstractRule
  • Aws\EndpointV2\Rule\EndpointRule
  • Aws\EndpointV2\Rule\ErrorRule
  • Aws\EndpointV2\Rule\RuleCreator
  • Aws\EndpointV2\Rule\TreeRule
  • Aws\EndpointV2\Ruleset\Ruleset
  • Aws\EndpointV2\Ruleset\RulesetEndpoint
  • Aws\EndpointV2\Ruleset\RulesetParameter
  • Aws\EventBridge\EventBridgeClient
  • Aws\finspace\finspaceClient
  • Aws\FinSpaceData\FinSpaceDataClient
  • Aws\Firehose\FirehoseClient
  • Aws\FIS\FISClient
  • Aws\FMS\FMSClient
  • Aws\ForecastQueryService\ForecastQueryServiceClient
  • Aws\ForecastService\ForecastServiceClient
  • Aws\FraudDetector\FraudDetectorClient
  • Aws\FSx\FSxClient
  • Aws\GameLift\GameLiftClient
  • Aws\GameSparks\GameSparksClient
  • Aws\Glacier\GlacierClient
  • Aws\Glacier\MultipartUploader
  • Aws\Glacier\TreeHash
  • Aws\GlobalAccelerator\GlobalAcceleratorClient
  • Aws\Glue\GlueClient
  • Aws\GlueDataBrew\GlueDataBrewClient
  • Aws\Greengrass\GreengrassClient
  • Aws\GreengrassV2\GreengrassV2Client
  • Aws\GroundStation\GroundStationClient
  • Aws\GuardDuty\GuardDutyClient
  • Aws\Handler\GuzzleV5\GuzzleHandler
  • Aws\Handler\GuzzleV5\GuzzleStream
  • Aws\Handler\GuzzleV5\PsrStream
  • Aws\Handler\GuzzleV6\GuzzleHandler
  • Aws\HandlerList
  • Aws\HashingStream
  • Aws\Health\HealthClient
  • Aws\HealthLake\HealthLakeClient
  • Aws\History
  • Aws\Honeycode\HoneycodeClient
  • Aws\Iam\IamClient
  • Aws\IdempotencyTokenMiddleware
  • Aws\IdentityStore\IdentityStoreClient
  • Aws\imagebuilder\imagebuilderClient
  • Aws\ImportExport\ImportExportClient
  • Aws\Inspector2\Inspector2Client
  • Aws\Inspector\InspectorClient
  • Aws\InternetMonitor\InternetMonitorClient
  • Aws\IoT1ClickDevicesService\IoT1ClickDevicesServiceClient
  • Aws\IoT1ClickProjects\IoT1ClickProjectsClient
  • Aws\Iot\IotClient
  • Aws\IoTAnalytics\IoTAnalyticsClient
  • Aws\IotDataPlane\IotDataPlaneClient
  • Aws\IoTDeviceAdvisor\IoTDeviceAdvisorClient
  • Aws\IoTEvents\IoTEventsClient
  • Aws\IoTEventsData\IoTEventsDataClient
  • Aws\IoTFleetHub\IoTFleetHubClient
  • Aws\IoTFleetWise\IoTFleetWiseClient
  • Aws\IoTJobsDataPlane\IoTJobsDataPlaneClient
  • Aws\IoTRoboRunner\IoTRoboRunnerClient
  • Aws\IoTSecureTunneling\IoTSecureTunnelingClient
  • Aws\IoTSiteWise\IoTSiteWiseClient
  • Aws\IoTThingsGraph\IoTThingsGraphClient
  • Aws\IoTTwinMaker\IoTTwinMakerClient
  • Aws\IoTWireless\IoTWirelessClient
  • Aws\IVS\IVSClient
  • Aws\ivschat\ivschatClient
  • Aws\JsonCompiler
  • Aws\Kafka\KafkaClient
  • Aws\KafkaConnect\KafkaConnectClient
  • Aws\kendra\kendraClient
  • Aws\KendraRanking\KendraRankingClient
  • Aws\Keyspaces\KeyspacesClient
  • Aws\Kinesis\KinesisClient
  • Aws\KinesisAnalytics\KinesisAnalyticsClient
  • Aws\KinesisAnalyticsV2\KinesisAnalyticsV2Client
  • Aws\KinesisVideo\KinesisVideoClient
  • Aws\KinesisVideoArchivedMedia\KinesisVideoArchivedMediaClient
  • Aws\KinesisVideoMedia\KinesisVideoMediaClient
  • Aws\KinesisVideoSignalingChannels\KinesisVideoSignalingChannelsClient
  • Aws\KinesisVideoWebRTCStorage\KinesisVideoWebRTCStorageClient
  • Aws\Kms\KmsClient
  • Aws\LakeFormation\LakeFormationClient
  • Aws\Lambda\LambdaClient
  • Aws\LexModelBuildingService\LexModelBuildingServiceClient
  • Aws\LexModelsV2\LexModelsV2Client
  • Aws\LexRuntimeService\LexRuntimeServiceClient
  • Aws\LexRuntimeV2\LexRuntimeV2Client
  • Aws\LicenseManager\LicenseManagerClient
  • Aws\LicenseManagerLinuxSubscriptions\LicenseManagerLinuxSubscriptionsClient
  • Aws\LicenseManagerUserSubscriptions\LicenseManagerUserSubscriptionsClient
  • Aws\Lightsail\LightsailClient
  • Aws\LocationService\LocationServiceClient
  • Aws\LookoutEquipment\LookoutEquipmentClient
  • Aws\LookoutforVision\LookoutforVisionClient
  • Aws\LookoutMetrics\LookoutMetricsClient
  • Aws\LruArrayCache
  • Aws\MachineLearning\MachineLearningClient
  • Aws\Macie2\Macie2Client
  • Aws\Macie\MacieClient
  • Aws\MainframeModernization\MainframeModernizationClient
  • Aws\ManagedBlockchain\ManagedBlockchainClient
  • Aws\ManagedGrafana\ManagedGrafanaClient
  • Aws\MarketplaceCatalog\MarketplaceCatalogClient
  • Aws\MarketplaceCommerceAnalytics\MarketplaceCommerceAnalyticsClient
  • Aws\MarketplaceEntitlementService\MarketplaceEntitlementServiceClient
  • Aws\MarketplaceMetering\MarketplaceMeteringClient
  • Aws\MediaConnect\MediaConnectClient
  • Aws\MediaConvert\MediaConvertClient
  • Aws\MediaLive\MediaLiveClient
  • Aws\MediaPackage\MediaPackageClient
  • Aws\MediaPackageVod\MediaPackageVodClient
  • Aws\MediaStore\MediaStoreClient
  • Aws\MediaStoreData\MediaStoreDataClient
  • Aws\MediaTailor\MediaTailorClient
  • Aws\MemoryDB\MemoryDBClient
  • Aws\mgn\mgnClient
  • Aws\Middleware
  • Aws\MigrationHub\MigrationHubClient
  • Aws\MigrationHubConfig\MigrationHubConfigClient
  • Aws\MigrationHubOrchestrator\MigrationHubOrchestratorClient
  • Aws\MigrationHubRefactorSpaces\MigrationHubRefactorSpacesClient
  • Aws\MigrationHubStrategyRecommendations\MigrationHubStrategyRecommendationsClient
  • Aws\Mobile\MobileClient
  • Aws\MockHandler
  • Aws\MQ\MQClient
  • Aws\MTurk\MTurkClient
  • Aws\Multipart\UploadState
  • Aws\MultiRegionClient
  • Aws\MWAA\MWAAClient
  • Aws\Neptune\NeptuneClient
  • Aws\NetworkFirewall\NetworkFirewallClient
  • Aws\NetworkManager\NetworkManagerClient
  • Aws\NimbleStudio\NimbleStudioClient
  • Aws\OAM\OAMClient
  • Aws\Omics\OmicsClient
  • Aws\OpenSearchServerless\OpenSearchServerlessClient
  • Aws\OpenSearchService\OpenSearchServiceClient
  • Aws\OpsWorks\OpsWorksClient
  • Aws\OpsWorksCM\OpsWorksCMClient
  • Aws\Organizations\OrganizationsClient
  • Aws\Outposts\OutpostsClient
  • Aws\Panorama\PanoramaClient
  • Aws\Personalize\PersonalizeClient
  • Aws\PersonalizeEvents\PersonalizeEventsClient
  • Aws\PersonalizeRuntime\PersonalizeRuntimeClient
  • Aws\PhpHash
  • Aws\PI\PIClient
  • Aws\Pinpoint\PinpointClient
  • Aws\PinpointEmail\PinpointEmailClient
  • Aws\PinpointSMSVoice\PinpointSMSVoiceClient
  • Aws\PinpointSMSVoiceV2\PinpointSMSVoiceV2Client
  • Aws\Pipes\PipesClient
  • Aws\Polly\PollyClient
  • Aws\PresignUrlMiddleware
  • Aws\Pricing\PricingClient
  • Aws\PrivateNetworks\PrivateNetworksClient
  • Aws\PrometheusService\PrometheusServiceClient
  • Aws\Proton\ProtonClient
  • Aws\Psr16CacheAdapter
  • Aws\PsrCacheAdapter
  • Aws\QLDB\QLDBClient
  • Aws\QLDBSession\QLDBSessionClient
  • Aws\QuickSight\QuickSightClient
  • Aws\RAM\RAMClient
  • Aws\Rds\AuthTokenGenerator
  • Aws\Rds\RdsClient
  • Aws\RDSDataService\RDSDataServiceClient
  • Aws\RecycleBin\RecycleBinClient
  • Aws\Redshift\RedshiftClient
  • Aws\RedshiftDataAPIService\RedshiftDataAPIServiceClient
  • Aws\RedshiftServerless\RedshiftServerlessClient
  • Aws\Rekognition\RekognitionClient
  • Aws\ResilienceHub\ResilienceHubClient
  • Aws\ResourceExplorer2\ResourceExplorer2Client
  • Aws\ResourceGroups\ResourceGroupsClient
  • Aws\ResourceGroupsTaggingAPI\ResourceGroupsTaggingAPIClient
  • Aws\Result
  • Aws\ResultPaginator
  • Aws\Retry\Configuration
  • Aws\Retry\ConfigurationProvider
  • Aws\RoboMaker\RoboMakerClient
  • Aws\RolesAnywhere\RolesAnywhereClient
  • Aws\Route53\Route53Client
  • Aws\Route53Domains\Route53DomainsClient
  • Aws\Route53RecoveryCluster\Route53RecoveryClusterClient
  • Aws\Route53RecoveryControlConfig\Route53RecoveryControlConfigClient
  • Aws\Route53RecoveryReadiness\Route53RecoveryReadinessClient
  • Aws\Route53Resolver\Route53ResolverClient
  • Aws\S3\BatchDelete
  • Aws\S3\Crypto\HeadersMetadataStrategy
  • Aws\S3\Crypto\InstructionFileMetadataStrategy
  • Aws\S3\Crypto\S3EncryptionClient
  • Aws\S3\Crypto\S3EncryptionClientV2
  • Aws\S3\Crypto\S3EncryptionMultipartUploader
  • Aws\S3\Crypto\S3EncryptionMultipartUploaderV2
  • Aws\S3\GetBucketLocationParser
  • Aws\S3\MultipartUploader
  • Aws\S3\ObjectCopier
  • Aws\S3\ObjectUploader
  • Aws\S3\PostObject
  • Aws\S3\PostObjectV4
  • Aws\S3\RegionalEndpoint\Configuration
  • Aws\S3\RegionalEndpoint\ConfigurationProvider
  • Aws\S3\S3Client
  • Aws\S3\S3MultiRegionClient
  • Aws\S3\S3UriParser
  • Aws\S3\StreamWrapper
  • Aws\S3\Transfer
  • Aws\S3\UseArnRegion\Configuration
  • Aws\S3\UseArnRegion\ConfigurationProvider
  • Aws\S3\ValidateResponseChecksumParser
  • Aws\S3Control\S3ControlClient
  • Aws\S3Outposts\S3OutpostsClient
  • Aws\SageMaker\SageMakerClient
  • Aws\SagemakerEdgeManager\SagemakerEdgeManagerClient
  • Aws\SageMakerFeatureStoreRuntime\SageMakerFeatureStoreRuntimeClient
  • Aws\SageMakerGeospatial\SageMakerGeospatialClient
  • Aws\SageMakerMetrics\SageMakerMetricsClient
  • Aws\SageMakerRuntime\SageMakerRuntimeClient
  • Aws\SavingsPlans\SavingsPlansClient
  • Aws\Scheduler\SchedulerClient
  • Aws\Schemas\SchemasClient
  • Aws\Script\Composer\Composer
  • Aws\Sdk
  • Aws\SecretsManager\SecretsManagerClient
  • Aws\SecurityHub\SecurityHubClient
  • Aws\SecurityLake\SecurityLakeClient
  • Aws\ServerlessApplicationRepository\ServerlessApplicationRepositoryClient
  • Aws\ServiceCatalog\ServiceCatalogClient
  • Aws\ServiceDiscovery\ServiceDiscoveryClient
  • Aws\ServiceQuotas\ServiceQuotasClient
  • Aws\Ses\SesClient
  • Aws\SesV2\SesV2Client
  • Aws\Sfn\SfnClient
  • Aws\Shield\ShieldClient
  • Aws\Signature\AnonymousSignature
  • Aws\Signature\S3SignatureV4
  • Aws\Signature\SignatureProvider
  • Aws\Signature\SignatureV4
  • Aws\signer\signerClient
  • Aws\SimSpaceWeaver\SimSpaceWeaverClient
  • Aws\Sms\SmsClient
  • Aws\SnowBall\SnowBallClient
  • Aws\SnowDeviceManagement\SnowDeviceManagementClient
  • Aws\Sns\Message
  • Aws\Sns\MessageValidator
  • Aws\Sns\SnsClient
  • Aws\Sqs\SqsClient
  • Aws\Ssm\SsmClient
  • Aws\SSMContacts\SSMContactsClient
  • Aws\SSMIncidents\SSMIncidentsClient
  • Aws\SsmSap\SsmSapClient
  • Aws\SSO\SSOClient
  • Aws\SSOAdmin\SSOAdminClient
  • Aws\SSOOIDC\SSOOIDCClient
  • Aws\StorageGateway\StorageGatewayClient
  • Aws\Sts\RegionalEndpoints\Configuration
  • Aws\Sts\RegionalEndpoints\ConfigurationProvider
  • Aws\Sts\StsClient
  • Aws\Support\SupportClient
  • Aws\SupportApp\SupportAppClient
  • Aws\Swf\SwfClient
  • Aws\Synthetics\SyntheticsClient
  • Aws\Textract\TextractClient
  • Aws\TimestreamQuery\TimestreamQueryClient
  • Aws\TimestreamWrite\TimestreamWriteClient
  • Aws\Tnb\TnbClient
  • Aws\Token\BearerTokenAuthorization
  • Aws\Token\SsoToken
  • Aws\Token\SsoTokenProvider
  • Aws\Token\Token
  • Aws\Token\TokenProvider
  • Aws\TraceMiddleware
  • Aws\TranscribeService\TranscribeServiceClient
  • Aws\Transfer\TransferClient
  • Aws\Translate\TranslateClient
  • Aws\VoiceID\VoiceIDClient
  • Aws\Waf\WafClient
  • Aws\WafRegional\WafRegionalClient
  • Aws\WAFV2\WAFV2Client
  • Aws\Waiter
  • Aws\WellArchitected\WellArchitectedClient
  • Aws\WorkDocs\WorkDocsClient
  • Aws\WorkLink\WorkLinkClient
  • Aws\WorkMail\WorkMailClient
  • Aws\WorkMailMessageFlow\WorkMailMessageFlowClient
  • Aws\WorkSpaces\WorkSpacesClient
  • Aws\WorkSpacesWeb\WorkSpacesWebClient
  • Aws\WrappedHttpHandler
  • Aws\XRay\XRayClient

Interfaces

  • Aws\AwsClientInterface
  • Aws\CacheInterface
  • Aws\ClientSideMonitoring\ConfigurationInterface
  • Aws\CommandInterface
  • Aws\ConfigurationProviderInterface
  • Aws\Credentials\CredentialsInterface
  • Aws\Crypto\AesStreamInterface
  • Aws\Crypto\AesStreamInterfaceV2
  • Aws\Crypto\Cipher\CipherMethod
  • Aws\Crypto\MaterialsProviderInterface
  • Aws\Crypto\MaterialsProviderInterfaceV2
  • Aws\Crypto\MetadataStrategyInterface
  • Aws\DefaultsMode\ConfigurationInterface
  • Aws\DynamoDb\SessionConnectionInterface
  • Aws\Endpoint\PartitionInterface
  • Aws\Endpoint\UseDualstackEndpoint\ConfigurationInterface
  • Aws\Endpoint\UseFipsEndpoint\ConfigurationInterface
  • Aws\EndpointDiscovery\ConfigurationInterface
  • Aws\HashInterface
  • Aws\MonitoringEventsInterface
  • Aws\ResponseContainerInterface
  • Aws\ResultInterface
  • Aws\Retry\ConfigurationInterface
  • Aws\S3\RegionalEndpoint\ConfigurationInterface
  • Aws\S3\S3ClientInterface
  • Aws\S3\UseArnRegion\ConfigurationInterface
  • Aws\Signature\SignatureInterface
  • Aws\Sts\RegionalEndpoints\ConfigurationInterface
  • Aws\Token\RefreshableTokenProviderInterface
  • Aws\Token\TokenAuthorization
  • Aws\Token\TokenInterface

Traits

  • Aws\Api\ErrorParser\JsonParserTrait
  • Aws\Api\Parser\MetadataParserTrait
  • Aws\Api\Parser\PayloadParserTrait
  • Aws\AwsClientTrait
  • Aws\Crypto\Cipher\CipherBuilderTrait
  • Aws\Crypto\DecryptionTrait
  • Aws\Crypto\DecryptionTraitV2
  • Aws\Crypto\EncryptionTrait
  • Aws\Crypto\EncryptionTraitV2
  • Aws\Crypto\Polyfill\NeedsTrait
  • Aws\DynamoDb\SessionConnectionConfigTrait
  • Aws\HasDataTrait
  • Aws\HasMonitoringEventsTrait
  • Aws\Retry\RetryHelperTrait
  • Aws\S3\CalculatesChecksumTrait
  • Aws\S3\Crypto\CryptoParamsTrait
  • Aws\S3\Crypto\CryptoParamsTraitV2
  • Aws\S3\Crypto\UserAgentTrait
  • Aws\S3\MultipartUploadingTrait
  • Aws\S3\S3ClientTrait
  • Aws\Signature\SignatureTrait
  • Aws\Token\ParsesIniTrait

Exceptions

  • Aws\AccessAnalyzer\Exception\AccessAnalyzerException
  • Aws\Account\Exception\AccountException
  • Aws\Acm\Exception\AcmException
  • Aws\ACMPCA\Exception\ACMPCAException
  • Aws\AlexaForBusiness\Exception\AlexaForBusinessException
  • Aws\Amplify\Exception\AmplifyException
  • Aws\AmplifyBackend\Exception\AmplifyBackendException
  • Aws\AmplifyUIBuilder\Exception\AmplifyUIBuilderException
  • Aws\Api\Parser\Exception\ParserException
  • Aws\ApiGateway\Exception\ApiGatewayException
  • Aws\ApiGatewayManagementApi\Exception\ApiGatewayManagementApiException
  • Aws\ApiGatewayV2\Exception\ApiGatewayV2Exception
  • Aws\AppConfig\Exception\AppConfigException
  • Aws\AppConfigData\Exception\AppConfigDataException
  • Aws\Appflow\Exception\AppflowException
  • Aws\AppIntegrationsService\Exception\AppIntegrationsServiceException
  • Aws\ApplicationAutoScaling\Exception\ApplicationAutoScalingException
  • Aws\ApplicationCostProfiler\Exception\ApplicationCostProfilerException
  • Aws\ApplicationDiscoveryService\Exception\ApplicationDiscoveryServiceException
  • Aws\ApplicationInsights\Exception\ApplicationInsightsException
  • Aws\AppMesh\Exception\AppMeshException
  • Aws\AppRegistry\Exception\AppRegistryException
  • Aws\AppRunner\Exception\AppRunnerException
  • Aws\Appstream\Exception\AppstreamException
  • Aws\AppSync\Exception\AppSyncException
  • Aws\ARCZonalShift\Exception\ARCZonalShiftException
  • Aws\Arn\Exception\InvalidArnException
  • Aws\Athena\Exception\AthenaException
  • Aws\AuditManager\Exception\AuditManagerException
  • Aws\AugmentedAIRuntime\Exception\AugmentedAIRuntimeException
  • Aws\AutoScaling\Exception\AutoScalingException
  • Aws\AutoScalingPlans\Exception\AutoScalingPlansException
  • Aws\Backup\Exception\BackupException
  • Aws\BackupGateway\Exception\BackupGatewayException
  • Aws\BackupStorage\Exception\BackupStorageException
  • Aws\Batch\Exception\BatchException
  • Aws\BillingConductor\Exception\BillingConductorException
  • Aws\Braket\Exception\BraketException
  • Aws\Budgets\Exception\BudgetsException
  • Aws\Chime\Exception\ChimeException
  • Aws\ChimeSDKIdentity\Exception\ChimeSDKIdentityException
  • Aws\ChimeSDKMediaPipelines\Exception\ChimeSDKMediaPipelinesException
  • Aws\ChimeSDKMeetings\Exception\ChimeSDKMeetingsException
  • Aws\ChimeSDKMessaging\Exception\ChimeSDKMessagingException
  • Aws\ChimeSDKVoice\Exception\ChimeSDKVoiceException
  • Aws\CleanRooms\Exception\CleanRoomsException
  • Aws\ClientSideMonitoring\Exception\ConfigurationException
  • Aws\Cloud9\Exception\Cloud9Exception
  • Aws\CloudControlApi\Exception\CloudControlApiException
  • Aws\CloudDirectory\Exception\CloudDirectoryException
  • Aws\CloudFormation\Exception\CloudFormationException
  • Aws\CloudFront\Exception\CloudFrontException
  • Aws\CloudHsm\Exception\CloudHsmException
  • Aws\CloudHSMV2\Exception\CloudHSMV2Exception
  • Aws\CloudSearch\Exception\CloudSearchException
  • Aws\CloudSearchDomain\Exception\CloudSearchDomainException
  • Aws\CloudTrail\Exception\CloudTrailException
  • Aws\CloudTrailData\Exception\CloudTrailDataException
  • Aws\CloudWatch\Exception\CloudWatchException
  • Aws\CloudWatchEvents\Exception\CloudWatchEventsException
  • Aws\CloudWatchEvidently\Exception\CloudWatchEvidentlyException
  • Aws\CloudWatchLogs\Exception\CloudWatchLogsException
  • Aws\CloudWatchRUM\Exception\CloudWatchRUMException
  • Aws\CodeArtifact\Exception\CodeArtifactException
  • Aws\CodeBuild\Exception\CodeBuildException
  • Aws\CodeCatalyst\Exception\CodeCatalystException
  • Aws\CodeCommit\Exception\CodeCommitException
  • Aws\CodeDeploy\Exception\CodeDeployException
  • Aws\CodeGuruProfiler\Exception\CodeGuruProfilerException
  • Aws\CodeGuruReviewer\Exception\CodeGuruReviewerException
  • Aws\CodePipeline\Exception\CodePipelineException
  • Aws\CodeStar\Exception\CodeStarException
  • Aws\CodeStarconnections\Exception\CodeStarconnectionsException
  • Aws\CodeStarNotifications\Exception\CodeStarNotificationsException
  • Aws\CognitoIdentity\Exception\CognitoIdentityException
  • Aws\CognitoIdentityProvider\Exception\CognitoIdentityProviderException
  • Aws\CognitoSync\Exception\CognitoSyncException
  • Aws\Comprehend\Exception\ComprehendException
  • Aws\ComprehendMedical\Exception\ComprehendMedicalException
  • Aws\ComputeOptimizer\Exception\ComputeOptimizerException
  • Aws\ConfigService\Exception\ConfigServiceException
  • Aws\Connect\Exception\ConnectException
  • Aws\ConnectCampaignService\Exception\ConnectCampaignServiceException
  • Aws\ConnectCases\Exception\ConnectCasesException
  • Aws\ConnectContactLens\Exception\ConnectContactLensException
  • Aws\ConnectParticipant\Exception\ConnectParticipantException
  • Aws\ConnectWisdomService\Exception\ConnectWisdomServiceException
  • Aws\ControlTower\Exception\ControlTowerException
  • Aws\CostandUsageReportService\Exception\CostandUsageReportServiceException
  • Aws\CostExplorer\Exception\CostExplorerException
  • Aws\CustomerProfiles\Exception\CustomerProfilesException
  • Aws\DatabaseMigrationService\Exception\DatabaseMigrationServiceException
  • Aws\DataExchange\Exception\DataExchangeException
  • Aws\DataPipeline\Exception\DataPipelineException
  • Aws\DataSync\Exception\DataSyncException
  • Aws\DAX\Exception\DAXException
  • Aws\DefaultsMode\Exception\ConfigurationException
  • Aws\Detective\Exception\DetectiveException
  • Aws\DeviceFarm\Exception\DeviceFarmException
  • Aws\DevOpsGuru\Exception\DevOpsGuruException
  • Aws\DirectConnect\Exception\DirectConnectException
  • Aws\DirectoryService\Exception\DirectoryServiceException
  • Aws\DLM\Exception\DLMException
  • Aws\DocDB\Exception\DocDBException
  • Aws\DocDBElastic\Exception\DocDBElasticException
  • Aws\drs\Exception\drsException
  • Aws\DynamoDb\Exception\DynamoDbException
  • Aws\DynamoDbStreams\Exception\DynamoDbStreamsException
  • Aws\EBS\Exception\EBSException
  • Aws\Ec2\Exception\Ec2Exception
  • Aws\EC2InstanceConnect\Exception\EC2InstanceConnectException
  • Aws\Ecr\Exception\EcrException
  • Aws\ECRPublic\Exception\ECRPublicException
  • Aws\Ecs\Exception\EcsException
  • Aws\Efs\Exception\EfsException
  • Aws\EKS\Exception\EKSException
  • Aws\ElastiCache\Exception\ElastiCacheException
  • Aws\ElasticBeanstalk\Exception\ElasticBeanstalkException
  • Aws\ElasticInference\Exception\ElasticInferenceException
  • Aws\ElasticLoadBalancing\Exception\ElasticLoadBalancingException
  • Aws\ElasticLoadBalancingV2\Exception\ElasticLoadBalancingV2Exception
  • Aws\ElasticsearchService\Exception\ElasticsearchServiceException
  • Aws\ElasticTranscoder\Exception\ElasticTranscoderException
  • Aws\Emr\Exception\EmrException
  • Aws\EMRContainers\Exception\EMRContainersException
  • Aws\EMRServerless\Exception\EMRServerlessException
  • Aws\Endpoint\UseDualstackEndpoint\Exception\ConfigurationException
  • Aws\Endpoint\UseFipsEndpoint\Exception\ConfigurationException
  • Aws\EndpointDiscovery\Exception\ConfigurationException
  • Aws\EventBridge\Exception\EventBridgeException
  • Aws\Exception\AwsException
  • Aws\Exception\CommonRuntimeException
  • Aws\Exception\CouldNotCreateChecksumException
  • Aws\Exception\CredentialsException
  • Aws\Exception\CryptoException
  • Aws\Exception\CryptoPolyfillException
  • Aws\Exception\EventStreamDataException
  • Aws\Exception\IncalculablePayloadException
  • Aws\Exception\InvalidJsonException
  • Aws\Exception\InvalidRegionException
  • Aws\Exception\MultipartUploadException
  • Aws\Exception\TokenException
  • Aws\Exception\UnresolvedApiException
  • Aws\Exception\UnresolvedEndpointException
  • Aws\Exception\UnresolvedSignatureException
  • Aws\finspace\Exception\finspaceException
  • Aws\FinSpaceData\Exception\FinSpaceDataException
  • Aws\Firehose\Exception\FirehoseException
  • Aws\FIS\Exception\FISException
  • Aws\FMS\Exception\FMSException
  • Aws\ForecastQueryService\Exception\ForecastQueryServiceException
  • Aws\ForecastService\Exception\ForecastServiceException
  • Aws\FraudDetector\Exception\FraudDetectorException
  • Aws\FSx\Exception\FSxException
  • Aws\GameLift\Exception\GameLiftException
  • Aws\GameSparks\Exception\GameSparksException
  • Aws\Glacier\Exception\GlacierException
  • Aws\GlobalAccelerator\Exception\GlobalAcceleratorException
  • Aws\Glue\Exception\GlueException
  • Aws\GlueDataBrew\Exception\GlueDataBrewException
  • Aws\Greengrass\Exception\GreengrassException
  • Aws\GreengrassV2\Exception\GreengrassV2Exception
  • Aws\GroundStation\Exception\GroundStationException
  • Aws\GuardDuty\Exception\GuardDutyException
  • Aws\Health\Exception\HealthException
  • Aws\HealthLake\Exception\HealthLakeException
  • Aws\Honeycode\Exception\HoneycodeException
  • Aws\Iam\Exception\IamException
  • Aws\IdentityStore\Exception\IdentityStoreException
  • Aws\imagebuilder\Exception\imagebuilderException
  • Aws\ImportExport\Exception\ImportExportException
  • Aws\Inspector2\Exception\Inspector2Exception
  • Aws\Inspector\Exception\InspectorException
  • Aws\InternetMonitor\Exception\InternetMonitorException
  • Aws\IoT1ClickDevicesService\Exception\IoT1ClickDevicesServiceException
  • Aws\IoT1ClickProjects\Exception\IoT1ClickProjectsException
  • Aws\Iot\Exception\IotException
  • Aws\IoTAnalytics\Exception\IoTAnalyticsException
  • Aws\IotDataPlane\Exception\IotDataPlaneException
  • Aws\IoTDeviceAdvisor\Exception\IoTDeviceAdvisorException
  • Aws\IoTEvents\Exception\IoTEventsException
  • Aws\IoTEventsData\Exception\IoTEventsDataException
  • Aws\IoTFleetHub\Exception\IoTFleetHubException
  • Aws\IoTFleetWise\Exception\IoTFleetWiseException
  • Aws\IoTJobsDataPlane\Exception\IoTJobsDataPlaneException
  • Aws\IoTRoboRunner\Exception\IoTRoboRunnerException
  • Aws\IoTSecureTunneling\Exception\IoTSecureTunnelingException
  • Aws\IoTSiteWise\Exception\IoTSiteWiseException
  • Aws\IoTThingsGraph\Exception\IoTThingsGraphException
  • Aws\IoTTwinMaker\Exception\IoTTwinMakerException
  • Aws\IoTWireless\Exception\IoTWirelessException
  • Aws\IVS\Exception\IVSException
  • Aws\ivschat\Exception\ivschatException
  • Aws\Kafka\Exception\KafkaException
  • Aws\KafkaConnect\Exception\KafkaConnectException
  • Aws\kendra\Exception\kendraException
  • Aws\KendraRanking\Exception\KendraRankingException
  • Aws\Keyspaces\Exception\KeyspacesException
  • Aws\Kinesis\Exception\KinesisException
  • Aws\KinesisAnalytics\Exception\KinesisAnalyticsException
  • Aws\KinesisAnalyticsV2\Exception\KinesisAnalyticsV2Exception
  • Aws\KinesisVideo\Exception\KinesisVideoException
  • Aws\KinesisVideoArchivedMedia\Exception\KinesisVideoArchivedMediaException
  • Aws\KinesisVideoMedia\Exception\KinesisVideoMediaException
  • Aws\KinesisVideoSignalingChannels\Exception\KinesisVideoSignalingChannelsException
  • Aws\KinesisVideoWebRTCStorage\Exception\KinesisVideoWebRTCStorageException
  • Aws\Kms\Exception\KmsException
  • Aws\LakeFormation\Exception\LakeFormationException
  • Aws\Lambda\Exception\LambdaException
  • Aws\LexModelBuildingService\Exception\LexModelBuildingServiceException
  • Aws\LexModelsV2\Exception\LexModelsV2Exception
  • Aws\LexRuntimeService\Exception\LexRuntimeServiceException
  • Aws\LexRuntimeV2\Exception\LexRuntimeV2Exception
  • Aws\LicenseManager\Exception\LicenseManagerException
  • Aws\LicenseManagerLinuxSubscriptions\Exception\LicenseManagerLinuxSubscriptionsException
  • Aws\LicenseManagerUserSubscriptions\Exception\LicenseManagerUserSubscriptionsException
  • Aws\Lightsail\Exception\LightsailException
  • Aws\LocationService\Exception\LocationServiceException
  • Aws\LookoutEquipment\Exception\LookoutEquipmentException
  • Aws\LookoutforVision\Exception\LookoutforVisionException
  • Aws\LookoutMetrics\Exception\LookoutMetricsException
  • Aws\MachineLearning\Exception\MachineLearningException
  • Aws\Macie2\Exception\Macie2Exception
  • Aws\Macie\Exception\MacieException
  • Aws\MainframeModernization\Exception\MainframeModernizationException
  • Aws\ManagedBlockchain\Exception\ManagedBlockchainException
  • Aws\ManagedGrafana\Exception\ManagedGrafanaException
  • Aws\MarketplaceCatalog\Exception\MarketplaceCatalogException
  • Aws\MarketplaceCommerceAnalytics\Exception\MarketplaceCommerceAnalyticsException
  • Aws\MarketplaceEntitlementService\Exception\MarketplaceEntitlementServiceException
  • Aws\MarketplaceMetering\Exception\MarketplaceMeteringException
  • Aws\MediaConnect\Exception\MediaConnectException
  • Aws\MediaConvert\Exception\MediaConvertException
  • Aws\MediaLive\Exception\MediaLiveException
  • Aws\MediaPackage\Exception\MediaPackageException
  • Aws\MediaPackageVod\Exception\MediaPackageVodException
  • Aws\MediaStore\Exception\MediaStoreException
  • Aws\MediaStoreData\Exception\MediaStoreDataException
  • Aws\MediaTailor\Exception\MediaTailorException
  • Aws\MemoryDB\Exception\MemoryDBException
  • Aws\mgn\Exception\mgnException
  • Aws\MigrationHub\Exception\MigrationHubException
  • Aws\MigrationHubConfig\Exception\MigrationHubConfigException
  • Aws\MigrationHubOrchestrator\Exception\MigrationHubOrchestratorException
  • Aws\MigrationHubRefactorSpaces\Exception\MigrationHubRefactorSpacesException
  • Aws\MigrationHubStrategyRecommendations\Exception\MigrationHubStrategyRecommendationsException
  • Aws\Mobile\Exception\MobileException
  • Aws\MQ\Exception\MQException
  • Aws\MTurk\Exception\MTurkException
  • Aws\MWAA\Exception\MWAAException
  • Aws\Neptune\Exception\NeptuneException
  • Aws\NetworkFirewall\Exception\NetworkFirewallException
  • Aws\NetworkManager\Exception\NetworkManagerException
  • Aws\NimbleStudio\Exception\NimbleStudioException
  • Aws\OAM\Exception\OAMException
  • Aws\Omics\Exception\OmicsException
  • Aws\OpenSearchServerless\Exception\OpenSearchServerlessException
  • Aws\OpenSearchService\Exception\OpenSearchServiceException
  • Aws\OpsWorks\Exception\OpsWorksException
  • Aws\OpsWorksCM\Exception\OpsWorksCMException
  • Aws\Organizations\Exception\OrganizationsException
  • Aws\Outposts\Exception\OutpostsException
  • Aws\Panorama\Exception\PanoramaException
  • Aws\Personalize\Exception\PersonalizeException
  • Aws\PersonalizeEvents\Exception\PersonalizeEventsException
  • Aws\PersonalizeRuntime\Exception\PersonalizeRuntimeException
  • Aws\PI\Exception\PIException
  • Aws\Pinpoint\Exception\PinpointException
  • Aws\PinpointEmail\Exception\PinpointEmailException
  • Aws\PinpointSMSVoice\Exception\PinpointSMSVoiceException
  • Aws\PinpointSMSVoiceV2\Exception\PinpointSMSVoiceV2Exception
  • Aws\Pipes\Exception\PipesException
  • Aws\Polly\Exception\PollyException
  • Aws\Pricing\Exception\PricingException
  • Aws\PrivateNetworks\Exception\PrivateNetworksException
  • Aws\PrometheusService\Exception\PrometheusServiceException
  • Aws\Proton\Exception\ProtonException
  • Aws\QLDB\Exception\QLDBException
  • Aws\QLDBSession\Exception\QLDBSessionException
  • Aws\QuickSight\Exception\QuickSightException
  • Aws\RAM\Exception\RAMException
  • Aws\Rds\Exception\RdsException
  • Aws\RDSDataService\Exception\RDSDataServiceException
  • Aws\RecycleBin\Exception\RecycleBinException
  • Aws\Redshift\Exception\RedshiftException
  • Aws\RedshiftDataAPIService\Exception\RedshiftDataAPIServiceException
  • Aws\RedshiftServerless\Exception\RedshiftServerlessException
  • Aws\Rekognition\Exception\RekognitionException
  • Aws\ResilienceHub\Exception\ResilienceHubException
  • Aws\ResourceExplorer2\Exception\ResourceExplorer2Exception
  • Aws\ResourceGroups\Exception\ResourceGroupsException
  • Aws\ResourceGroupsTaggingAPI\Exception\ResourceGroupsTaggingAPIException
  • Aws\Retry\Exception\ConfigurationException
  • Aws\RoboMaker\Exception\RoboMakerException
  • Aws\RolesAnywhere\Exception\RolesAnywhereException
  • Aws\Route53\Exception\Route53Exception
  • Aws\Route53Domains\Exception\Route53DomainsException
  • Aws\Route53RecoveryCluster\Exception\Route53RecoveryClusterException
  • Aws\Route53RecoveryControlConfig\Exception\Route53RecoveryControlConfigException
  • Aws\Route53RecoveryReadiness\Exception\Route53RecoveryReadinessException
  • Aws\Route53Resolver\Exception\Route53ResolverException
  • Aws\S3\Exception\DeleteMultipleObjectsException
  • Aws\S3\Exception\PermanentRedirectException
  • Aws\S3\Exception\S3Exception
  • Aws\S3\Exception\S3MultipartUploadException
  • Aws\S3\RegionalEndpoint\Exception\ConfigurationException
  • Aws\S3\UseArnRegion\Exception\ConfigurationException
  • Aws\S3Control\Exception\S3ControlException
  • Aws\S3Outposts\Exception\S3OutpostsException
  • Aws\SageMaker\Exception\SageMakerException
  • Aws\SagemakerEdgeManager\Exception\SagemakerEdgeManagerException
  • Aws\SageMakerFeatureStoreRuntime\Exception\SageMakerFeatureStoreRuntimeException
  • Aws\SageMakerGeospatial\Exception\SageMakerGeospatialException
  • Aws\SageMakerMetrics\Exception\SageMakerMetricsException
  • Aws\SageMakerRuntime\Exception\SageMakerRuntimeException
  • Aws\SavingsPlans\Exception\SavingsPlansException
  • Aws\Scheduler\Exception\SchedulerException
  • Aws\Schemas\Exception\SchemasException
  • Aws\SecretsManager\Exception\SecretsManagerException
  • Aws\SecurityHub\Exception\SecurityHubException
  • Aws\SecurityLake\Exception\SecurityLakeException
  • Aws\ServerlessApplicationRepository\Exception\ServerlessApplicationRepositoryException
  • Aws\ServiceCatalog\Exception\ServiceCatalogException
  • Aws\ServiceDiscovery\Exception\ServiceDiscoveryException
  • Aws\ServiceQuotas\Exception\ServiceQuotasException
  • Aws\Ses\Exception\SesException
  • Aws\SesV2\Exception\SesV2Exception
  • Aws\Sfn\Exception\SfnException
  • Aws\Shield\Exception\ShieldException
  • Aws\signer\Exception\signerException
  • Aws\SimSpaceWeaver\Exception\SimSpaceWeaverException
  • Aws\Sms\Exception\SmsException
  • Aws\SnowBall\Exception\SnowBallException
  • Aws\SnowDeviceManagement\Exception\SnowDeviceManagementException
  • Aws\Sns\Exception\InvalidSnsMessageException
  • Aws\Sns\Exception\SnsException
  • Aws\Sqs\Exception\SqsException
  • Aws\Ssm\Exception\SsmException
  • Aws\SSMContacts\Exception\SSMContactsException
  • Aws\SSMIncidents\Exception\SSMIncidentsException
  • Aws\SsmSap\Exception\SsmSapException
  • Aws\SSO\Exception\SSOException
  • Aws\SSOAdmin\Exception\SSOAdminException
  • Aws\SSOOIDC\Exception\SSOOIDCException
  • Aws\StorageGateway\Exception\StorageGatewayException
  • Aws\Sts\Exception\StsException
  • Aws\Sts\RegionalEndpoints\Exception\ConfigurationException
  • Aws\Support\Exception\SupportException
  • Aws\SupportApp\Exception\SupportAppException
  • Aws\Swf\Exception\SwfException
  • Aws\Synthetics\Exception\SyntheticsException
  • Aws\Textract\Exception\TextractException
  • Aws\TimestreamQuery\Exception\TimestreamQueryException
  • Aws\TimestreamWrite\Exception\TimestreamWriteException
  • Aws\Tnb\Exception\TnbException
  • Aws\TranscribeService\Exception\TranscribeServiceException
  • Aws\Transfer\Exception\TransferException
  • Aws\Translate\Exception\TranslateException
  • Aws\VoiceID\Exception\VoiceIDException
  • Aws\Waf\Exception\WafException
  • Aws\WafRegional\Exception\WafRegionalException
  • Aws\WAFV2\Exception\WAFV2Exception
  • Aws\WellArchitected\Exception\WellArchitectedException
  • Aws\WorkDocs\Exception\WorkDocsException
  • Aws\WorkLink\Exception\WorkLinkException
  • Aws\WorkMail\Exception\WorkMailException
  • Aws\WorkMailMessageFlow\Exception\WorkMailMessageFlowException
  • Aws\WorkSpaces\Exception\WorkSpacesException
  • Aws\WorkSpacesWeb\Exception\WorkSpacesWebException
  • Aws\XRay\Exception\XRayException

Functions

  • Aws\boolean_value
  • Aws\clear_compiled_json
  • Aws\constantly
  • Aws\default_http_handler
  • Aws\default_user_agent
  • Aws\describe_type
  • Aws\dir_iterator
  • Aws\filter
  • Aws\flatmap
  • Aws\guzzle_major_version
  • Aws\is_fips_pseudo_region
  • Aws\is_valid_epoch
  • Aws\is_valid_hostlabel
  • Aws\is_valid_hostname
  • Aws\load_compiled_json
  • Aws\manifest
  • Aws\map
  • Aws\or_chain
  • Aws\parse_ini_file
  • Aws\partition
  • Aws\recursive_dir_iterator
  • Aws\serialize
  • Aws\strip_fips_pseudo_regions

Elastic Load Balancing 2015-12-01

Client: Aws\ElasticLoadBalancingV2\ElasticLoadBalancingV2Client
Service ID: elasticloadbalancingv2
Version: 2015-12-01

This page describes the parameters and results for the operations of the Elastic Load Balancing (2015-12-01), and shows how to use the Aws\ElasticLoadBalancingV2\ElasticLoadBalancingV2Client object to call the described operations. This documentation is specific to the 2015-12-01 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

  • AddListenerCertificates ( array $params = [] )

    Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.

  • AddTags ( array $params = [] )

    Adds the specified tags to the specified Elastic Load Balancing resource.

  • CreateListener ( array $params = [] )

    Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • CreateLoadBalancer ( array $params = [] )

    Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • CreateRule ( array $params = [] )

    Creates a rule for the specified listener.

  • CreateTargetGroup ( array $params = [] )

    Creates a target group.

  • DeleteListener ( array $params = [] )

    Deletes the specified listener.

  • DeleteLoadBalancer ( array $params = [] )

    Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • DeleteRule ( array $params = [] )

    Deletes the specified rule.

  • DeleteTargetGroup ( array $params = [] )

    Deletes the specified target group.

  • DeregisterTargets ( array $params = [] )

    Deregisters the specified targets from the specified target group.

  • DescribeAccountLimits ( array $params = [] )

    Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.

  • DescribeListenerCertificates ( array $params = [] )

    Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.

  • DescribeListeners ( array $params = [] )

    Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • DescribeLoadBalancerAttributes ( array $params = [] )

    Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • DescribeLoadBalancers ( array $params = [] )

    Describes the specified load balancers or all of your load balancers.

  • DescribeRules ( array $params = [] )

    Describes the specified rules or the rules for the specified listener.

  • DescribeSSLPolicies ( array $params = [] )

    Describes the specified policies or all policies used for SSL negotiation.

  • DescribeTags ( array $params = [] )

    Describes the tags for the specified Elastic Load Balancing resources.

  • DescribeTargetGroupAttributes ( array $params = [] )

    Describes the attributes for the specified target group.

  • DescribeTargetGroups ( array $params = [] )

    Describes the specified target groups or all of your target groups.

  • DescribeTargetHealth ( array $params = [] )

    Describes the health of the specified targets or all of your targets.

  • ModifyListener ( array $params = [] )

    Replaces the specified properties of the specified listener.

  • ModifyLoadBalancerAttributes ( array $params = [] )

    Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

  • ModifyRule ( array $params = [] )

    Replaces the specified properties of the specified rule.

  • ModifyTargetGroup ( array $params = [] )

    Modifies the health checks used when evaluating the health state of the targets in the specified target group.

  • ModifyTargetGroupAttributes ( array $params = [] )

    Modifies the specified attributes of the specified target group.

  • RegisterTargets ( array $params = [] )

    Registers the specified targets with the specified target group.

  • RemoveListenerCertificates ( array $params = [] )

    Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.

  • RemoveTags ( array $params = [] )

    Removes the specified tags from the specified Elastic Load Balancing resources.

  • SetIpAddressType ( array $params = [] )

    Sets the type of IP addresses used by the subnets of the specified load balancer.

  • SetRulePriorities ( array $params = [] )

    Sets the priorities of the specified rules.

  • SetSecurityGroups ( array $params = [] )

    Associates the specified security groups with the specified Application Load Balancer.

  • SetSubnets ( array $params = [] )

    Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

  • DescribeListeners
  • DescribeLoadBalancers
  • DescribeTargetGroups

Waiters

Waiters allow you to poll a resource until it enters into a desired state. A waiter has a name used to describe what it does, and is associated with an API operation. When creating a waiter, you can provide the API operation parameters associated with the corresponding operation. Waiters can be accessed using the getWaiter($waiterName, $operationParameters) method of a client object. This client supports the following waiters:

Waiter name API Operation Delay Max Attempts
LoadBalancerExists DescribeLoadBalancers 15 40
LoadBalancerAvailable DescribeLoadBalancers 15 40
LoadBalancersDeleted DescribeLoadBalancers 15 40
TargetInService DescribeTargetHealth 15 40
TargetDeregistered DescribeTargetHealth 15 40

Operations

AddListenerCertificates

$result = $client->addListenerCertificates([/* ... */]);
$promise = $client->addListenerCertificatesAsync([/* ... */]);

Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.

If the certificate in already in the certificate list, the call is successful but the certificate is not added again.

For more information, see HTTPS listeners in the Application Load Balancers Guide or TLS listeners in the Network Load Balancers Guide.

Parameter Syntax

$result = $client->addListenerCertificates([
    'Certificates' => [ // REQUIRED
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
    'ListenerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Certificates
  • Required: Yes
  • Type: Array of Certificate structures

The certificate to add. You can specify one certificate per call. Set CertificateArn to the certificate ARN but do not set IsDefault.

ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Result Syntax

[
    'Certificates' => [
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
]

Result Details

Members
Certificates
  • Type: Array of Certificate structures

Information about the certificates in the certificate list.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

  • TooManyCertificatesException:

    You've reached the limit on the number of certificates per load balancer.

  • CertificateNotFoundException:

    The specified certificate does not exist.

AddTags

$result = $client->addTags([/* ... */]);
$promise = $client->addTagsAsync([/* ... */]);

Adds the specified tags to the specified Elastic Load Balancing resource. You can tag your Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, and rules.

Each tag consists of a key and an optional value. If a resource already has a tag with the same key, AddTags updates its value.

Parameter Syntax

$result = $client->addTags([
    'ResourceArns' => ['<string>', ...], // REQUIRED
    'Tags' => [ // REQUIRED
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
ResourceArns
  • Required: Yes
  • Type: Array of strings

The Amazon Resource Name (ARN) of the resource.

Tags
  • Required: Yes
  • Type: Array of Tag structures

The tags.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • DuplicateTagKeysException:

    A tag key was specified more than once.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • ListenerNotFoundException:

    The specified listener does not exist.

  • RuleNotFoundException:

    The specified rule does not exist.

Examples

Example 1: To add tags to a load balancer

This example adds the specified tags to the specified load balancer.

$result = $client->addTags([
    'ResourceArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    ],
    'Tags' => [
        [
            'Key' => 'project',
            'Value' => 'lima',
        ],
        [
            'Key' => 'department',
            'Value' => 'digital-media',
        ],
    ],
]);

CreateListener

$result = $client->createListener([/* ... */]);
$promise = $client->createListenerAsync([/* ... */]);

Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

For more information, see the following:

  • Listeners for your Application Load Balancers

  • Listeners for your Network Load Balancers

  • Listeners for your Gateway Load Balancers

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple listeners with the same settings, each call succeeds.

Parameter Syntax

$result = $client->createListener([
    'AlpnPolicy' => ['<string>', ...],
    'Certificates' => [
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
    'DefaultActions' => [ // REQUIRED
        [
            'AuthenticateCognitoConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'UserPoolArn' => '<string>', // REQUIRED
                'UserPoolClientId' => '<string>', // REQUIRED
                'UserPoolDomain' => '<string>', // REQUIRED
            ],
            'AuthenticateOidcConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'AuthorizationEndpoint' => '<string>', // REQUIRED
                'ClientId' => '<string>', // REQUIRED
                'ClientSecret' => '<string>',
                'Issuer' => '<string>', // REQUIRED
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'TokenEndpoint' => '<string>', // REQUIRED
                'UseExistingClientSecret' => true || false,
                'UserInfoEndpoint' => '<string>', // REQUIRED
            ],
            'FixedResponseConfig' => [
                'ContentType' => '<string>',
                'MessageBody' => '<string>',
                'StatusCode' => '<string>', // REQUIRED
            ],
            'ForwardConfig' => [
                'TargetGroupStickinessConfig' => [
                    'DurationSeconds' => <integer>,
                    'Enabled' => true || false,
                ],
                'TargetGroups' => [
                    [
                        'TargetGroupArn' => '<string>',
                        'Weight' => <integer>,
                    ],
                    // ...
                ],
            ],
            'Order' => <integer>,
            'RedirectConfig' => [
                'Host' => '<string>',
                'Path' => '<string>',
                'Port' => '<string>',
                'Protocol' => '<string>',
                'Query' => '<string>',
                'StatusCode' => 'HTTP_301|HTTP_302', // REQUIRED
            ],
            'TargetGroupArn' => '<string>',
            'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response', // REQUIRED
        ],
        // ...
    ],
    'LoadBalancerArn' => '<string>', // REQUIRED
    'Port' => <integer>,
    'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
    'SslPolicy' => '<string>',
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
AlpnPolicy
  • Type: Array of strings

[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

  • HTTP1Only

  • HTTP2Only

  • HTTP2Optional

  • HTTP2Preferred

  • None

For more information, see ALPN policies in the Network Load Balancers Guide.

Certificates
  • Type: Array of Certificate structures

[HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

DefaultActions
  • Required: Yes
  • Type: Array of Action structures

The actions for the default rule.

LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Port
  • Type: int

The port on which the load balancer is listening. You cannot specify a port for a Gateway Load Balancer.

Protocol
  • Type: string

The protocol for connections from clients to the load balancer. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, and TCP_UDP. You can’t specify the UDP or TCP_UDP protocol if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

SslPolicy
  • Type: string

[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.

For more information, see Security policies in the Application Load Balancers Guide and Security policies in the Network Load Balancers Guide.

Tags
  • Type: Array of Tag structures

The tags to assign to the listener.

Result Syntax

[
    'Listeners' => [
        [
            'AlpnPolicy' => ['<string>', ...],
            'Certificates' => [
                [
                    'CertificateArn' => '<string>',
                    'IsDefault' => true || false,
                ],
                // ...
            ],
            'DefaultActions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'ListenerArn' => '<string>',
            'LoadBalancerArn' => '<string>',
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'SslPolicy' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Listeners
  • Type: Array of Listener structures

Information about the listener.

Errors

  • DuplicateListenerException:

    A listener with the specified port already exists.

  • TooManyListenersException:

    You've reached the limit on the number of listeners per load balancer.

  • TooManyCertificatesException:

    You've reached the limit on the number of certificates per load balancer.

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • TargetGroupAssociationLimitException:

    You've reached the limit on the number of load balancers per target group.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • IncompatibleProtocolsException:

    The specified configuration is not valid with this protocol.

  • SSLPolicyNotFoundException:

    The specified SSL policy does not exist.

  • CertificateNotFoundException:

    The specified certificate does not exist.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

  • TooManyRegistrationsForTargetIdException:

    You've reached the limit on the number of times a target can be registered with a load balancer.

  • TooManyTargetsException:

    You've reached the limit on the number of targets.

  • TooManyActionsException:

    You've reached the limit on the number of actions per rule.

  • InvalidLoadBalancerActionException:

    The requested action is not valid.

  • TooManyUniqueTargetGroupsPerLoadBalancerException:

    You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

  • ALPNPolicyNotSupportedException:

    The specified ALPN policy is not supported.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

Examples

Example 1: To create an HTTP listener

This example creates an HTTP listener for the specified load balancer that forwards requests to the specified target group.

$result = $client->createListener([
    'DefaultActions' => [
        [
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
            'Type' => 'forward',
        ],
    ],
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    'Port' => 80,
    'Protocol' => 'HTTP',
]);

Result syntax:

[
    'Listeners' => [
        [
            'DefaultActions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Port' => 80,
            'Protocol' => 'HTTP',
        ],
    ],
]
Example 2: To create an HTTPS listener

This example creates an HTTPS listener for the specified load balancer that forwards requests to the specified target group. Note that you must specify an SSL certificate for an HTTPS listener. You can create and manage certificates using AWS Certificate Manager (ACM). Alternatively, you can create a certificate using SSL/TLS tools, get the certificate signed by a certificate authority (CA), and upload the certificate to AWS Identity and Access Management (IAM).

$result = $client->createListener([
    'Certificates' => [
        [
            'CertificateArn' => 'arn:aws:iam::123456789012:server-certificate/my-server-cert',
        ],
    ],
    'DefaultActions' => [
        [
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
            'Type' => 'forward',
        ],
    ],
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    'Port' => 443,
    'Protocol' => 'HTTPS',
    'SslPolicy' => 'ELBSecurityPolicy-2015-05',
]);

Result syntax:

[
    'Listeners' => [
        [
            'Certificates' => [
                [
                    'CertificateArn' => 'arn:aws:iam::123456789012:server-certificate/my-server-cert',
                ],
            ],
            'DefaultActions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Port' => 443,
            'Protocol' => 'HTTPS',
            'SslPolicy' => 'ELBSecurityPolicy-2015-05',
        ],
    ],
]

CreateLoadBalancer

$result = $client->createLoadBalancer([/* ... */]);
$promise = $client->createLoadBalancerAsync([/* ... */]);

Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

For more information, see the following:

  • Application Load Balancers

  • Network Load Balancers

  • Gateway Load Balancers

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple load balancers with the same settings, each call succeeds.

Parameter Syntax

$result = $client->createLoadBalancer([
    'CustomerOwnedIpv4Pool' => '<string>',
    'IpAddressType' => 'ipv4|dualstack',
    'Name' => '<string>', // REQUIRED
    'Scheme' => 'internet-facing|internal',
    'SecurityGroups' => ['<string>', ...],
    'SubnetMappings' => [
        [
            'AllocationId' => '<string>',
            'IPv6Address' => '<string>',
            'PrivateIPv4Address' => '<string>',
            'SubnetId' => '<string>',
        ],
        // ...
    ],
    'Subnets' => ['<string>', ...],
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'Type' => 'application|network|gateway',
]);

Parameter Details

Members
CustomerOwnedIpv4Pool
  • Type: string

[Application Load Balancers on Outposts] The ID of the customer-owned address pool (CoIP pool).

IpAddressType
  • Type: string

The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).

Name
  • Required: Yes
  • Type: string

The name of the load balancer.

This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, must not begin or end with a hyphen, and must not begin with "internal-".

Scheme
  • Type: string

The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.

The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.

The default is an Internet-facing load balancer.

You cannot specify a scheme for a Gateway Load Balancer.

SecurityGroups
  • Type: Array of strings

[Application Load Balancers] The IDs of the security groups for the load balancer.

SubnetMappings
  • Type: Array of SubnetMapping structures

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both.

[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones. You cannot specify Elastic IP addresses for your subnets.

Subnets
  • Type: Array of strings

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings, but not both. To specify an Elastic IP address, specify subnet mappings instead of subnets.

[Application Load Balancers] You must specify subnets from at least two Availability Zones.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones.

[Gateway Load Balancers] You can specify subnets from one or more Availability Zones.

Tags
  • Type: Array of Tag structures

The tags to assign to the load balancer.

Type
  • Type: string

The type of load balancer. The default is application.

Result Syntax

[
    'LoadBalancers' => [
        [
            'AvailabilityZones' => [
                [
                    'LoadBalancerAddresses' => [
                        [
                            'AllocationId' => '<string>',
                            'IPv6Address' => '<string>',
                            'IpAddress' => '<string>',
                            'PrivateIPv4Address' => '<string>',
                        ],
                        // ...
                    ],
                    'OutpostId' => '<string>',
                    'SubnetId' => '<string>',
                    'ZoneName' => '<string>',
                ],
                // ...
            ],
            'CanonicalHostedZoneId' => '<string>',
            'CreatedTime' => <DateTime>,
            'CustomerOwnedIpv4Pool' => '<string>',
            'DNSName' => '<string>',
            'IpAddressType' => 'ipv4|dualstack',
            'LoadBalancerArn' => '<string>',
            'LoadBalancerName' => '<string>',
            'Scheme' => 'internet-facing|internal',
            'SecurityGroups' => ['<string>', ...],
            'State' => [
                'Code' => 'active|provisioning|active_impaired|failed',
                'Reason' => '<string>',
            ],
            'Type' => 'application|network|gateway',
            'VpcId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
LoadBalancers
  • Type: Array of LoadBalancer structures

Information about the load balancer.

Errors

  • DuplicateLoadBalancerNameException:

    A load balancer with the specified name already exists.

  • TooManyLoadBalancersException:

    You've reached the limit on the number of load balancers for your Amazon Web Services account.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • SubnetNotFoundException:

    The specified subnet does not exist.

  • InvalidSubnetException:

    The specified subnet is out of available addresses.

  • InvalidSecurityGroupException:

    The specified security group does not exist.

  • InvalidSchemeException:

    The requested scheme is not valid.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

  • DuplicateTagKeysException:

    A tag key was specified more than once.

  • ResourceInUseException:

    A specified resource is in use.

  • AllocationIdNotFoundException:

    The specified allocation ID does not exist.

  • AvailabilityZoneNotSupportedException:

    The specified Availability Zone is not supported.

  • OperationNotPermittedException:

    This operation is not allowed.

Examples

Example 1: To create an Internet-facing load balancer

This example creates an Internet-facing load balancer and enables the Availability Zones for the specified subnets.

$result = $client->createLoadBalancer([
    'Name' => 'my-load-balancer',
    'Subnets' => [
        'subnet-b7d581c0',
        'subnet-8360a9e7',
    ],
]);

Result syntax:

[
    'LoadBalancers' => [
        [
            'AvailabilityZones' => [
                [
                    'SubnetId' => 'subnet-8360a9e7',
                    'ZoneName' => 'us-west-2a',
                ],
                [
                    'SubnetId' => 'subnet-b7d581c0',
                    'ZoneName' => 'us-west-2b',
                ],
            ],
            'CanonicalHostedZoneId' => 'Z2P70J7EXAMPLE',
            'CreatedTime' => ,
            'DNSName' => 'my-load-balancer-424835706.us-west-2.elb.amazonaws.com',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'LoadBalancerName' => 'my-load-balancer',
            'Scheme' => 'internet-facing',
            'SecurityGroups' => [
                'sg-5943793c',
            ],
            'State' => [
                'Code' => 'provisioning',
            ],
            'Type' => 'application',
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]
Example 2: To create an internal load balancer

This example creates an internal load balancer and enables the Availability Zones for the specified subnets.

$result = $client->createLoadBalancer([
    'Name' => 'my-internal-load-balancer',
    'Scheme' => 'internal',
    'SecurityGroups' => [
    ],
    'Subnets' => [
        'subnet-b7d581c0',
        'subnet-8360a9e7',
    ],
]);

Result syntax:

[
    'LoadBalancers' => [
        [
            'AvailabilityZones' => [
                [
                    'SubnetId' => 'subnet-8360a9e7',
                    'ZoneName' => 'us-west-2a',
                ],
                [
                    'SubnetId' => 'subnet-b7d581c0',
                    'ZoneName' => 'us-west-2b',
                ],
            ],
            'CanonicalHostedZoneId' => 'Z2P70J7EXAMPLE',
            'CreatedTime' => ,
            'DNSName' => 'internal-my-internal-load-balancer-1529930873.us-west-2.elb.amazonaws.com',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/5b49b8d4303115c2',
            'LoadBalancerName' => 'my-internal-load-balancer',
            'Scheme' => 'internal',
            'SecurityGroups' => [
                'sg-5943793c',
            ],
            'State' => [
                'Code' => 'provisioning',
            ],
            'Type' => 'application',
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]

CreateRule

$result = $client->createRule([/* ... */]);
$promise = $client->createRuleAsync([/* ... */]);

Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.

Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.

Parameter Syntax

$result = $client->createRule([
    'Actions' => [ // REQUIRED
        [
            'AuthenticateCognitoConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'UserPoolArn' => '<string>', // REQUIRED
                'UserPoolClientId' => '<string>', // REQUIRED
                'UserPoolDomain' => '<string>', // REQUIRED
            ],
            'AuthenticateOidcConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'AuthorizationEndpoint' => '<string>', // REQUIRED
                'ClientId' => '<string>', // REQUIRED
                'ClientSecret' => '<string>',
                'Issuer' => '<string>', // REQUIRED
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'TokenEndpoint' => '<string>', // REQUIRED
                'UseExistingClientSecret' => true || false,
                'UserInfoEndpoint' => '<string>', // REQUIRED
            ],
            'FixedResponseConfig' => [
                'ContentType' => '<string>',
                'MessageBody' => '<string>',
                'StatusCode' => '<string>', // REQUIRED
            ],
            'ForwardConfig' => [
                'TargetGroupStickinessConfig' => [
                    'DurationSeconds' => <integer>,
                    'Enabled' => true || false,
                ],
                'TargetGroups' => [
                    [
                        'TargetGroupArn' => '<string>',
                        'Weight' => <integer>,
                    ],
                    // ...
                ],
            ],
            'Order' => <integer>,
            'RedirectConfig' => [
                'Host' => '<string>',
                'Path' => '<string>',
                'Port' => '<string>',
                'Protocol' => '<string>',
                'Query' => '<string>',
                'StatusCode' => 'HTTP_301|HTTP_302', // REQUIRED
            ],
            'TargetGroupArn' => '<string>',
            'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response', // REQUIRED
        ],
        // ...
    ],
    'Conditions' => [ // REQUIRED
        [
            'Field' => '<string>',
            'HostHeaderConfig' => [
                'Values' => ['<string>', ...],
            ],
            'HttpHeaderConfig' => [
                'HttpHeaderName' => '<string>',
                'Values' => ['<string>', ...],
            ],
            'HttpRequestMethodConfig' => [
                'Values' => ['<string>', ...],
            ],
            'PathPatternConfig' => [
                'Values' => ['<string>', ...],
            ],
            'QueryStringConfig' => [
                'Values' => [
                    [
                        'Key' => '<string>',
                        'Value' => '<string>',
                    ],
                    // ...
                ],
            ],
            'SourceIpConfig' => [
                'Values' => ['<string>', ...],
            ],
            'Values' => ['<string>', ...],
        ],
        // ...
    ],
    'ListenerArn' => '<string>', // REQUIRED
    'Priority' => <integer>, // REQUIRED
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
Actions
  • Required: Yes
  • Type: Array of Action structures

The actions.

Conditions
  • Required: Yes
  • Type: Array of RuleCondition structures

The conditions.

ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Priority
  • Required: Yes
  • Type: int

The rule priority. A listener can't have multiple rules with the same priority.

Tags
  • Type: Array of Tag structures

The tags to assign to the rule.

Result Syntax

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'Conditions' => [
                [
                    'Field' => '<string>',
                    'HostHeaderConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'HttpHeaderConfig' => [
                        'HttpHeaderName' => '<string>',
                        'Values' => ['<string>', ...],
                    ],
                    'HttpRequestMethodConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'PathPatternConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'QueryStringConfig' => [
                        'Values' => [
                            [
                                'Key' => '<string>',
                                'Value' => '<string>',
                            ],
                            // ...
                        ],
                    ],
                    'SourceIpConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'Values' => ['<string>', ...],
                ],
                // ...
            ],
            'IsDefault' => true || false,
            'Priority' => '<string>',
            'RuleArn' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Rules
  • Type: Array of Rule structures

Information about the rule.

Errors

  • PriorityInUseException:

    The specified priority is in use.

  • TooManyTargetGroupsException:

    You've reached the limit on the number of target groups for your Amazon Web Services account.

  • TooManyRulesException:

    You've reached the limit on the number of rules per load balancer.

  • TargetGroupAssociationLimitException:

    You've reached the limit on the number of load balancers per target group.

  • IncompatibleProtocolsException:

    The specified configuration is not valid with this protocol.

  • ListenerNotFoundException:

    The specified listener does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • TooManyRegistrationsForTargetIdException:

    You've reached the limit on the number of times a target can be registered with a load balancer.

  • TooManyTargetsException:

    You've reached the limit on the number of targets.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

  • TooManyActionsException:

    You've reached the limit on the number of actions per rule.

  • InvalidLoadBalancerActionException:

    The requested action is not valid.

  • TooManyUniqueTargetGroupsPerLoadBalancerException:

    You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

Examples

Example 1: To create a rule

This example creates a rule that forwards requests to the specified target group if the URL contains the specified pattern (for example, /img/*).

$result = $client->createRule([
    'Actions' => [
        [
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
            'Type' => 'forward',
        ],
    ],
    'Conditions' => [
        [
            'Field' => 'path-pattern',
            'Values' => [
                '/img/*',
            ],
        ],
    ],
    'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
    'Priority' => 10,
]);

Result syntax:

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'Conditions' => [
                [
                    'Field' => 'path-pattern',
                    'Values' => [
                        '/img/*',
                    ],
                ],
            ],
            'IsDefault' => ,
            'Priority' => '10',
            'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee',
        ],
    ],
]

CreateTargetGroup

$result = $client->createTargetGroup([/* ... */]);
$promise = $client->createTargetGroupAsync([/* ... */]);

Creates a target group.

For more information, see the following:

  • Target groups for your Application Load Balancers

  • Target groups for your Network Load Balancers

  • Target groups for your Gateway Load Balancers

This operation is idempotent, which means that it completes at most one time. If you attempt to create multiple target groups with the same settings, each call succeeds.

Parameter Syntax

$result = $client->createTargetGroup([
    'HealthCheckEnabled' => true || false,
    'HealthCheckIntervalSeconds' => <integer>,
    'HealthCheckPath' => '<string>',
    'HealthCheckPort' => '<string>',
    'HealthCheckProtocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
    'HealthCheckTimeoutSeconds' => <integer>,
    'HealthyThresholdCount' => <integer>,
    'IpAddressType' => 'ipv4|ipv6',
    'Matcher' => [
        'GrpcCode' => '<string>',
        'HttpCode' => '<string>',
    ],
    'Name' => '<string>', // REQUIRED
    'Port' => <integer>,
    'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
    'ProtocolVersion' => '<string>',
    'Tags' => [
        [
            'Key' => '<string>', // REQUIRED
            'Value' => '<string>',
        ],
        // ...
    ],
    'TargetType' => 'instance|ip|lambda|alb',
    'UnhealthyThresholdCount' => <integer>,
    'VpcId' => '<string>',
]);

Parameter Details

Members
HealthCheckEnabled
  • Type: boolean

Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled.

HealthCheckIntervalSeconds
  • Type: int

The approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. If the target group protocol is TCP, TLS, UDP, TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol is GENEVE, the default is 10 seconds. If the target type is lambda, the default is 35 seconds.

HealthCheckPath
  • Type: string

[HTTP/HTTPS health checks] The destination for health checks on the targets.

[HTTP1 or HTTP2 protocol version] The ping path. The default is /.

[GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.

HealthCheckPort
  • Type: string

The port the load balancer uses when performing health checks on targets. If the protocol is HTTP, HTTPS, TCP, TLS, UDP, or TCP_UDP, the default is traffic-port, which is the port on which each target receives traffic from the load balancer. If the protocol is GENEVE, the default is port 80.

HealthCheckProtocol
  • Type: string

The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

HealthCheckTimeoutSeconds
  • Type: int

The amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds.

HealthyThresholdCount
  • Type: int

The number of consecutive health check successes required before considering a target healthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with a protocol of GENEVE, the default is 5. If the target type is lambda, the default is 5.

IpAddressType
  • Type: string

The type of IP address used for this target group. The possible values are ipv4 and ipv6. This is an optional parameter. If not specified, the IP address type defaults to ipv4.

Matcher
  • Type: Matcher structure

[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.

Name
  • Required: Yes
  • Type: string

The name of the target group.

This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.

Port
  • Type: int

The port on which the targets receive traffic. This port is used unless you specify a port override when registering the target. If the target is a Lambda function, this parameter does not apply. If the protocol is GENEVE, the supported port is 6081.

Protocol
  • Type: string

The protocol to use for routing traffic to the targets. For Application Load Balancers, the supported protocols are HTTP and HTTPS. For Network Load Balancers, the supported protocols are TCP, TLS, UDP, or TCP_UDP. For Gateway Load Balancers, the supported protocol is GENEVE. A TCP_UDP listener must be associated with a TCP_UDP target group. If the target is a Lambda function, this parameter does not apply.

ProtocolVersion
  • Type: string

[HTTP/HTTPS protocol] The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1.

Tags
  • Type: Array of Tag structures

The tags to assign to the target group.

TargetType
  • Type: string

The type of target that you must specify when registering targets with this target group. You can't specify targets for a target group using more than one target type.

  • instance - Register targets by instance ID. This is the default value.

  • ip - Register targets by IP address. You can specify IP addresses from the subnets of the virtual private cloud (VPC) for the target group, the RFC 1918 range (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16), and the RFC 6598 range (100.64.0.0/10). You can't specify publicly routable IP addresses.

  • lambda - Register a single Lambda function as a target.

  • alb - Register a single Application Load Balancer as a target.

UnhealthyThresholdCount
  • Type: int

The number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. If the target group protocol is TCP, TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with a protocol of GENEVE, the default is 2. If the target type is lambda, the default is 5.

VpcId
  • Type: string

The identifier of the virtual private cloud (VPC). If the target is a Lambda function, this parameter does not apply. Otherwise, this parameter is required.

Result Syntax

[
    'TargetGroups' => [
        [
            'HealthCheckEnabled' => true || false,
            'HealthCheckIntervalSeconds' => <integer>,
            'HealthCheckPath' => '<string>',
            'HealthCheckPort' => '<string>',
            'HealthCheckProtocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'HealthCheckTimeoutSeconds' => <integer>,
            'HealthyThresholdCount' => <integer>,
            'IpAddressType' => 'ipv4|ipv6',
            'LoadBalancerArns' => ['<string>', ...],
            'Matcher' => [
                'GrpcCode' => '<string>',
                'HttpCode' => '<string>',
            ],
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'ProtocolVersion' => '<string>',
            'TargetGroupArn' => '<string>',
            'TargetGroupName' => '<string>',
            'TargetType' => 'instance|ip|lambda|alb',
            'UnhealthyThresholdCount' => <integer>,
            'VpcId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
TargetGroups
  • Type: Array of TargetGroup structures

Information about the target group.

Errors

  • DuplicateTargetGroupNameException:

    A target group with the specified name already exists.

  • TooManyTargetGroupsException:

    You've reached the limit on the number of target groups for your Amazon Web Services account.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

Examples

Example 1: To create a target group

This example creates a target group that you can use to route traffic to targets using HTTP on port 80. This target group uses the default health check configuration.

$result = $client->createTargetGroup([
    'Name' => 'my-targets',
    'Port' => 80,
    'Protocol' => 'HTTP',
    'VpcId' => 'vpc-3ac0fb5f',
]);

Result syntax:

[
    'TargetGroups' => [
        [
            'HealthCheckIntervalSeconds' => 30,
            'HealthCheckPath' => '/',
            'HealthCheckPort' => 'traffic-port',
            'HealthCheckProtocol' => 'HTTP',
            'HealthCheckTimeoutSeconds' => 5,
            'HealthyThresholdCount' => 5,
            'Matcher' => [
                'HttpCode' => '200',
            ],
            'Port' => 80,
            'Protocol' => 'HTTP',
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
            'TargetGroupName' => 'my-targets',
            'UnhealthyThresholdCount' => 2,
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]

DeleteListener

$result = $client->deleteListener([/* ... */]);
$promise = $client->deleteListenerAsync([/* ... */]);

Deletes the specified listener.

Alternatively, your listener is deleted when you delete the load balancer to which it is attached.

Parameter Syntax

$result = $client->deleteListener([
    'ListenerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

  • ResourceInUseException:

    A specified resource is in use.

Examples

Example 1: To delete a listener

This example deletes the specified listener.

$result = $client->deleteListener([
    'ListenerArn' => 'arn:aws:elasticloadbalancing:ua-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
]);

DeleteLoadBalancer

$result = $client->deleteLoadBalancer([/* ... */]);
$promise = $client->deleteLoadBalancerAsync([/* ... */]);

Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. Deleting a load balancer also deletes its listeners.

You can't delete a load balancer if deletion protection is enabled. If the load balancer does not exist or has already been deleted, the call succeeds.

Deleting a load balancer does not affect its registered targets. For example, your EC2 instances continue to run and are still registered to their target groups. If you no longer need these EC2 instances, you can stop or terminate them.

Parameter Syntax

$result = $client->deleteLoadBalancer([
    'LoadBalancerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • OperationNotPermittedException:

    This operation is not allowed.

  • ResourceInUseException:

    A specified resource is in use.

Examples

Example 1: To delete a load balancer

This example deletes the specified load balancer.

$result = $client->deleteLoadBalancer([
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
]);

DeleteRule

$result = $client->deleteRule([/* ... */]);
$promise = $client->deleteRuleAsync([/* ... */]);

Deletes the specified rule.

You can't delete the default rule.

Parameter Syntax

$result = $client->deleteRule([
    'RuleArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
RuleArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the rule.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • RuleNotFoundException:

    The specified rule does not exist.

  • OperationNotPermittedException:

    This operation is not allowed.

Examples

Example 1: To delete a rule

This example deletes the specified rule.

$result = $client->deleteRule([
    'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3',
]);

DeleteTargetGroup

$result = $client->deleteTargetGroup([/* ... */]);
$promise = $client->deleteTargetGroupAsync([/* ... */]);

Deletes the specified target group.

You can delete a target group if it is not referenced by any actions. Deleting a target group also deletes any associated health checks. Deleting a target group does not affect its registered targets. For example, any EC2 instances continue to run until you stop or terminate them.

Parameter Syntax

$result = $client->deleteTargetGroup([
    'TargetGroupArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ResourceInUseException:

    A specified resource is in use.

Examples

Example 1: To delete a target group

This example deletes the specified target group.

$result = $client->deleteTargetGroup([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
]);

DeregisterTargets

$result = $client->deregisterTargets([/* ... */]);
$promise = $client->deregisterTargetsAsync([/* ... */]);

Deregisters the specified targets from the specified target group. After the targets are deregistered, they no longer receive traffic from the load balancer.

Parameter Syntax

$result = $client->deregisterTargets([
    'TargetGroupArn' => '<string>', // REQUIRED
    'Targets' => [ // REQUIRED
        [
            'AvailabilityZone' => '<string>',
            'Id' => '<string>', // REQUIRED
            'Port' => <integer>,
        ],
        // ...
    ],
]);

Parameter Details

Members
TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Targets
  • Required: Yes
  • Type: Array of TargetDescription structures

The targets. If you specified a port override when you registered a target, you must specify both the target ID and the port when you deregister it.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • InvalidTargetException:

    The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.

Examples

Example 1: To deregister a target from a target group

This example deregisters the specified instance from the specified target group.

$result = $client->deregisterTargets([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
    'Targets' => [
        [
            'Id' => 'i-0f76fade',
        ],
    ],
]);

DescribeAccountLimits

$result = $client->describeAccountLimits([/* ... */]);
$promise = $client->describeAccountLimitsAsync([/* ... */]);

Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.

For more information, see the following:

  • Quotas for your Application Load Balancers

  • Quotas for your Network Load Balancers

  • Quotas for your Gateway Load Balancers

Parameter Syntax

$result = $client->describeAccountLimits([
    'Marker' => '<string>',
    'PageSize' => <integer>,
]);

Parameter Details

Members
Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

PageSize
  • Type: int

The maximum number of results to return with this call.

Result Syntax

[
    'Limits' => [
        [
            'Max' => '<string>',
            'Name' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Limits
  • Type: Array of Limit structures

Information about the limits.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Errors

There are no errors described for this operation.

DescribeListenerCertificates

$result = $client->describeListenerCertificates([/* ... */]);
$promise = $client->describeListenerCertificatesAsync([/* ... */]);

Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.

If the default certificate is also in the certificate list, it appears twice in the results (once with IsDefault set to true and once with IsDefault set to false).

For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.

Parameter Syntax

$result = $client->describeListenerCertificates([
    'ListenerArn' => '<string>', // REQUIRED
    'Marker' => '<string>',
    'PageSize' => <integer>,
]);

Parameter Details

Members
ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Names (ARN) of the listener.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

PageSize
  • Type: int

The maximum number of results to return with this call.

Result Syntax

[
    'Certificates' => [
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Certificates
  • Type: Array of Certificate structures

Information about the certificates.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

DescribeListeners

$result = $client->describeListeners([/* ... */]);
$promise = $client->describeListenersAsync([/* ... */]);

Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer. You must specify either a load balancer or one or more listeners.

Parameter Syntax

$result = $client->describeListeners([
    'ListenerArns' => ['<string>', ...],
    'LoadBalancerArn' => '<string>',
    'Marker' => '<string>',
    'PageSize' => <integer>,
]);

Parameter Details

Members
ListenerArns
  • Type: Array of strings

The Amazon Resource Names (ARN) of the listeners.

LoadBalancerArn
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

PageSize
  • Type: int

The maximum number of results to return with this call.

Result Syntax

[
    'Listeners' => [
        [
            'AlpnPolicy' => ['<string>', ...],
            'Certificates' => [
                [
                    'CertificateArn' => '<string>',
                    'IsDefault' => true || false,
                ],
                // ...
            ],
            'DefaultActions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'ListenerArn' => '<string>',
            'LoadBalancerArn' => '<string>',
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'SslPolicy' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
Listeners
  • Type: Array of Listener structures

Information about the listeners.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

Examples

Example 1: To describe a listener

This example describes the specified listener.

$result = $client->describeListeners([
    'ListenerArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
    ],
]);

Result syntax:

[
    'Listeners' => [
        [
            'DefaultActions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Port' => 80,
            'Protocol' => 'HTTP',
        ],
    ],
]

DescribeLoadBalancerAttributes

$result = $client->describeLoadBalancerAttributes([/* ... */]);
$promise = $client->describeLoadBalancerAttributesAsync([/* ... */]);

Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

For more information, see the following:

  • Load balancer attributes in the Application Load Balancers Guide

  • Load balancer attributes in the Network Load Balancers Guide

  • Load balancer attributes in the Gateway Load Balancers Guide

Parameter Syntax

$result = $client->describeLoadBalancerAttributes([
    'LoadBalancerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Result Syntax

[
    'Attributes' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Attributes
  • Type: Array of LoadBalancerAttribute structures

Information about the load balancer attributes.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

Examples

Example 1: To describe load balancer attributes

This example describes the attributes of the specified load balancer.

$result = $client->describeLoadBalancerAttributes([
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'access_logs.s3.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'idle_timeout.timeout_seconds',
            'Value' => '60',
        ],
        [
            'Key' => 'access_logs.s3.prefix',
            'Value' => '',
        ],
        [
            'Key' => 'deletion_protection.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'access_logs.s3.bucket',
            'Value' => '',
        ],
    ],
]

DescribeLoadBalancers

$result = $client->describeLoadBalancers([/* ... */]);
$promise = $client->describeLoadBalancersAsync([/* ... */]);

Describes the specified load balancers or all of your load balancers.

Parameter Syntax

$result = $client->describeLoadBalancers([
    'LoadBalancerArns' => ['<string>', ...],
    'Marker' => '<string>',
    'Names' => ['<string>', ...],
    'PageSize' => <integer>,
]);

Parameter Details

Members
LoadBalancerArns
  • Type: Array of strings

The Amazon Resource Names (ARN) of the load balancers. You can specify up to 20 load balancers in a single call.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

Names
  • Type: Array of strings

The names of the load balancers.

PageSize
  • Type: int

The maximum number of results to return with this call.

Result Syntax

[
    'LoadBalancers' => [
        [
            'AvailabilityZones' => [
                [
                    'LoadBalancerAddresses' => [
                        [
                            'AllocationId' => '<string>',
                            'IPv6Address' => '<string>',
                            'IpAddress' => '<string>',
                            'PrivateIPv4Address' => '<string>',
                        ],
                        // ...
                    ],
                    'OutpostId' => '<string>',
                    'SubnetId' => '<string>',
                    'ZoneName' => '<string>',
                ],
                // ...
            ],
            'CanonicalHostedZoneId' => '<string>',
            'CreatedTime' => <DateTime>,
            'CustomerOwnedIpv4Pool' => '<string>',
            'DNSName' => '<string>',
            'IpAddressType' => 'ipv4|dualstack',
            'LoadBalancerArn' => '<string>',
            'LoadBalancerName' => '<string>',
            'Scheme' => 'internet-facing|internal',
            'SecurityGroups' => ['<string>', ...],
            'State' => [
                'Code' => 'active|provisioning|active_impaired|failed',
                'Reason' => '<string>',
            ],
            'Type' => 'application|network|gateway',
            'VpcId' => '<string>',
        ],
        // ...
    ],
    'NextMarker' => '<string>',
]

Result Details

Members
LoadBalancers
  • Type: Array of LoadBalancer structures

Information about the load balancers.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

Examples

Example 1: To describe a load balancer

This example describes the specified load balancer.

$result = $client->describeLoadBalancers([
    'LoadBalancerArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    ],
]);

Result syntax:

[
    'LoadBalancers' => [
        [
            'AvailabilityZones' => [
                [
                    'SubnetId' => 'subnet-8360a9e7',
                    'ZoneName' => 'us-west-2a',
                ],
                [
                    'SubnetId' => 'subnet-b7d581c0',
                    'ZoneName' => 'us-west-2b',
                ],
            ],
            'CanonicalHostedZoneId' => 'Z2P70J7EXAMPLE',
            'CreatedTime' => ,
            'DNSName' => 'my-load-balancer-424835706.us-west-2.elb.amazonaws.com',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'LoadBalancerName' => 'my-load-balancer',
            'Scheme' => 'internet-facing',
            'SecurityGroups' => [
                'sg-5943793c',
            ],
            'State' => [
                'Code' => 'active',
            ],
            'Type' => 'application',
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]

DescribeRules

$result = $client->describeRules([/* ... */]);
$promise = $client->describeRulesAsync([/* ... */]);

Describes the specified rules or the rules for the specified listener. You must specify either a listener or one or more rules.

Parameter Syntax

$result = $client->describeRules([
    'ListenerArn' => '<string>',
    'Marker' => '<string>',
    'PageSize' => <integer>,
    'RuleArns' => ['<string>', ...],
]);

Parameter Details

Members
ListenerArn
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

PageSize
  • Type: int

The maximum number of results to return with this call.

RuleArns
  • Type: Array of strings

The Amazon Resource Names (ARN) of the rules.

Result Syntax

[
    'NextMarker' => '<string>',
    'Rules' => [
        [
            'Actions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'Conditions' => [
                [
                    'Field' => '<string>',
                    'HostHeaderConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'HttpHeaderConfig' => [
                        'HttpHeaderName' => '<string>',
                        'Values' => ['<string>', ...],
                    ],
                    'HttpRequestMethodConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'PathPatternConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'QueryStringConfig' => [
                        'Values' => [
                            [
                                'Key' => '<string>',
                                'Value' => '<string>',
                            ],
                            // ...
                        ],
                    ],
                    'SourceIpConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'Values' => ['<string>', ...],
                ],
                // ...
            ],
            'IsDefault' => true || false,
            'Priority' => '<string>',
            'RuleArn' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Rules
  • Type: Array of Rule structures

Information about the rules.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

  • RuleNotFoundException:

    The specified rule does not exist.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

Examples

Example 1: To describe a rule

This example describes the specified rule.

$result = $client->describeRules([
    'RuleArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee',
    ],
]);

Result syntax:

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'Conditions' => [
                [
                    'Field' => 'path-pattern',
                    'Values' => [
                        '/img/*',
                    ],
                ],
            ],
            'IsDefault' => ,
            'Priority' => '10',
            'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee',
        ],
    ],
]

DescribeSSLPolicies

$result = $client->describeSSLPolicies([/* ... */]);
$promise = $client->describeSSLPoliciesAsync([/* ... */]);

Describes the specified policies or all policies used for SSL negotiation.

For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.

Parameter Syntax

$result = $client->describeSSLPolicies([
    'LoadBalancerType' => 'application|network|gateway',
    'Marker' => '<string>',
    'Names' => ['<string>', ...],
    'PageSize' => <integer>,
]);

Parameter Details

Members
LoadBalancerType
  • Type: string

The type of load balancer. The default lists the SSL policies for all load balancers.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

Names
  • Type: Array of strings

The names of the policies.

PageSize
  • Type: int

The maximum number of results to return with this call.

Result Syntax

[
    'NextMarker' => '<string>',
    'SslPolicies' => [
        [
            'Ciphers' => [
                [
                    'Name' => '<string>',
                    'Priority' => <integer>,
                ],
                // ...
            ],
            'Name' => '<string>',
            'SslProtocols' => ['<string>', ...],
            'SupportedLoadBalancerTypes' => ['<string>', ...],
        ],
        // ...
    ],
]

Result Details

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

SslPolicies
  • Type: Array of SslPolicy structures

Information about the security policies.

Errors

  • SSLPolicyNotFoundException:

    The specified SSL policy does not exist.

Examples

Example 1: To describe a policy used for SSL negotiation

This example describes the specified policy used for SSL negotiation.

$result = $client->describeSSLPolicies([
    'Names' => [
        'ELBSecurityPolicy-2015-05',
    ],
]);

Result syntax:

[
    'SslPolicies' => [
        [
            'Ciphers' => [
                [
                    'Name' => 'ECDHE-ECDSA-AES128-GCM-SHA256',
                    'Priority' => 1,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES128-GCM-SHA256',
                    'Priority' => 2,
                ],
                [
                    'Name' => 'ECDHE-ECDSA-AES128-SHA256',
                    'Priority' => 3,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES128-SHA256',
                    'Priority' => 4,
                ],
                [
                    'Name' => 'ECDHE-ECDSA-AES128-SHA',
                    'Priority' => 5,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES128-SHA',
                    'Priority' => 6,
                ],
                [
                    'Name' => 'DHE-RSA-AES128-SHA',
                    'Priority' => 7,
                ],
                [
                    'Name' => 'ECDHE-ECDSA-AES256-GCM-SHA384',
                    'Priority' => 8,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES256-GCM-SHA384',
                    'Priority' => 9,
                ],
                [
                    'Name' => 'ECDHE-ECDSA-AES256-SHA384',
                    'Priority' => 10,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES256-SHA384',
                    'Priority' => 11,
                ],
                [
                    'Name' => 'ECDHE-RSA-AES256-SHA',
                    'Priority' => 12,
                ],
                [
                    'Name' => 'ECDHE-ECDSA-AES256-SHA',
                    'Priority' => 13,
                ],
                [
                    'Name' => 'AES128-GCM-SHA256',
                    'Priority' => 14,
                ],
                [
                    'Name' => 'AES128-SHA256',
                    'Priority' => 15,
                ],
                [
                    'Name' => 'AES128-SHA',
                    'Priority' => 16,
                ],
                [
                    'Name' => 'AES256-GCM-SHA384',
                    'Priority' => 17,
                ],
                [
                    'Name' => 'AES256-SHA256',
                    'Priority' => 18,
                ],
                [
                    'Name' => 'AES256-SHA',
                    'Priority' => 19,
                ],
            ],
            'Name' => 'ELBSecurityPolicy-2015-05',
            'SslProtocols' => [
                'TLSv1',
                'TLSv1.1',
                'TLSv1.2',
            ],
        ],
    ],
]

DescribeTags

$result = $client->describeTags([/* ... */]);
$promise = $client->describeTagsAsync([/* ... */]);

Describes the tags for the specified Elastic Load Balancing resources. You can describe the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.

Parameter Syntax

$result = $client->describeTags([
    'ResourceArns' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceArns
  • Required: Yes
  • Type: Array of strings

The Amazon Resource Names (ARN) of the resources. You can specify up to 20 resources in a single call.

Result Syntax

[
    'TagDescriptions' => [
        [
            'ResourceArn' => '<string>',
            'Tags' => [
                [
                    'Key' => '<string>',
                    'Value' => '<string>',
                ],
                // ...
            ],
        ],
        // ...
    ],
]

Result Details

Members
TagDescriptions
  • Type: Array of TagDescription structures

Information about the tags.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • ListenerNotFoundException:

    The specified listener does not exist.

  • RuleNotFoundException:

    The specified rule does not exist.

Examples

Example 1: To describe the tags assigned to a load balancer

This example describes the tags assigned to the specified load balancer.

$result = $client->describeTags([
    'ResourceArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    ],
]);

Result syntax:

[
    'TagDescriptions' => [
        [
            'ResourceArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Tags' => [
                [
                    'Key' => 'project',
                    'Value' => 'lima',
                ],
                [
                    'Key' => 'department',
                    'Value' => 'digital-media',
                ],
            ],
        ],
    ],
]

DescribeTargetGroupAttributes

$result = $client->describeTargetGroupAttributes([/* ... */]);
$promise = $client->describeTargetGroupAttributesAsync([/* ... */]);

Describes the attributes for the specified target group.

For more information, see the following:

  • Target group attributes in the Application Load Balancers Guide

  • Target group attributes in the Network Load Balancers Guide

  • Target group attributes in the Gateway Load Balancers Guide

Parameter Syntax

$result = $client->describeTargetGroupAttributes([
    'TargetGroupArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Result Syntax

[
    'Attributes' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Attributes
  • Type: Array of TargetGroupAttribute structures

Information about the target group attributes

Errors

  • TargetGroupNotFoundException:

    The specified target group does not exist.

Examples

Example 1: To describe target group attributes

This example describes the attributes of the specified target group.

$result = $client->describeTargetGroupAttributes([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'stickiness.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'deregistration_delay.timeout_seconds',
            'Value' => '300',
        ],
        [
            'Key' => 'stickiness.type',
            'Value' => 'lb_cookie',
        ],
        [
            'Key' => 'stickiness.lb_cookie.duration_seconds',
            'Value' => '86400',
        ],
    ],
]

DescribeTargetGroups

$result = $client->describeTargetGroups([/* ... */]);
$promise = $client->describeTargetGroupsAsync([/* ... */]);

Describes the specified target groups or all of your target groups. By default, all target groups are described. Alternatively, you can specify one of the following to filter the results: the ARN of the load balancer, the names of one or more target groups, or the ARNs of one or more target groups.

Parameter Syntax

$result = $client->describeTargetGroups([
    'LoadBalancerArn' => '<string>',
    'Marker' => '<string>',
    'Names' => ['<string>', ...],
    'PageSize' => <integer>,
    'TargetGroupArns' => ['<string>', ...],
]);

Parameter Details

Members
LoadBalancerArn
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Marker
  • Type: string

The marker for the next set of results. (You received this marker from a previous call.)

Names
  • Type: Array of strings

The names of the target groups.

PageSize
  • Type: int

The maximum number of results to return with this call.

TargetGroupArns
  • Type: Array of strings

The Amazon Resource Names (ARN) of the target groups.

Result Syntax

[
    'NextMarker' => '<string>',
    'TargetGroups' => [
        [
            'HealthCheckEnabled' => true || false,
            'HealthCheckIntervalSeconds' => <integer>,
            'HealthCheckPath' => '<string>',
            'HealthCheckPort' => '<string>',
            'HealthCheckProtocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'HealthCheckTimeoutSeconds' => <integer>,
            'HealthyThresholdCount' => <integer>,
            'IpAddressType' => 'ipv4|ipv6',
            'LoadBalancerArns' => ['<string>', ...],
            'Matcher' => [
                'GrpcCode' => '<string>',
                'HttpCode' => '<string>',
            ],
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'ProtocolVersion' => '<string>',
            'TargetGroupArn' => '<string>',
            'TargetGroupName' => '<string>',
            'TargetType' => 'instance|ip|lambda|alb',
            'UnhealthyThresholdCount' => <integer>,
            'VpcId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

TargetGroups
  • Type: Array of TargetGroup structures

Information about the target groups.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

Examples

Example 1: To describe a target group

This example describes the specified target group.

$result = $client->describeTargetGroups([
    'TargetGroupArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
    ],
]);

Result syntax:

[
    'TargetGroups' => [
        [
            'HealthCheckIntervalSeconds' => 30,
            'HealthCheckPath' => '/',
            'HealthCheckPort' => 'traffic-port',
            'HealthCheckProtocol' => 'HTTP',
            'HealthCheckTimeoutSeconds' => 5,
            'HealthyThresholdCount' => 5,
            'LoadBalancerArns' => [
                'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            ],
            'Matcher' => [
                'HttpCode' => '200',
            ],
            'Port' => 80,
            'Protocol' => 'HTTP',
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
            'TargetGroupName' => 'my-targets',
            'UnhealthyThresholdCount' => 2,
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]

DescribeTargetHealth

$result = $client->describeTargetHealth([/* ... */]);
$promise = $client->describeTargetHealthAsync([/* ... */]);

Describes the health of the specified targets or all of your targets.

Parameter Syntax

$result = $client->describeTargetHealth([
    'TargetGroupArn' => '<string>', // REQUIRED
    'Targets' => [
        [
            'AvailabilityZone' => '<string>',
            'Id' => '<string>', // REQUIRED
            'Port' => <integer>,
        ],
        // ...
    ],
]);

Parameter Details

Members
TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Targets
  • Type: Array of TargetDescription structures

The targets.

Result Syntax

[
    'TargetHealthDescriptions' => [
        [
            'HealthCheckPort' => '<string>',
            'Target' => [
                'AvailabilityZone' => '<string>',
                'Id' => '<string>',
                'Port' => <integer>,
            ],
            'TargetHealth' => [
                'Description' => '<string>',
                'Reason' => 'Elb.RegistrationInProgress|Elb.InitialHealthChecking|Target.ResponseCodeMismatch|Target.Timeout|Target.FailedHealthChecks|Target.NotRegistered|Target.NotInUse|Target.DeregistrationInProgress|Target.InvalidState|Target.IpUnusable|Target.HealthCheckDisabled|Elb.InternalError',
                'State' => 'initial|healthy|unhealthy|unused|draining|unavailable',
            ],
        ],
        // ...
    ],
]

Result Details

Members
TargetHealthDescriptions
  • Type: Array of TargetHealthDescription structures

Information about the health of the targets.

Errors

  • InvalidTargetException:

    The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • HealthUnavailableException:

    The health of the specified targets could not be retrieved due to an internal error.

Examples

Example 1: To describe the health of the targets for a target group

This example describes the health of the targets for the specified target group. One target is healthy but the other is not specified in an action, so it can't receive traffic from the load balancer.

$result = $client->describeTargetHealth([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
]);

Result syntax:

[
    'TargetHealthDescriptions' => [
        [
            'Target' => [
                'Id' => 'i-0f76fade',
                'Port' => 80,
            ],
            'TargetHealth' => [
                'Description' => 'Given target group is not configured to receive traffic from ELB',
                'Reason' => 'Target.NotInUse',
                'State' => 'unused',
            ],
        ],
        [
            'HealthCheckPort' => '80',
            'Target' => [
                'Id' => 'i-0f76fade',
                'Port' => 80,
            ],
            'TargetHealth' => [
                'State' => 'healthy',
            ],
        ],
    ],
]
Example 2: To describe the health of a target

This example describes the health of the specified target. This target is healthy.

$result = $client->describeTargetHealth([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
    'Targets' => [
        [
            'Id' => 'i-0f76fade',
            'Port' => 80,
        ],
    ],
]);

Result syntax:

[
    'TargetHealthDescriptions' => [
        [
            'HealthCheckPort' => '80',
            'Target' => [
                'Id' => 'i-0f76fade',
                'Port' => 80,
            ],
            'TargetHealth' => [
                'State' => 'healthy',
            ],
        ],
    ],
]

ModifyListener

$result = $client->modifyListener([/* ... */]);
$promise = $client->modifyListenerAsync([/* ... */]);

Replaces the specified properties of the specified listener. Any properties that you do not specify remain unchanged.

Changing the protocol from HTTPS to HTTP, or from TLS to TCP, removes the security policy and default certificate properties. If you change the protocol from HTTP to HTTPS, or from TCP to TLS, you must add the security policy and default certificate properties.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

Parameter Syntax

$result = $client->modifyListener([
    'AlpnPolicy' => ['<string>', ...],
    'Certificates' => [
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
    'DefaultActions' => [
        [
            'AuthenticateCognitoConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'UserPoolArn' => '<string>', // REQUIRED
                'UserPoolClientId' => '<string>', // REQUIRED
                'UserPoolDomain' => '<string>', // REQUIRED
            ],
            'AuthenticateOidcConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'AuthorizationEndpoint' => '<string>', // REQUIRED
                'ClientId' => '<string>', // REQUIRED
                'ClientSecret' => '<string>',
                'Issuer' => '<string>', // REQUIRED
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'TokenEndpoint' => '<string>', // REQUIRED
                'UseExistingClientSecret' => true || false,
                'UserInfoEndpoint' => '<string>', // REQUIRED
            ],
            'FixedResponseConfig' => [
                'ContentType' => '<string>',
                'MessageBody' => '<string>',
                'StatusCode' => '<string>', // REQUIRED
            ],
            'ForwardConfig' => [
                'TargetGroupStickinessConfig' => [
                    'DurationSeconds' => <integer>,
                    'Enabled' => true || false,
                ],
                'TargetGroups' => [
                    [
                        'TargetGroupArn' => '<string>',
                        'Weight' => <integer>,
                    ],
                    // ...
                ],
            ],
            'Order' => <integer>,
            'RedirectConfig' => [
                'Host' => '<string>',
                'Path' => '<string>',
                'Port' => '<string>',
                'Protocol' => '<string>',
                'Query' => '<string>',
                'StatusCode' => 'HTTP_301|HTTP_302', // REQUIRED
            ],
            'TargetGroupArn' => '<string>',
            'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response', // REQUIRED
        ],
        // ...
    ],
    'ListenerArn' => '<string>', // REQUIRED
    'Port' => <integer>,
    'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
    'SslPolicy' => '<string>',
]);

Parameter Details

Members
AlpnPolicy
  • Type: Array of strings

[TLS listeners] The name of the Application-Layer Protocol Negotiation (ALPN) policy. You can specify one policy name. The following are the possible values:

  • HTTP1Only

  • HTTP2Only

  • HTTP2Optional

  • HTTP2Preferred

  • None

For more information, see ALPN policies in the Network Load Balancers Guide.

Certificates
  • Type: Array of Certificate structures

[HTTPS and TLS listeners] The default certificate for the listener. You must provide exactly one certificate. Set CertificateArn to the certificate ARN but do not set IsDefault.

DefaultActions
  • Type: Array of Action structures

The actions for the default rule.

ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Port
  • Type: int

The port for connections from clients to the load balancer. You cannot specify a port for a Gateway Load Balancer.

Protocol
  • Type: string

The protocol for connections from clients to the load balancer. Application Load Balancers support the HTTP and HTTPS protocols. Network Load Balancers support the TCP, TLS, UDP, and TCP_UDP protocols. You can’t change the protocol to UDP or TCP_UDP if dual-stack mode is enabled. You cannot specify a protocol for a Gateway Load Balancer.

SslPolicy
  • Type: string

[HTTPS and TLS listeners] The security policy that defines which protocols and ciphers are supported.

For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.

Result Syntax

[
    'Listeners' => [
        [
            'AlpnPolicy' => ['<string>', ...],
            'Certificates' => [
                [
                    'CertificateArn' => '<string>',
                    'IsDefault' => true || false,
                ],
                // ...
            ],
            'DefaultActions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'ListenerArn' => '<string>',
            'LoadBalancerArn' => '<string>',
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'SslPolicy' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Listeners
  • Type: Array of Listener structures

Information about the modified listener.

Errors

  • DuplicateListenerException:

    A listener with the specified port already exists.

  • TooManyListenersException:

    You've reached the limit on the number of listeners per load balancer.

  • TooManyCertificatesException:

    You've reached the limit on the number of certificates per load balancer.

  • ListenerNotFoundException:

    The specified listener does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • TargetGroupAssociationLimitException:

    You've reached the limit on the number of load balancers per target group.

  • IncompatibleProtocolsException:

    The specified configuration is not valid with this protocol.

  • SSLPolicyNotFoundException:

    The specified SSL policy does not exist.

  • CertificateNotFoundException:

    The specified certificate does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

  • TooManyRegistrationsForTargetIdException:

    You've reached the limit on the number of times a target can be registered with a load balancer.

  • TooManyTargetsException:

    You've reached the limit on the number of targets.

  • TooManyActionsException:

    You've reached the limit on the number of actions per rule.

  • InvalidLoadBalancerActionException:

    The requested action is not valid.

  • TooManyUniqueTargetGroupsPerLoadBalancerException:

    You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

  • ALPNPolicyNotSupportedException:

    The specified ALPN policy is not supported.

Examples

Example 1: To change the default action for a listener

This example changes the default action for the specified listener.

$result = $client->modifyListener([
    'DefaultActions' => [
        [
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f',
            'Type' => 'forward',
        ],
    ],
    'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
]);

Result syntax:

[
    'Listeners' => [
        [
            'DefaultActions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/2453ed029918f21f',
                    'Type' => 'forward',
                ],
            ],
            'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Port' => 80,
            'Protocol' => 'HTTP',
        ],
    ],
]
Example 2: To change the server certificate

This example changes the server certificate for the specified HTTPS listener.

$result = $client->modifyListener([
    'Certificates' => [
        [
            'CertificateArn' => 'arn:aws:iam::123456789012:server-certificate/my-new-server-cert',
        ],
    ],
    'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65',
]);

Result syntax:

[
    'Listeners' => [
        [
            'Certificates' => [
                [
                    'CertificateArn' => 'arn:aws:iam::123456789012:server-certificate/my-new-server-cert',
                ],
            ],
            'DefaultActions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'ListenerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener/app/my-load-balancer/50dc6c495c0c9188/0467ef3c8400ae65',
            'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            'Port' => 443,
            'Protocol' => 'HTTPS',
            'SslPolicy' => 'ELBSecurityPolicy-2015-05',
        ],
    ],
]

ModifyLoadBalancerAttributes

$result = $client->modifyLoadBalancerAttributes([/* ... */]);
$promise = $client->modifyLoadBalancerAttributesAsync([/* ... */]);

Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

If any of the specified attributes can't be modified as requested, the call fails. Any existing attributes that you do not modify retain their current values.

Parameter Syntax

$result = $client->modifyLoadBalancerAttributes([
    'Attributes' => [ // REQUIRED
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
    'LoadBalancerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Attributes
  • Required: Yes
  • Type: Array of LoadBalancerAttribute structures

The load balancer attributes.

LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Result Syntax

[
    'Attributes' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Attributes
  • Type: Array of LoadBalancerAttribute structures

Information about the load balancer attributes.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

Examples

Example 1: To enable deletion protection

This example enables deletion protection for the specified load balancer.

$result = $client->modifyLoadBalancerAttributes([
    'Attributes' => [
        [
            'Key' => 'deletion_protection.enabled',
            'Value' => 'true',
        ],
    ],
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'deletion_protection.enabled',
            'Value' => 'true',
        ],
        [
            'Key' => 'access_logs.s3.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'idle_timeout.timeout_seconds',
            'Value' => '60',
        ],
        [
            'Key' => 'access_logs.s3.prefix',
            'Value' => '',
        ],
        [
            'Key' => 'access_logs.s3.bucket',
            'Value' => '',
        ],
    ],
]
Example 2: To change the idle timeout

This example changes the idle timeout value for the specified load balancer.

$result = $client->modifyLoadBalancerAttributes([
    'Attributes' => [
        [
            'Key' => 'idle_timeout.timeout_seconds',
            'Value' => '30',
        ],
    ],
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'idle_timeout.timeout_seconds',
            'Value' => '30',
        ],
        [
            'Key' => 'access_logs.s3.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'access_logs.s3.prefix',
            'Value' => '',
        ],
        [
            'Key' => 'deletion_protection.enabled',
            'Value' => 'true',
        ],
        [
            'Key' => 'access_logs.s3.bucket',
            'Value' => '',
        ],
    ],
]
Example 3: To enable access logs

This example enables access logs for the specified load balancer. Note that the S3 bucket must exist in the same region as the load balancer and must have a policy attached that grants access to the Elastic Load Balancing service.

$result = $client->modifyLoadBalancerAttributes([
    'Attributes' => [
        [
            'Key' => 'access_logs.s3.enabled',
            'Value' => 'true',
        ],
        [
            'Key' => 'access_logs.s3.bucket',
            'Value' => 'my-loadbalancer-logs',
        ],
        [
            'Key' => 'access_logs.s3.prefix',
            'Value' => 'myapp',
        ],
    ],
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'access_logs.s3.enabled',
            'Value' => 'true',
        ],
        [
            'Key' => 'access_logs.s3.bucket',
            'Value' => 'my-load-balancer-logs',
        ],
        [
            'Key' => 'access_logs.s3.prefix',
            'Value' => 'myapp',
        ],
        [
            'Key' => 'idle_timeout.timeout_seconds',
            'Value' => '60',
        ],
        [
            'Key' => 'deletion_protection.enabled',
            'Value' => 'false',
        ],
    ],
]

ModifyRule

$result = $client->modifyRule([/* ... */]);
$promise = $client->modifyRuleAsync([/* ... */]);

Replaces the specified properties of the specified rule. Any properties that you do not specify are unchanged.

To add an item to a list, remove an item from a list, or update an item in a list, you must provide the entire list. For example, to add an action, specify a list with the current actions plus the new action.

Parameter Syntax

$result = $client->modifyRule([
    'Actions' => [
        [
            'AuthenticateCognitoConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'UserPoolArn' => '<string>', // REQUIRED
                'UserPoolClientId' => '<string>', // REQUIRED
                'UserPoolDomain' => '<string>', // REQUIRED
            ],
            'AuthenticateOidcConfig' => [
                'AuthenticationRequestExtraParams' => ['<string>', ...],
                'AuthorizationEndpoint' => '<string>', // REQUIRED
                'ClientId' => '<string>', // REQUIRED
                'ClientSecret' => '<string>',
                'Issuer' => '<string>', // REQUIRED
                'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                'Scope' => '<string>',
                'SessionCookieName' => '<string>',
                'SessionTimeout' => <integer>,
                'TokenEndpoint' => '<string>', // REQUIRED
                'UseExistingClientSecret' => true || false,
                'UserInfoEndpoint' => '<string>', // REQUIRED
            ],
            'FixedResponseConfig' => [
                'ContentType' => '<string>',
                'MessageBody' => '<string>',
                'StatusCode' => '<string>', // REQUIRED
            ],
            'ForwardConfig' => [
                'TargetGroupStickinessConfig' => [
                    'DurationSeconds' => <integer>,
                    'Enabled' => true || false,
                ],
                'TargetGroups' => [
                    [
                        'TargetGroupArn' => '<string>',
                        'Weight' => <integer>,
                    ],
                    // ...
                ],
            ],
            'Order' => <integer>,
            'RedirectConfig' => [
                'Host' => '<string>',
                'Path' => '<string>',
                'Port' => '<string>',
                'Protocol' => '<string>',
                'Query' => '<string>',
                'StatusCode' => 'HTTP_301|HTTP_302', // REQUIRED
            ],
            'TargetGroupArn' => '<string>',
            'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response', // REQUIRED
        ],
        // ...
    ],
    'Conditions' => [
        [
            'Field' => '<string>',
            'HostHeaderConfig' => [
                'Values' => ['<string>', ...],
            ],
            'HttpHeaderConfig' => [
                'HttpHeaderName' => '<string>',
                'Values' => ['<string>', ...],
            ],
            'HttpRequestMethodConfig' => [
                'Values' => ['<string>', ...],
            ],
            'PathPatternConfig' => [
                'Values' => ['<string>', ...],
            ],
            'QueryStringConfig' => [
                'Values' => [
                    [
                        'Key' => '<string>',
                        'Value' => '<string>',
                    ],
                    // ...
                ],
            ],
            'SourceIpConfig' => [
                'Values' => ['<string>', ...],
            ],
            'Values' => ['<string>', ...],
        ],
        // ...
    ],
    'RuleArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Actions
  • Type: Array of Action structures

The actions.

Conditions
  • Type: Array of RuleCondition structures

The conditions.

RuleArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the rule.

Result Syntax

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'Conditions' => [
                [
                    'Field' => '<string>',
                    'HostHeaderConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'HttpHeaderConfig' => [
                        'HttpHeaderName' => '<string>',
                        'Values' => ['<string>', ...],
                    ],
                    'HttpRequestMethodConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'PathPatternConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'QueryStringConfig' => [
                        'Values' => [
                            [
                                'Key' => '<string>',
                                'Value' => '<string>',
                            ],
                            // ...
                        ],
                    ],
                    'SourceIpConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'Values' => ['<string>', ...],
                ],
                // ...
            ],
            'IsDefault' => true || false,
            'Priority' => '<string>',
            'RuleArn' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Rules
  • Type: Array of Rule structures

Information about the modified rule.

Errors

  • TargetGroupAssociationLimitException:

    You've reached the limit on the number of load balancers per target group.

  • IncompatibleProtocolsException:

    The specified configuration is not valid with this protocol.

  • RuleNotFoundException:

    The specified rule does not exist.

  • OperationNotPermittedException:

    This operation is not allowed.

  • TooManyRegistrationsForTargetIdException:

    You've reached the limit on the number of times a target can be registered with a load balancer.

  • TooManyTargetsException:

    You've reached the limit on the number of targets.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • UnsupportedProtocolException:

    The specified protocol is not supported.

  • TooManyActionsException:

    You've reached the limit on the number of actions per rule.

  • InvalidLoadBalancerActionException:

    The requested action is not valid.

  • TooManyUniqueTargetGroupsPerLoadBalancerException:

    You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

Examples

Example 1: To modify a rule

This example modifies the condition for the specified rule.

$result = $client->modifyRule([
    'Conditions' => [
        [
            'Field' => 'path-pattern',
            'Values' => [
                '/images/*',
            ],
        ],
    ],
    'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee',
]);

Result syntax:

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'Conditions' => [
                [
                    'Field' => 'path-pattern',
                    'Values' => [
                        '/images/*',
                    ],
                ],
            ],
            'IsDefault' => ,
            'Priority' => '10',
            'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee',
        ],
    ],
]

ModifyTargetGroup

$result = $client->modifyTargetGroup([/* ... */]);
$promise = $client->modifyTargetGroupAsync([/* ... */]);

Modifies the health checks used when evaluating the health state of the targets in the specified target group.

Parameter Syntax

$result = $client->modifyTargetGroup([
    'HealthCheckEnabled' => true || false,
    'HealthCheckIntervalSeconds' => <integer>,
    'HealthCheckPath' => '<string>',
    'HealthCheckPort' => '<string>',
    'HealthCheckProtocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
    'HealthCheckTimeoutSeconds' => <integer>,
    'HealthyThresholdCount' => <integer>,
    'Matcher' => [
        'GrpcCode' => '<string>',
        'HttpCode' => '<string>',
    ],
    'TargetGroupArn' => '<string>', // REQUIRED
    'UnhealthyThresholdCount' => <integer>,
]);

Parameter Details

Members
HealthCheckEnabled
  • Type: boolean

Indicates whether health checks are enabled.

HealthCheckIntervalSeconds
  • Type: int

The approximate amount of time, in seconds, between health checks of an individual target.

HealthCheckPath
  • Type: string

[HTTP/HTTPS health checks] The destination for health checks on the targets.

[HTTP1 or HTTP2 protocol version] The ping path. The default is /.

[GRPC protocol version] The path of a custom health check method with the format /package.service/method. The default is /Amazon Web Services.ALB/healthcheck.

HealthCheckPort
  • Type: string

The port the load balancer uses when performing health checks on targets.

HealthCheckProtocol
  • Type: string

The protocol the load balancer uses when performing health checks on targets. For Application Load Balancers, the default is HTTP. For Network Load Balancers and Gateway Load Balancers, the default is TCP. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. It is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

HealthCheckTimeoutSeconds
  • Type: int

[HTTP/HTTPS health checks] The amount of time, in seconds, during which no response means a failed health check.

HealthyThresholdCount
  • Type: int

The number of consecutive health checks successes required before considering an unhealthy target healthy.

Matcher
  • Type: Matcher structure

[HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for a successful response from a target. For target groups with a protocol of TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol of HTTP or HTTPS, the range is 200-499. For target groups with a protocol of GENEVE, the range is 200-399.

TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

UnhealthyThresholdCount
  • Type: int

The number of consecutive health check failures required before considering the target unhealthy.

Result Syntax

[
    'TargetGroups' => [
        [
            'HealthCheckEnabled' => true || false,
            'HealthCheckIntervalSeconds' => <integer>,
            'HealthCheckPath' => '<string>',
            'HealthCheckPort' => '<string>',
            'HealthCheckProtocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'HealthCheckTimeoutSeconds' => <integer>,
            'HealthyThresholdCount' => <integer>,
            'IpAddressType' => 'ipv4|ipv6',
            'LoadBalancerArns' => ['<string>', ...],
            'Matcher' => [
                'GrpcCode' => '<string>',
                'HttpCode' => '<string>',
            ],
            'Port' => <integer>,
            'Protocol' => 'HTTP|HTTPS|TCP|TLS|UDP|TCP_UDP|GENEVE',
            'ProtocolVersion' => '<string>',
            'TargetGroupArn' => '<string>',
            'TargetGroupName' => '<string>',
            'TargetType' => 'instance|ip|lambda|alb',
            'UnhealthyThresholdCount' => <integer>,
            'VpcId' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
TargetGroups
  • Type: Array of TargetGroup structures

Information about the modified target group.

Errors

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

Examples

Example 1: To modify the health check configuration for a target group

This example changes the configuration of the health checks used to evaluate the health of the targets for the specified target group.

$result = $client->modifyTargetGroup([
    'HealthCheckPort' => '443',
    'HealthCheckProtocol' => 'HTTPS',
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f',
]);

Result syntax:

[
    'TargetGroups' => [
        [
            'HealthCheckIntervalSeconds' => 30,
            'HealthCheckPort' => '443',
            'HealthCheckProtocol' => 'HTTPS',
            'HealthCheckTimeoutSeconds' => 5,
            'HealthyThresholdCount' => 5,
            'LoadBalancerArns' => [
                'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
            ],
            'Matcher' => [
                'HttpCode' => '200',
            ],
            'Port' => 443,
            'Protocol' => 'HTTPS',
            'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-https-targets/2453ed029918f21f',
            'TargetGroupName' => 'my-https-targets',
            'UnhealthyThresholdCount' => 2,
            'VpcId' => 'vpc-3ac0fb5f',
        ],
    ],
]

ModifyTargetGroupAttributes

$result = $client->modifyTargetGroupAttributes([/* ... */]);
$promise = $client->modifyTargetGroupAttributesAsync([/* ... */]);

Modifies the specified attributes of the specified target group.

Parameter Syntax

$result = $client->modifyTargetGroupAttributes([
    'Attributes' => [ // REQUIRED
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
    'TargetGroupArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Attributes
  • Required: Yes
  • Type: Array of TargetGroupAttribute structures

The attributes.

TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Result Syntax

[
    'Attributes' => [
        [
            'Key' => '<string>',
            'Value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Attributes
  • Type: Array of TargetGroupAttribute structures

Information about the attributes.

Errors

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

Examples

Example 1: To modify the deregistration delay timeout

This example sets the deregistration delay timeout to the specified value for the specified target group.

$result = $client->modifyTargetGroupAttributes([
    'Attributes' => [
        [
            'Key' => 'deregistration_delay.timeout_seconds',
            'Value' => '600',
        ],
    ],
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
]);

Result syntax:

[
    'Attributes' => [
        [
            'Key' => 'stickiness.enabled',
            'Value' => 'false',
        ],
        [
            'Key' => 'deregistration_delay.timeout_seconds',
            'Value' => '600',
        ],
        [
            'Key' => 'stickiness.type',
            'Value' => 'lb_cookie',
        ],
        [
            'Key' => 'stickiness.lb_cookie.duration_seconds',
            'Value' => '86400',
        ],
    ],
]

RegisterTargets

$result = $client->registerTargets([/* ... */]);
$promise = $client->registerTargetsAsync([/* ... */]);

Registers the specified targets with the specified target group.

If the target is an EC2 instance, it must be in the running state when you register it.

By default, the load balancer routes requests to registered targets using the protocol and port for the target group. Alternatively, you can override the port for a target when you register it. You can register each EC2 instance or IP address with the same target group multiple times using different ports.

With a Network Load Balancer, you cannot register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, and T1. You can register instances of these types by IP address.

Parameter Syntax

$result = $client->registerTargets([
    'TargetGroupArn' => '<string>', // REQUIRED
    'Targets' => [ // REQUIRED
        [
            'AvailabilityZone' => '<string>',
            'Id' => '<string>', // REQUIRED
            'Port' => <integer>,
        ],
        // ...
    ],
]);

Parameter Details

Members
TargetGroupArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Targets
  • Required: Yes
  • Type: Array of TargetDescription structures

The targets.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • TooManyTargetsException:

    You've reached the limit on the number of targets.

  • InvalidTargetException:

    The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.

  • TooManyRegistrationsForTargetIdException:

    You've reached the limit on the number of times a target can be registered with a load balancer.

Examples

Example 1: To register targets with a target group

This example registers the specified instances with the specified target group.

$result = $client->registerTargets([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
    'Targets' => [
        [
            'Id' => 'i-80c8dd94',
        ],
        [
            'Id' => 'i-ceddcd4d',
        ],
    ],
]);
Example 2: To register targets with a target group using port overrides

This example registers the specified instance with the specified target group using multiple ports. This enables you to register ECS containers on the same instance as targets in the target group.

$result = $client->registerTargets([
    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-new-targets/3bb63f11dfb0faf9',
    'Targets' => [
        [
            'Id' => 'i-80c8dd94',
            'Port' => 80,
        ],
        [
            'Id' => 'i-80c8dd94',
            'Port' => 766,
        ],
    ],
]);

RemoveListenerCertificates

$result = $client->removeListenerCertificates([/* ... */]);
$promise = $client->removeListenerCertificatesAsync([/* ... */]);

Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.

Parameter Syntax

$result = $client->removeListenerCertificates([
    'Certificates' => [ // REQUIRED
        [
            'CertificateArn' => '<string>',
            'IsDefault' => true || false,
        ],
        // ...
    ],
    'ListenerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
Certificates
  • Required: Yes
  • Type: Array of Certificate structures

The certificate to remove. You can specify one certificate per call. Set CertificateArn to the certificate ARN but do not set IsDefault.

ListenerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the listener.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ListenerNotFoundException:

    The specified listener does not exist.

  • OperationNotPermittedException:

    This operation is not allowed.

RemoveTags

$result = $client->removeTags([/* ... */]);
$promise = $client->removeTagsAsync([/* ... */]);

Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.

Parameter Syntax

$result = $client->removeTags([
    'ResourceArns' => ['<string>', ...], // REQUIRED
    'TagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
ResourceArns
  • Required: Yes
  • Type: Array of strings

The Amazon Resource Name (ARN) of the resource.

TagKeys
  • Required: Yes
  • Type: Array of strings

The tag keys for the tags to remove.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • TargetGroupNotFoundException:

    The specified target group does not exist.

  • ListenerNotFoundException:

    The specified listener does not exist.

  • RuleNotFoundException:

    The specified rule does not exist.

  • TooManyTagsException:

    You've reached the limit on the number of tags per load balancer.

Examples

Example 1: To remove tags from a load balancer

This example removes the specified tags from the specified load balancer.

$result = $client->removeTags([
    'ResourceArns' => [
        'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    ],
    'TagKeys' => [
        'project',
        'department',
    ],
]);

SetIpAddressType

$result = $client->setIpAddressType([/* ... */]);
$promise = $client->setIpAddressTypeAsync([/* ... */]);

Sets the type of IP addresses used by the subnets of the specified load balancer.

Parameter Syntax

$result = $client->setIpAddressType([
    'IpAddressType' => 'ipv4|dualstack', // REQUIRED
    'LoadBalancerArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
IpAddressType
  • Required: Yes
  • Type: string

The IP address type. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener.

LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Result Syntax

[
    'IpAddressType' => 'ipv4|dualstack',
]

Result Details

Members
IpAddressType
  • Type: string

The IP address type.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • InvalidSubnetException:

    The specified subnet is out of available addresses.

SetRulePriorities

$result = $client->setRulePriorities([/* ... */]);
$promise = $client->setRulePrioritiesAsync([/* ... */]);

Sets the priorities of the specified rules.

You can reorder the rules as long as there are no priority conflicts in the new order. Any existing rules that you do not specify retain their current priority.

Parameter Syntax

$result = $client->setRulePriorities([
    'RulePriorities' => [ // REQUIRED
        [
            'Priority' => <integer>,
            'RuleArn' => '<string>',
        ],
        // ...
    ],
]);

Parameter Details

Members
RulePriorities
  • Required: Yes
  • Type: Array of RulePriorityPair structures

The rule priorities.

Result Syntax

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'AuthenticateCognitoConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'UserPoolArn' => '<string>',
                        'UserPoolClientId' => '<string>',
                        'UserPoolDomain' => '<string>',
                    ],
                    'AuthenticateOidcConfig' => [
                        'AuthenticationRequestExtraParams' => ['<string>', ...],
                        'AuthorizationEndpoint' => '<string>',
                        'ClientId' => '<string>',
                        'ClientSecret' => '<string>',
                        'Issuer' => '<string>',
                        'OnUnauthenticatedRequest' => 'deny|allow|authenticate',
                        'Scope' => '<string>',
                        'SessionCookieName' => '<string>',
                        'SessionTimeout' => <integer>,
                        'TokenEndpoint' => '<string>',
                        'UseExistingClientSecret' => true || false,
                        'UserInfoEndpoint' => '<string>',
                    ],
                    'FixedResponseConfig' => [
                        'ContentType' => '<string>',
                        'MessageBody' => '<string>',
                        'StatusCode' => '<string>',
                    ],
                    'ForwardConfig' => [
                        'TargetGroupStickinessConfig' => [
                            'DurationSeconds' => <integer>,
                            'Enabled' => true || false,
                        ],
                        'TargetGroups' => [
                            [
                                'TargetGroupArn' => '<string>',
                                'Weight' => <integer>,
                            ],
                            // ...
                        ],
                    ],
                    'Order' => <integer>,
                    'RedirectConfig' => [
                        'Host' => '<string>',
                        'Path' => '<string>',
                        'Port' => '<string>',
                        'Protocol' => '<string>',
                        'Query' => '<string>',
                        'StatusCode' => 'HTTP_301|HTTP_302',
                    ],
                    'TargetGroupArn' => '<string>',
                    'Type' => 'forward|authenticate-oidc|authenticate-cognito|redirect|fixed-response',
                ],
                // ...
            ],
            'Conditions' => [
                [
                    'Field' => '<string>',
                    'HostHeaderConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'HttpHeaderConfig' => [
                        'HttpHeaderName' => '<string>',
                        'Values' => ['<string>', ...],
                    ],
                    'HttpRequestMethodConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'PathPatternConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'QueryStringConfig' => [
                        'Values' => [
                            [
                                'Key' => '<string>',
                                'Value' => '<string>',
                            ],
                            // ...
                        ],
                    ],
                    'SourceIpConfig' => [
                        'Values' => ['<string>', ...],
                    ],
                    'Values' => ['<string>', ...],
                ],
                // ...
            ],
            'IsDefault' => true || false,
            'Priority' => '<string>',
            'RuleArn' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
Rules
  • Type: Array of Rule structures

Information about the rules.

Errors

  • RuleNotFoundException:

    The specified rule does not exist.

  • PriorityInUseException:

    The specified priority is in use.

  • OperationNotPermittedException:

    This operation is not allowed.

Examples

Example 1: To set the rule priority

This example sets the priority of the specified rule.

$result = $client->setRulePriorities([
    'RulePriorities' => [
        [
            'Priority' => 5,
            'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3',
        ],
    ],
]);

Result syntax:

[
    'Rules' => [
        [
            'Actions' => [
                [
                    'TargetGroupArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067',
                    'Type' => 'forward',
                ],
            ],
            'Conditions' => [
                [
                    'Field' => 'path-pattern',
                    'Values' => [
                        '/img/*',
                    ],
                ],
            ],
            'IsDefault' => ,
            'Priority' => '5',
            'RuleArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/1291d13826f405c3',
        ],
    ],
]

SetSecurityGroups

$result = $client->setSecurityGroups([/* ... */]);
$promise = $client->setSecurityGroupsAsync([/* ... */]);

Associates the specified security groups with the specified Application Load Balancer. The specified security groups override the previously associated security groups.

You can't specify a security group for a Network Load Balancer or Gateway Load Balancer.

Parameter Syntax

$result = $client->setSecurityGroups([
    'LoadBalancerArn' => '<string>', // REQUIRED
    'SecurityGroups' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

SecurityGroups
  • Required: Yes
  • Type: Array of strings

The IDs of the security groups.

Result Syntax

[
    'SecurityGroupIds' => ['<string>', ...],
]

Result Details

Members
SecurityGroupIds
  • Type: Array of strings

The IDs of the security groups associated with the load balancer.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • InvalidSecurityGroupException:

    The specified security group does not exist.

Examples

Example 1: To associate a security group with a load balancer

This example associates the specified security group with the specified load balancer.

$result = $client->setSecurityGroups([
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    'SecurityGroups' => [
        'sg-5943793c',
    ],
]);

Result syntax:

[
    'SecurityGroupIds' => [
        'sg-5943793c',
    ],
]

SetSubnets

$result = $client->setSubnets([/* ... */]);
$promise = $client->setSubnetsAsync([/* ... */]);

Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer or Network Load Balancer. The specified subnets replace the previously enabled subnets.

When you specify subnets for a Network Load Balancer, you must include all subnets that were enabled previously, with their existing configurations, plus any additional subnets.

Parameter Syntax

$result = $client->setSubnets([
    'IpAddressType' => 'ipv4|dualstack',
    'LoadBalancerArn' => '<string>', // REQUIRED
    'SubnetMappings' => [
        [
            'AllocationId' => '<string>',
            'IPv6Address' => '<string>',
            'PrivateIPv4Address' => '<string>',
            'SubnetId' => '<string>',
        ],
        // ...
    ],
    'Subnets' => ['<string>', ...],
]);

Parameter Details

Members
IpAddressType
  • Type: string

[Network Load Balancers] The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses). You can’t specify dualstack for a load balancer with a UDP or TCP_UDP listener. .

LoadBalancerArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

SubnetMappings
  • Type: Array of SubnetMapping structures

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet if you need static IP addresses for your internet-facing load balancer. For internal load balancers, you can specify one private IP address per subnet from the IPv4 range of the subnet. For internet-facing load balancer, you can specify one IPv6 address per subnet.

Subnets
  • Type: Array of strings

The IDs of the public subnets. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.

[Application Load Balancers] You must specify subnets from at least two Availability Zones.

[Application Load Balancers on Outposts] You must specify one Outpost subnet.

[Application Load Balancers on Local Zones] You can specify subnets from one or more Local Zones.

[Network Load Balancers] You can specify subnets from one or more Availability Zones.

Result Syntax

[
    'AvailabilityZones' => [
        [
            'LoadBalancerAddresses' => [
                [
                    'AllocationId' => '<string>',
                    'IPv6Address' => '<string>',
                    'IpAddress' => '<string>',
                    'PrivateIPv4Address' => '<string>',
                ],
                // ...
            ],
            'OutpostId' => '<string>',
            'SubnetId' => '<string>',
            'ZoneName' => '<string>',
        ],
        // ...
    ],
    'IpAddressType' => 'ipv4|dualstack',
]

Result Details

Members
AvailabilityZones
  • Type: Array of AvailabilityZone structures

Information about the subnets.

IpAddressType
  • Type: string

[Network Load Balancers] The IP address type.

Errors

  • LoadBalancerNotFoundException:

    The specified load balancer does not exist.

  • InvalidConfigurationRequestException:

    The requested configuration is not valid.

  • SubnetNotFoundException:

    The specified subnet does not exist.

  • InvalidSubnetException:

    The specified subnet is out of available addresses.

  • AllocationIdNotFoundException:

    The specified allocation ID does not exist.

  • AvailabilityZoneNotSupportedException:

    The specified Availability Zone is not supported.

Examples

Example 1: To enable Availability Zones for a load balancer

This example enables the Availability Zones for the specified subnets for the specified load balancer.

$result = $client->setSubnets([
    'LoadBalancerArn' => 'arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188',
    'Subnets' => [
        'subnet-8360a9e7',
        'subnet-b7d581c0',
    ],
]);

Result syntax:

[
    'AvailabilityZones' => [
        [
            'SubnetId' => 'subnet-8360a9e7',
            'ZoneName' => 'us-west-2a',
        ],
        [
            'SubnetId' => 'subnet-b7d581c0',
            'ZoneName' => 'us-west-2b',
        ],
    ],
]

Shapes

ALPNPolicyNotSupportedException

Description

The specified ALPN policy is not supported.

Members

Action

Description

Information about an action.

Each rule must include exactly one of the following types of actions: forward, fixed-response, or redirect, and it must be the last action to be performed.

Members
AuthenticateCognitoConfig
  • Type: AuthenticateCognitoActionConfig structure

[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type is authenticate-cognito.

AuthenticateOidcConfig
  • Type: AuthenticateOidcActionConfig structure

[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type is authenticate-oidc.

FixedResponseConfig
  • Type: FixedResponseActionConfig structure

[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type is fixed-response.

ForwardConfig
  • Type: ForwardActionConfig structure

Information for creating an action that distributes requests among one or more target groups. For Network Load Balancers, you can specify a single target group. Specify only when Type is forward. If you specify both ForwardConfig and TargetGroupArn, you can specify only one target group using ForwardConfig and it must be the same target group specified in TargetGroupArn.

Order
  • Type: int

The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.

RedirectConfig
  • Type: RedirectActionConfig structure

[Application Load Balancer] Information for creating a redirect action. Specify only when Type is redirect.

TargetGroupArn
  • Type: string

The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward and you want to route to a single target group. To route to one or more target groups, use ForwardConfig instead.

Type
  • Required: Yes
  • Type: string

The type of action.

AddListenerCertificatesOutput

Members
Certificates
  • Type: Array of Certificate structures

Information about the certificates in the certificate list.

AddTagsOutput

Members

AllocationIdNotFoundException

Description

The specified allocation ID does not exist.

Members

AuthenticateCognitoActionConfig

Description

Request parameters to use when integrating with Amazon Cognito to authenticate users.

Members
AuthenticationRequestExtraParams
  • Type: Associative array of custom strings keys (AuthenticateCognitoActionAuthenticationRequestParamName) to strings

The query parameters (up to 10) to include in the redirect request to the authorization endpoint.

OnUnauthenticatedRequest
  • Type: string

The behavior if the user is not authenticated. The following are possible values:

  • deny - Return an HTTP 401 Unauthorized error.

  • allow - Allow the request to be forwarded to the target.

  • authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.

Scope
  • Type: string

The set of user claims to be requested from the IdP. The default is openid.

To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.

SessionCookieName
  • Type: string

The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie.

SessionTimeout
  • Type: long (int|float)

The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days).

UserPoolArn
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the Amazon Cognito user pool.

UserPoolClientId
  • Required: Yes
  • Type: string

The ID of the Amazon Cognito user pool client.

UserPoolDomain
  • Required: Yes
  • Type: string

The domain prefix or fully-qualified domain name of the Amazon Cognito user pool.

AuthenticateOidcActionConfig

Description

Request parameters when using an identity provider (IdP) that is compliant with OpenID Connect (OIDC) to authenticate users.

Members
AuthenticationRequestExtraParams
  • Type: Associative array of custom strings keys (AuthenticateOidcActionAuthenticationRequestParamName) to strings

The query parameters (up to 10) to include in the redirect request to the authorization endpoint.

AuthorizationEndpoint
  • Required: Yes
  • Type: string

The authorization endpoint of the IdP. This must be a full URL, including the HTTPS protocol, the domain, and the path.

ClientId
  • Required: Yes
  • Type: string

The OAuth 2.0 client identifier.

ClientSecret
  • Type: string

The OAuth 2.0 client secret. This parameter is required if you are creating a rule. If you are modifying a rule, you can omit this parameter if you set UseExistingClientSecret to true.

Issuer
  • Required: Yes
  • Type: string

The OIDC issuer identifier of the IdP. This must be a full URL, including the HTTPS protocol, the domain, and the path.

OnUnauthenticatedRequest
  • Type: string

The behavior if the user is not authenticated. The following are possible values:

  • deny - Return an HTTP 401 Unauthorized error.

  • allow - Allow the request to be forwarded to the target.

  • authenticate - Redirect the request to the IdP authorization endpoint. This is the default value.

Scope
  • Type: string

The set of user claims to be requested from the IdP. The default is openid.

To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.

SessionCookieName
  • Type: string

The name of the cookie used to maintain session information. The default is AWSELBAuthSessionCookie.

SessionTimeout
  • Type: long (int|float)

The maximum duration of the authentication session, in seconds. The default is 604800 seconds (7 days).

TokenEndpoint
  • Required: Yes
  • Type: string

The token endpoint of the IdP. This must be a full URL, including the HTTPS protocol, the domain, and the path.

UseExistingClientSecret
  • Type: boolean

Indicates whether to use the existing client secret when modifying a rule. If you are creating a rule, you can omit this parameter or set it to false.

UserInfoEndpoint
  • Required: Yes
  • Type: string

The user info endpoint of the IdP. This must be a full URL, including the HTTPS protocol, the domain, and the path.

AvailabilityZone

Description

Information about an Availability Zone.

Members
LoadBalancerAddresses
  • Type: Array of LoadBalancerAddress structures

[Network Load Balancers] If you need static IP addresses for your load balancer, you can specify one Elastic IP address per Availability Zone when you create an internal-facing load balancer. For internal load balancers, you can specify a private IP address from the IPv4 range of the subnet.

OutpostId
  • Type: string

[Application Load Balancers on Outposts] The ID of the Outpost.

SubnetId
  • Type: string

The ID of the subnet. You can specify one subnet per Availability Zone.

ZoneName
  • Type: string

The name of the Availability Zone.

AvailabilityZoneNotSupportedException

Description

The specified Availability Zone is not supported.

Members

Certificate

Description

Information about an SSL server certificate.

Members
CertificateArn
  • Type: string

The Amazon Resource Name (ARN) of the certificate.

IsDefault
  • Type: boolean

Indicates whether the certificate is the default certificate. Do not set this value when specifying a certificate as an input. This value is not included in the output when describing a listener, but is included when describing listener certificates.

CertificateNotFoundException

Description

The specified certificate does not exist.

Members

Cipher

Description

Information about a cipher used in a policy.

Members
Name
  • Type: string

The name of the cipher.

Priority
  • Type: int

The priority of the cipher.

CreateListenerOutput

Members
Listeners
  • Type: Array of Listener structures

Information about the listener.

CreateLoadBalancerOutput

Members
LoadBalancers
  • Type: Array of LoadBalancer structures

Information about the load balancer.

CreateRuleOutput

Members
Rules
  • Type: Array of Rule structures

Information about the rule.

CreateTargetGroupOutput

Members
TargetGroups
  • Type: Array of TargetGroup structures

Information about the target group.

DeleteListenerOutput

Members

DeleteLoadBalancerOutput

Members

DeleteRuleOutput

Members

DeleteTargetGroupOutput

Members

DeregisterTargetsOutput

Members

DescribeAccountLimitsOutput

Members
Limits
  • Type: Array of Limit structures

Information about the limits.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

DescribeListenerCertificatesOutput

Members
Certificates
  • Type: Array of Certificate structures

Information about the certificates.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

DescribeListenersOutput

Members
Listeners
  • Type: Array of Listener structures

Information about the listeners.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

DescribeLoadBalancerAttributesOutput

Members
Attributes
  • Type: Array of LoadBalancerAttribute structures

Information about the load balancer attributes.

DescribeLoadBalancersOutput

Members
LoadBalancers
  • Type: Array of LoadBalancer structures

Information about the load balancers.

NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

DescribeRulesOutput

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

Rules
  • Type: Array of Rule structures

Information about the rules.

DescribeSSLPoliciesOutput

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

SslPolicies
  • Type: Array of SslPolicy structures

Information about the security policies.

DescribeTagsOutput

Members
TagDescriptions
  • Type: Array of TagDescription structures

Information about the tags.

DescribeTargetGroupAttributesOutput

Members
Attributes
  • Type: Array of TargetGroupAttribute structures

Information about the target group attributes

DescribeTargetGroupsOutput

Members
NextMarker
  • Type: string

If there are additional results, this is the marker for the next set of results. Otherwise, this is null.

TargetGroups
  • Type: Array of TargetGroup structures

Information about the target groups.

DescribeTargetHealthOutput

Members
TargetHealthDescriptions
  • Type: Array of TargetHealthDescription structures

Information about the health of the targets.

DuplicateListenerException

Description

A listener with the specified port already exists.

Members

DuplicateLoadBalancerNameException

Description

A load balancer with the specified name already exists.

Members

DuplicateTagKeysException

Description

A tag key was specified more than once.

Members

DuplicateTargetGroupNameException

Description

A target group with the specified name already exists.

Members

FixedResponseActionConfig

Description

Information about an action that returns a custom HTTP response.

Members
ContentType
  • Type: string

The content type.

Valid Values: text/plain | text/css | text/html | application/javascript | application/json

MessageBody
  • Type: string

The message.

StatusCode
  • Required: Yes
  • Type: string

The HTTP response code (2XX, 4XX, or 5XX).

ForwardActionConfig

Description

Information about a forward action.

Members
TargetGroupStickinessConfig
  • Type: TargetGroupStickinessConfig structure

The target group stickiness for the rule.

TargetGroups
  • Type: Array of TargetGroupTuple structures

The target groups. For Network Load Balancers, you can specify a single target group.

HealthUnavailableException

Description

The health of the specified targets could not be retrieved due to an internal error.

Members

HostHeaderConditionConfig

Description

Information about a host header condition.

Members
Values
  • Type: Array of strings

The host names. The maximum size of each name is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If you specify multiple strings, the condition is satisfied if one of the strings matches the host name.

HttpHeaderConditionConfig

Description

Information about an HTTP header condition.

There is a set of standard HTTP header fields. You can also define custom HTTP header fields.

Members
HttpHeaderName
  • Type: string

The name of the HTTP header field. The maximum size is 40 characters. The header name is case insensitive. The allowed characters are specified by RFC 7230. Wildcards are not supported.

You can't use an HTTP header condition to specify the host header. Use HostHeaderConditionConfig to specify a host header condition.

Values
  • Type: Array of strings

The strings to compare against the value of the HTTP header. The maximum size of each string is 128 characters. The comparison strings are case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If the same header appears multiple times in the request, we search them in order until a match is found.

If you specify multiple strings, the condition is satisfied if one of the strings matches the value of the HTTP header. To require that all of the strings are a match, create one condition per string.

HttpRequestMethodConditionConfig

Description

Information about an HTTP method condition.

HTTP defines a set of request methods, also referred to as HTTP verbs. For more information, see the HTTP Method Registry. You can also define custom HTTP methods.

Members
Values
  • Type: Array of strings

The name of the request method. The maximum size is 40 characters. The allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is case sensitive. Wildcards are not supported; therefore, the method name must be an exact match.

If you specify multiple strings, the condition is satisfied if one of the strings matches the HTTP request method. We recommend that you route GET and HEAD requests in the same way, because the response to a HEAD request may be cached.

IncompatibleProtocolsException

Description

The specified configuration is not valid with this protocol.

Members

InvalidConfigurationRequestException

Description

The requested configuration is not valid.

Members

InvalidLoadBalancerActionException

Description

The requested action is not valid.

Members

InvalidSchemeException

Description

The requested scheme is not valid.

Members

InvalidSecurityGroupException

Description

The specified security group does not exist.

Members

InvalidSubnetException

Description

The specified subnet is out of available addresses.

Members

InvalidTargetException

Description

The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.

Members

Limit

Description

Information about an Elastic Load Balancing resource limit for your Amazon Web Services account.

Members
Max
  • Type: string

The maximum value of the limit.

Name
  • Type: string

The name of the limit. The possible values are:

  • application-load-balancers

  • condition-values-per-alb-rule

  • condition-wildcards-per-alb-rule

  • gateway-load-balancers

  • gateway-load-balancers-per-vpc

  • geneve-target-groups

  • listeners-per-application-load-balancer

  • listeners-per-network-load-balancer

  • network-load-balancers

  • rules-per-application-load-balancer

  • target-groups

  • target-groups-per-action-on-application-load-balancer

  • target-groups-per-action-on-network-load-balancer

  • target-groups-per-application-load-balancer

  • targets-per-application-load-balancer

  • targets-per-availability-zone-per-gateway-load-balancer

  • targets-per-availability-zone-per-network-load-balancer

  • targets-per-network-load-balancer

Listener

Description

Information about a listener.

Members
AlpnPolicy
  • Type: Array of strings

[TLS listener] The name of the Application-Layer Protocol Negotiation (ALPN) policy.

Certificates
  • Type: Array of Certificate structures

[HTTPS or TLS listener] The default certificate for the listener.

DefaultActions
  • Type: Array of Action structures

The default actions for the listener.

ListenerArn
  • Type: string

The Amazon Resource Name (ARN) of the listener.

LoadBalancerArn
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

Port
  • Type: int

The port on which the load balancer is listening.

Protocol
  • Type: string

The protocol for connections from clients to the load balancer.

SslPolicy
  • Type: string

[HTTPS or TLS listener] The security policy that defines which protocols and ciphers are supported.

ListenerNotFoundException

Description

The specified listener does not exist.

Members

LoadBalancer

Description

Information about a load balancer.

Members
AvailabilityZones
  • Type: Array of AvailabilityZone structures

The subnets for the load balancer.

CanonicalHostedZoneId
  • Type: string

The ID of the Amazon Route 53 hosted zone associated with the load balancer.

CreatedTime
  • Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time the load balancer was created.

CustomerOwnedIpv4Pool
  • Type: string

[Application Load Balancers on Outposts] The ID of the customer-owned address pool.

DNSName
  • Type: string

The public DNS name of the load balancer.

IpAddressType
  • Type: string

The type of IP addresses used by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).

LoadBalancerArn
  • Type: string

The Amazon Resource Name (ARN) of the load balancer.

LoadBalancerName
  • Type: string

The name of the load balancer.

Scheme
  • Type: string

The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.

The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.

SecurityGroups
  • Type: Array of strings

The IDs of the security groups for the load balancer.

State
  • Type: LoadBalancerState structure

The state of the load balancer.

Type
  • Type: string

The type of load balancer.

VpcId
  • Type: string

The ID of the VPC for the load balancer.

LoadBalancerAddress

Description

Information about a static IP address for a load balancer.

Members
AllocationId
  • Type: string

[Network Load Balancers] The allocation ID of the Elastic IP address for an internal-facing load balancer.

IPv6Address
  • Type: string

[Network Load Balancers] The IPv6 address.

IpAddress
  • Type: string

The static IP address.

PrivateIPv4Address
  • Type: string

[Network Load Balancers] The private IPv4 address for an internal load balancer.

LoadBalancerAttribute

Description

Information about a load balancer attribute.

Members
Key
  • Type: string

The name of the attribute.

The following attributes are supported by all load balancers:

  • deletion_protection.enabled - Indicates whether deletion protection is enabled. The value is true or false. The default is false.

  • load_balancing.cross_zone.enabled - Indicates whether cross-zone load balancing is enabled. The possible values are true and false. The default for Network Load Balancers and Gateway Load Balancers is false. The default for Application Load Balancers is true, and cannot be changed.

The following attributes are supported by both Application Load Balancers and Network Load Balancers:

  • access_logs.s3.enabled - Indicates whether access logs are enabled. The value is true or false. The default is false.

  • access_logs.s3.bucket - The name of the S3 bucket for the access logs. This attribute is required if access logs are enabled. The bucket must exist in the same region as the load balancer and have a bucket policy that grants Elastic Load Balancing permissions to write to the bucket.

  • access_logs.s3.prefix - The prefix for the location in the S3 bucket for the access logs.

  • ipv6.deny_all_igw_traffic - Blocks internet gateway (IGW) access to the load balancer. It is set to false for internet-facing load balancers and true for internal load balancers, preventing unintended access to your internal load balancer through an internet gateway.

The following attributes are supported by only Application Load Balancers:

  • idle_timeout.timeout_seconds - The idle timeout value, in seconds. The valid range is 1-4000 seconds. The default is 60 seconds.

  • routing.http.desync_mitigation_mode - Determines how the load balancer handles requests that might pose a security risk to your application. The possible values are monitor, defensive, and strictest. The default is defensive.

  • routing.http.drop_invalid_header_fields.enabled - Indicates whether HTTP headers with invalid header fields are removed by the load balancer (true) or routed to targets (false). The default is false.

  • routing.http.preserve_host_header.enabled - Indicates whether the Application Load Balancer should preserve the Host header in the HTTP request and send it to the target without any change. The possible values are true and false. The default is false.

  • routing.http.x_amzn_tls_version_and_cipher_suite.enabled - Indicates whether the two headers (x-amzn-tls-version and x-amzn-tls-cipher-suite), which contain information about the negotiated TLS version and cipher suite, are added to the client request before sending it to the target. The x-amzn-tls-version header has information about the TLS protocol version negotiated with the client, and the x-amzn-tls-cipher-suite header has information about the cipher suite negotiated with the client. Both headers are in OpenSSL format. The possible values for the attribute are true and false. The default is false.

  • routing.http.xff_client_port.enabled - Indicates whether the X-Forwarded-For header should preserve the source port that the client used to connect to the load balancer. The possible values are true and false. The default is false.

  • routing.http.xff_header_processing.mode - Enables you to modify, preserve, or remove the X-Forwarded-For header in the HTTP request before the Application Load Balancer sends the request to the target. The possible values are append, preserve, and remove. The default is append.

    • If the value is append, the Application Load Balancer adds the client IP address (of the last hop) to the X-Forwarded-For header in the HTTP request before it sends it to targets.

    • If the value is preserve the Application Load Balancer preserves the X-Forwarded-For header in the HTTP request, and sends it to targets without any change.

    • If the value is remove, the Application Load Balancer removes the X-Forwarded-For header in the HTTP request before it sends it to targets.

  • routing.http2.enabled - Indicates whether HTTP/2 is enabled. The possible values are true and false. The default is true. Elastic Load Balancing requires that message header names contain only alphanumeric characters and hyphens.

  • waf.fail_open.enabled - Indicates whether to allow a WAF-enabled load balancer to route requests to targets if it is unable to forward the request to Amazon Web Services WAF. The possible values are true and false. The default is false.

Value
  • Type: string

The value of the attribute.

LoadBalancerNotFoundException

Description

The specified load balancer does not exist.

Members

LoadBalancerState

Description

Information about the state of the load balancer.

Members
Code
  • Type: string

The state code. The initial state of the load balancer is provisioning. After the load balancer is fully set up and ready to route traffic, its state is active. If load balancer is routing traffic but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer could not be set up, its state is failed.

Reason
  • Type: string

A description of the state.

Matcher

Description

The codes to use when checking for a successful response from a target. If the protocol version is gRPC, these are gRPC codes. Otherwise, these are HTTP codes.

Members
GrpcCode
  • Type: string

You can specify values between 0 and 99. You can specify multiple values (for example, "0,1") or a range of values (for example, "0-5"). The default value is 12.

HttpCode
  • Type: string

For Application Load Balancers, you can specify values between 200 and 499, with the default value being 200. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").

For Network Load Balancers, you can specify values between 200 and 599, with the default value being 200-399. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").

For Gateway Load Balancers, this must be "200–399".

Note that when using shorthand syntax, some values such as commas need to be escaped.

ModifyListenerOutput

Members
Listeners
  • Type: Array of Listener structures

Information about the modified listener.

ModifyLoadBalancerAttributesOutput

Members
Attributes
  • Type: Array of LoadBalancerAttribute structures

Information about the load balancer attributes.

ModifyRuleOutput

Members
Rules
  • Type: Array of Rule structures

Information about the modified rule.

ModifyTargetGroupAttributesOutput

Members
Attributes
  • Type: Array of TargetGroupAttribute structures

Information about the attributes.

ModifyTargetGroupOutput

Members
TargetGroups
  • Type: Array of TargetGroup structures

Information about the modified target group.

OperationNotPermittedException

Description

This operation is not allowed.

Members

PathPatternConditionConfig

Description

Information about a path pattern condition.

Members
Values
  • Type: Array of strings

The path patterns to compare against the request URL. The maximum size of each string is 128 characters. The comparison is case sensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character).

If you specify multiple strings, the condition is satisfied if one of them matches the request URL. The path pattern is compared only to the path of the URL, not to its query string. To compare against the query string, use QueryStringConditionConfig.

PriorityInUseException

Description

The specified priority is in use.

Members

QueryStringConditionConfig

Description

Information about a query string condition.

The query string component of a URI starts after the first '?' character and is terminated by either a '#' character or the end of the URI. A typical query string contains key/value pairs separated by '&' characters. The allowed characters are specified by RFC 3986. Any character can be percentage encoded.

Members
Values
  • Type: Array of QueryStringKeyValuePair structures

The key/value pairs or values to find in the query string. The maximum size of each string is 128 characters. The comparison is case insensitive. The following wildcard characters are supported: * (matches 0 or more characters) and ? (matches exactly 1 character). To search for a literal '*' or '?' character in a query string, you must escape these characters in Values using a '\' character.

If you specify multiple key/value pairs or values, the condition is satisfied if one of them is found in the query string.

QueryStringKeyValuePair

Description

Information about a key/value pair.

Members
Key
  • Type: string

The key. You can omit the key.

Value
  • Type: string

The value.

RedirectActionConfig

Description

Information about a redirect action.

A URI consists of the following components: protocol://hostname:port/path?query. You must modify at least one of the following components to avoid a redirect loop: protocol, hostname, port, or path. Any components that you do not modify retain their original values.

You can reuse URI components using the following reserved keywords:

  • #{protocol}

  • #{host}

  • #{port}

  • #{path} (the leading "/" is removed)

  • #{query}

For example, you can change the path to "/new/#{path}", the hostname to "example.#{host}", or the query to "#{query}&value=xyz".

Members
Host
  • Type: string

The hostname. This component is not percent-encoded. The hostname can contain #{host}.

Path
  • Type: string

The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.

Port
  • Type: string

The port. You can specify a value from 1 to 65535 or #{port}.

Protocol
  • Type: string

The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.

Query
  • Type: string

The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.

StatusCode
  • Required: Yes
  • Type: string

The HTTP redirect code. The redirect is either permanent (HTTP 301) or temporary (HTTP 302).

RegisterTargetsOutput

Members

RemoveListenerCertificatesOutput

Members

RemoveTagsOutput

Members

ResourceInUseException

Description

A specified resource is in use.

Members

Rule

Description

Information about a rule.

Members
Actions
  • Type: Array of Action structures

The actions. Each rule must include exactly one of the following types of actions: forward, redirect, or fixed-response, and it must be the last action to be performed.

Conditions
  • Type: Array of RuleCondition structures

The conditions. Each rule can include zero or one of the following conditions: http-request-method, host-header, path-pattern, and source-ip, and zero or more of the following conditions: http-header and query-string.

IsDefault
  • Type: boolean

Indicates whether this is the default rule.

Priority
  • Type: string

The priority.

RuleArn
  • Type: string

The Amazon Resource Name (ARN) of the rule.

RuleCondition

Description

Information about a condition for a rule.

Each rule can optionally include up to one of each of the following conditions: http-request-method, host-header, path-pattern, and source-ip. Each rule can also optionally include one or more of each of the following conditions: http-header and query-string. Note that the value for a condition cannot be empty.

Members
Field
  • Type: string

The field in the HTTP request. The following are the possible values:

  • http-header

  • http-request-method

  • host-header

  • path-pattern

  • query-string

  • source-ip

HostHeaderConfig
  • Type: HostHeaderConditionConfig structure

Information for a host header condition. Specify only when Field is host-header.

HttpHeaderConfig
  • Type: HttpHeaderConditionConfig structure

Information for an HTTP header condition. Specify only when Field is http-header.

HttpRequestMethodConfig
  • Type: HttpRequestMethodConditionConfig structure

Information for an HTTP method condition. Specify only when Field is http-request-method.

PathPatternConfig
  • Type: PathPatternConditionConfig structure

Information for a path pattern condition. Specify only when Field is path-pattern.

QueryStringConfig
  • Type: QueryStringConditionConfig structure

Information for a query string condition. Specify only when Field is query-string.

SourceIpConfig
  • Type: SourceIpConditionConfig structure

Information for a source IP condition. Specify only when Field is source-ip.

Values
  • Type: Array of strings

The condition value. Specify only when Field is host-header or path-pattern. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig or PathPatternConfig.

If Field is host-header and you are not using HostHeaderConfig, you can specify a single host name (for example, my.example.com) in Values. A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.

  • A-Z, a-z, 0-9

  • - .

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

If Field is path-pattern and you are not using PathPatternConfig, you can specify a single path pattern (for example, /img/*) in Values. A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.

  • A-Z, a-z, 0-9

  • _ - . $ / ~ " ' @ : +

  • & (using &amp;)

  • * (matches 0 or more characters)

  • ? (matches exactly 1 character)

RuleNotFoundException

Description

The specified rule does not exist.

Members

RulePriorityPair

Description

Information about the priorities for the rules for a listener.

Members
Priority
  • Type: int

The rule priority.

RuleArn
  • Type: string

The Amazon Resource Name (ARN) of the rule.

SSLPolicyNotFoundException

Description

The specified SSL policy does not exist.

Members

SetIpAddressTypeOutput

Members
IpAddressType
  • Type: string

The IP address type.

SetRulePrioritiesOutput

Members
Rules
  • Type: Array of Rule structures

Information about the rules.

SetSecurityGroupsOutput

Members
SecurityGroupIds
  • Type: Array of strings

The IDs of the security groups associated with the load balancer.

SetSubnetsOutput

Members
AvailabilityZones
  • Type: Array of AvailabilityZone structures

Information about the subnets.

IpAddressType
  • Type: string

[Network Load Balancers] The IP address type.

SourceIpConditionConfig

Description

Information about a source IP condition.

You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.

Members
Values
  • Type: Array of strings

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig.

SslPolicy

Description

Information about a policy used for SSL negotiation.

Members
Ciphers
  • Type: Array of Cipher structures

The ciphers.

Name
  • Type: string

The name of the policy.

SslProtocols
  • Type: Array of strings

The protocols.

SupportedLoadBalancerTypes
  • Type: Array of strings

The supported load balancers.

SubnetMapping

Description

Information about a subnet mapping.

Members
AllocationId
  • Type: string

[Network Load Balancers] The allocation ID of the Elastic IP address for an internet-facing load balancer.

IPv6Address
  • Type: string

[Network Load Balancers] The IPv6 address.

PrivateIPv4Address
  • Type: string

[Network Load Balancers] The private IPv4 address for an internal load balancer.

SubnetId
  • Type: string

The ID of the subnet.

SubnetNotFoundException

Description

The specified subnet does not exist.

Members

Tag

Description

Information about a tag.

Members
Key
  • Required: Yes
  • Type: string

The key of the tag.

Value
  • Type: string

The value of the tag.

TagDescription

Description

The tags associated with a resource.

Members
ResourceArn
  • Type: string

The Amazon Resource Name (ARN) of the resource.

Tags
  • Type: Array of Tag structures

Information about the tags.

TargetDescription

Description

Information about a target.

Members
AvailabilityZone
  • Type: string

An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.

For Application Load Balancer target groups, the specified Availability Zone value is only applicable when cross-zone load balancing is off. Otherwise the parameter is ignored and treated as all.

This parameter is not supported if the target type of the target group is instance or alb.

If the target type is ip and the IP address is in a subnet of the VPC for the target group, the Availability Zone is automatically detected and this parameter is optional. If the IP address is outside the VPC, this parameter is required.

For Application Load Balancer target groups with cross-zone load balancing off, if the target type is ip and the IP address is outside of the VPC for the target group, this should be an Availability Zone inside the VPC for the target group.

If the target type is lambda, this parameter is optional and the only supported value is all.

Id
  • Required: Yes
  • Type: string

The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.

Port
  • Type: int

The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.

TargetGroup

Description

Information about a target group.

Members
HealthCheckEnabled
  • Type: boolean

Indicates whether health checks are enabled.

HealthCheckIntervalSeconds
  • Type: int

The approximate amount of time, in seconds, between health checks of an individual target.

HealthCheckPath
  • Type: string

The destination for health checks on the targets.

HealthCheckPort
  • Type: string

The port to use to connect with the target.

HealthCheckProtocol
  • Type: string

The protocol to use to connect with the target. The GENEVE, TLS, UDP, and TCP_UDP protocols are not supported for health checks.

HealthCheckTimeoutSeconds
  • Type: int

The amount of time, in seconds, during which no response means a failed health check.

HealthyThresholdCount
  • Type: int

The number of consecutive health checks successes required before considering an unhealthy target healthy.

IpAddressType
  • Type: string

The type of IP address used for this target group. The possible values are ipv4 and ipv6. This is an optional parameter. If not specified, the IP address type defaults to ipv4.

LoadBalancerArns
  • Type: Array of strings

The Amazon Resource Names (ARN) of the load balancers that route traffic to this target group.

Matcher
  • Type: Matcher structure

The HTTP or gRPC codes to use when checking for a successful response from a target.

Port
  • Type: int

The port on which the targets are listening. Not used if the target is a Lambda function.

Protocol
  • Type: string

The protocol to use for routing traffic to the targets.

ProtocolVersion
  • Type: string

[HTTP/HTTPS protocol] The protocol version. The possible values are GRPC, HTTP1, and HTTP2.

TargetGroupArn
  • Type: string

The Amazon Resource Name (ARN) of the target group.

TargetGroupName
  • Type: string

The name of the target group.

TargetType
  • Type: string

The type of target that you must specify when registering targets with this target group. The possible values are instance (register targets by instance ID), ip (register targets by IP address), lambda (register a single Lambda function as a target), or alb (register a single Application Load Balancer as a target).

UnhealthyThresholdCount
  • Type: int

The number of consecutive health check failures required before considering the target unhealthy.

VpcId
  • Type: string

The ID of the VPC for the targets.

TargetGroupAssociationLimitException

Description

You've reached the limit on the number of load balancers per target group.

Members

TargetGroupAttribute

Description

Information about a target group attribute.

Members
Key
  • Type: string

The name of the attribute.

The following attributes are supported by all load balancers:

  • deregistration_delay.timeout_seconds - The amount of time, in seconds, for Elastic Load Balancing to wait before changing the state of a deregistering target from draining to unused. The range is 0-3600 seconds. The default value is 300 seconds. If the target is a Lambda function, this attribute is not supported.

  • stickiness.enabled - Indicates whether target stickiness is enabled. The value is true or false. The default is false.

  • stickiness.type - Indicates the type of stickiness. The possible values are:

    • lb_cookie and app_cookie for Application Load Balancers.

    • source_ip for Network Load Balancers.

    • source_ip_dest_ip and source_ip_dest_ip_proto for Gateway Load Balancers.

The following attributes are supported by Application Load Balancers and Network Load Balancers:

  • load_balancing.cross_zone.enabled - Indicates whether cross zone load balancing is enabled. The value is true, false or use_load_balancer_configuration. The default is use_load_balancer_configuration.

  • target_group_health.dns_failover.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to the maximum number of targets. The default is off.

  • target_group_health.dns_failover.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, mark the zone as unhealthy in DNS, so that traffic is routed only to healthy zones. The possible values are off or an integer from 1 to 100. The default is off.

  • target_group_health.unhealthy_state_routing.minimum_healthy_targets.count - The minimum number of targets that must be healthy. If the number of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are 1 to the maximum number of targets. The default is 1.

  • target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage - The minimum percentage of targets that must be healthy. If the percentage of healthy targets is below this value, send traffic to all targets, including unhealthy targets. The possible values are off or an integer from 1 to 100. The default is off.

The following attributes are supported only if the load balancer is an Application Load Balancer and the target is an instance or an IP address:

  • load_balancing.algorithm.type - The load balancing algorithm determines how the load balancer selects targets when routing requests. The value is round_robin or least_outstanding_requests. The default is round_robin.

  • slow_start.duration_seconds - The time period, in seconds, during which a newly registered target receives an increasing share of the traffic to the target group. After this time period ends, the target receives its full share of traffic. The range is 30-900 seconds (15 minutes). The default is 0 seconds (disabled).

  • stickiness.app_cookie.cookie_name - Indicates the name of the application-based cookie. Names that start with the following prefixes are not allowed: AWSALB, AWSALBAPP, and AWSALBTG; they're reserved for use by the load balancer.

  • stickiness.app_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the application-based cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

  • stickiness.lb_cookie.duration_seconds - The time period, in seconds, during which requests from a client should be routed to the same target. After this time period expires, the load balancer-generated cookie is considered stale. The range is 1 second to 1 week (604800 seconds). The default value is 1 day (86400 seconds).

The following attribute is supported only if the load balancer is an Application Load Balancer and the target is a Lambda function:

  • lambda.multi_value_headers.enabled - Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. The value is true or false. The default is false. If the value is false and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client.

The following attributes are supported only by Network Load Balancers:

  • deregistration_delay.connection_termination.enabled - Indicates whether the load balancer terminates connections at the end of the deregistration timeout. The value is true or false. The default is false.

  • preserve_client_ip.enabled - Indicates whether client IP preservation is enabled. The value is true or false. The default is disabled if the target group type is IP address and the target group protocol is TCP or TLS. Otherwise, the default is enabled. Client IP preservation cannot be disabled for UDP and TCP_UDP target groups.

  • proxy_protocol_v2.enabled - Indicates whether Proxy Protocol version 2 is enabled. The value is true or false. The default is false.

The following attributes are supported only by Gateway Load Balancers:

  • target_failover.on_deregistration - Indicates how the Gateway Load Balancer handles existing flows when a target is deregistered. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) can't be set independently. The value you set for both attributes must be the same.

  • target_failover.on_unhealthy - Indicates how the Gateway Load Balancer handles existing flows when a target is unhealthy. The possible values are rebalance and no_rebalance. The default is no_rebalance. The two attributes (target_failover.on_deregistration and target_failover.on_unhealthy) cannot be set independently. The value you set for both attributes must be the same.

Value
  • Type: string

The value of the attribute.

TargetGroupNotFoundException

Description

The specified target group does not exist.

Members

TargetGroupStickinessConfig

Description

Information about the target group stickiness for a rule.

Members
DurationSeconds
  • Type: int

The time period, in seconds, during which requests from a client should be routed to the same target group. The range is 1-604800 seconds (7 days).

Enabled
  • Type: boolean

Indicates whether target group stickiness is enabled.

TargetGroupTuple

Description

Information about how traffic will be distributed between multiple target groups in a forward rule.

Members
TargetGroupArn
  • Type: string

The Amazon Resource Name (ARN) of the target group.

Weight
  • Type: int

The weight. The range is 0 to 999.

TargetHealth

Description

Information about the current health of a target.

Members
Description
  • Type: string

A description of the target health that provides additional details. If the state is healthy, a description is not provided.

Reason
  • Type: string

The reason code.

If the target state is healthy, a reason code is not provided.

If the target state is initial, the reason code can be one of the following values:

  • Elb.RegistrationInProgress - The target is in the process of being registered with the load balancer.

  • Elb.InitialHealthChecking - The load balancer is still sending the target the minimum number of health checks required to determine its health status.

If the target state is unhealthy, the reason code can be one of the following values:

  • Target.ResponseCodeMismatch - The health checks did not return an expected HTTP code. Applies only to Application Load Balancers and Gateway Load Balancers.

  • Target.Timeout - The health check requests timed out. Applies only to Application Load Balancers and Gateway Load Balancers.

  • Target.FailedHealthChecks - The load balancer received an error while establishing a connection to the target or the target response was malformed.

  • Elb.InternalError - The health checks failed due to an internal error. Applies only to Application Load Balancers.

If the target state is unused, the reason code can be one of the following values:

  • Target.NotRegistered - The target is not registered with the target group.

  • Target.NotInUse - The target group is not used by any load balancer or the target is in an Availability Zone that is not enabled for its load balancer.

  • Target.InvalidState - The target is in the stopped or terminated state.

  • Target.IpUnusable - The target IP address is reserved for use by a load balancer.

If the target state is draining, the reason code can be the following value:

  • Target.DeregistrationInProgress - The target is in the process of being deregistered and the deregistration delay period has not expired.

If the target state is unavailable, the reason code can be the following value:

  • Target.HealthCheckDisabled - Health checks are disabled for the target group. Applies only to Application Load Balancers.

  • Elb.InternalError - Target health is unavailable due to an internal error. Applies only to Network Load Balancers.

State
  • Type: string

The state of the target.

TargetHealthDescription

Description

Information about the health of a target.

Members
HealthCheckPort
  • Type: string

The port to use to connect with the target.

Target
  • Type: TargetDescription structure

The description of the target.

TargetHealth
  • Type: TargetHealth structure

The health information for the target.

TooManyActionsException

Description

You've reached the limit on the number of actions per rule.

Members

TooManyCertificatesException

Description

You've reached the limit on the number of certificates per load balancer.

Members

TooManyListenersException

Description

You've reached the limit on the number of listeners per load balancer.

Members

TooManyLoadBalancersException

Description

You've reached the limit on the number of load balancers for your Amazon Web Services account.

Members

TooManyRegistrationsForTargetIdException

Description

You've reached the limit on the number of times a target can be registered with a load balancer.

Members

TooManyRulesException

Description

You've reached the limit on the number of rules per load balancer.

Members

TooManyTagsException

Description

You've reached the limit on the number of tags per load balancer.

Members

TooManyTargetGroupsException

Description

You've reached the limit on the number of target groups for your Amazon Web Services account.

Members

TooManyTargetsException

Description

You've reached the limit on the number of targets.

Members

TooManyUniqueTargetGroupsPerLoadBalancerException

Description

You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

Members

UnsupportedProtocolException

Description

The specified protocol is not supported.

Members
AWS SDK for PHP 3.x API documentation generated by ApiGen