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
    • Arn
      • Exception
    • Athena
      • Exception
    • AuditManager
      • Exception
    • AugmentedAIRuntime
      • Exception
    • AutoScaling
      • Exception
    • AutoScalingPlans
      • Exception
    • Backup
      • Exception
    • BackupGateway
      • Exception
    • Batch
      • Exception
    • BillingConductor
      • Exception
    • Braket
      • Exception
    • Budgets
      • Exception
    • Chime
      • Exception
    • ChimeSDKIdentity
      • Exception
    • ChimeSDKMediaPipelines
      • Exception
    • ChimeSDKMeetings
      • Exception
    • ChimeSDKMessaging
      • Exception
    • ClientSideMonitoring
      • Exception
    • Cloud9
      • Exception
    • CloudControlApi
      • Exception
    • CloudDirectory
      • Exception
    • CloudFormation
      • Exception
    • CloudFront
      • Exception
    • CloudHsm
      • Exception
    • CloudHSMV2
      • Exception
    • CloudSearch
      • Exception
    • CloudSearchDomain
      • Exception
    • CloudTrail
      • Exception
    • CloudWatch
      • Exception
    • CloudWatchEvents
      • Exception
    • CloudWatchEvidently
      • Exception
    • CloudWatchLogs
      • Exception
    • CloudWatchRUM
      • Exception
    • CodeArtifact
      • Exception
    • CodeBuild
      • 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
    • ConnectContactLens
      • Exception
    • ConnectParticipant
      • Exception
    • ConnectWisdomService
      • 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
    • 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
    • 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
    • Iot
      • Exception
    • IoT1ClickDevicesService
      • Exception
    • IoT1ClickProjects
      • Exception
    • IoTAnalytics
      • Exception
    • IotDataPlane
      • Exception
    • IoTDeviceAdvisor
      • Exception
    • IoTEvents
      • Exception
    • IoTEventsData
      • Exception
    • IoTFleetHub
      • Exception
    • IoTJobsDataPlane
      • Exception
    • IoTSecureTunneling
      • Exception
    • IoTSiteWise
      • Exception
    • IoTThingsGraph
      • Exception
    • IoTTwinMaker
      • Exception
    • IoTWireless
      • Exception
    • IVS
      • Exception
    • ivschat
      • Exception
    • Kafka
      • Exception
    • KafkaConnect
      • Exception
    • kendra
      • Exception
    • Keyspaces
      • Exception
    • Kinesis
      • Exception
    • KinesisAnalytics
      • Exception
    • KinesisAnalyticsV2
      • Exception
    • KinesisVideo
      • Exception
    • KinesisVideoArchivedMedia
      • Exception
    • KinesisVideoMedia
      • Exception
    • KinesisVideoSignalingChannels
      • Exception
    • Kms
      • Exception
    • LakeFormation
      • Exception
    • Lambda
      • Exception
    • LexModelBuildingService
      • Exception
    • LexModelsV2
      • Exception
    • LexRuntimeService
      • Exception
    • LexRuntimeV2
      • Exception
    • LicenseManager
      • 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
    • MigrationHubRefactorSpaces
      • Exception
    • MigrationHubStrategyRecommendations
      • Exception
    • Mobile
      • Exception
    • MQ
      • Exception
    • MTurk
      • Exception
    • Multipart
    • MWAA
      • Exception
    • Neptune
      • Exception
    • NetworkFirewall
      • Exception
    • NetworkManager
      • Exception
    • NimbleStudio
      • 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
    • Polly
      • Exception
    • Pricing
      • Exception
    • PrometheusService
      • Exception
    • Proton
      • Exception
    • QLDB
      • Exception
    • QLDBSession
      • Exception
    • QuickSight
      • Exception
    • RAM
      • Exception
    • Rds
      • Exception
    • RDSDataService
      • Exception
    • RecycleBin
      • Exception
    • Redshift
      • Exception
    • RedshiftDataAPIService
      • Exception
    • Rekognition
      • Exception
    • ResilienceHub
      • Exception
    • ResourceGroups
      • Exception
    • ResourceGroupsTaggingAPI
      • Exception
    • Retry
      • Exception
    • RoboMaker
      • 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
    • SageMakerRuntime
      • Exception
    • SavingsPlans
      • Exception
    • Schemas
      • Exception
    • SecretsManager
      • Exception
    • SecurityHub
      • Exception
    • ServerlessApplicationRepository
      • Exception
    • ServiceCatalog
      • Exception
    • ServiceDiscovery
      • Exception
    • ServiceQuotas
      • Exception
    • Ses
      • Exception
    • SesV2
      • Exception
    • Sfn
      • Exception
    • Shield
      • Exception
    • Signature
    • signer
      • Exception
    • Sms
      • Exception
    • SnowBall
      • Exception
    • SnowDeviceManagement
      • Exception
    • Sns
      • Exception
    • Sqs
      • Exception
    • Ssm
      • Exception
    • SSMContacts
      • Exception
    • SSMIncidents
      • Exception
    • SSO
      • Exception
    • SSOAdmin
      • Exception
    • SSOOIDC
      • Exception
    • StorageGateway
      • Exception
    • Sts
      • Exception
      • RegionalEndpoints
        • Exception
    • Support
      • Exception
    • Swf
      • Exception
    • Synthetics
      • Exception
    • Textract
      • Exception
    • TimestreamQuery
      • Exception
    • TimestreamWrite
      • Exception
    • 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\Athena\AthenaClient
  • Aws\AuditManager\AuditManagerClient
  • Aws\AugmentedAIRuntime\AugmentedAIRuntimeClient
  • Aws\AutoScaling\AutoScalingClient
  • Aws\AutoScalingPlans\AutoScalingPlansClient
  • Aws\AwsClient
  • Aws\Backup\BackupClient
  • Aws\BackupGateway\BackupGatewayClient
  • 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\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\CloudWatch\CloudWatchClient
  • Aws\CloudWatchEvents\CloudWatchEventsClient
  • Aws\CloudWatchEvidently\CloudWatchEvidentlyClient
  • Aws\CloudWatchLogs\CloudWatchLogsClient
  • Aws\CloudWatchRUM\CloudWatchRUMClient
  • Aws\CodeArtifact\CodeArtifactClient
  • Aws\CodeBuild\CodeBuildClient
  • 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\ConnectContactLens\ConnectContactLensClient
  • Aws\ConnectParticipant\ConnectParticipantClient
  • Aws\ConnectWisdomService\ConnectWisdomServiceClient
  • 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\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\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\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\IoTJobsDataPlane\IoTJobsDataPlaneClient
  • 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\Keyspaces\KeyspacesClient
  • Aws\Kinesis\KinesisClient
  • Aws\KinesisAnalytics\KinesisAnalyticsClient
  • Aws\KinesisAnalyticsV2\KinesisAnalyticsV2Client
  • Aws\KinesisVideo\KinesisVideoClient
  • Aws\KinesisVideoArchivedMedia\KinesisVideoArchivedMediaClient
  • Aws\KinesisVideoMedia\KinesisVideoMediaClient
  • Aws\KinesisVideoSignalingChannels\KinesisVideoSignalingChannelsClient
  • 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\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\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\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\Polly\PollyClient
  • Aws\PresignUrlMiddleware
  • Aws\Pricing\PricingClient
  • 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\Rekognition\RekognitionClient
  • Aws\ResilienceHub\ResilienceHubClient
  • Aws\ResourceGroups\ResourceGroupsClient
  • Aws\ResourceGroupsTaggingAPI\ResourceGroupsTaggingAPIClient
  • Aws\Result
  • Aws\ResultPaginator
  • Aws\Retry\Configuration
  • Aws\Retry\ConfigurationProvider
  • Aws\RoboMaker\RoboMakerClient
  • 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\SageMakerRuntime\SageMakerRuntimeClient
  • Aws\SavingsPlans\SavingsPlansClient
  • Aws\Schemas\SchemasClient
  • Aws\Sdk
  • Aws\SecretsManager\SecretsManagerClient
  • Aws\SecurityHub\SecurityHubClient
  • 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\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\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\Swf\SwfClient
  • Aws\Synthetics\SyntheticsClient
  • Aws\Textract\TextractClient
  • Aws\TimestreamQuery\TimestreamQueryClient
  • Aws\TimestreamWrite\TimestreamWriteClient
  • 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

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

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\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\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\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\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\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\ConnectContactLens\Exception\ConnectContactLensException
  • Aws\ConnectParticipant\Exception\ConnectParticipantException
  • Aws\ConnectWisdomService\Exception\ConnectWisdomServiceException
  • 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\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\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\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\IoTJobsDataPlane\Exception\IoTJobsDataPlaneException
  • 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\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\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\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\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\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\Polly\Exception\PollyException
  • Aws\Pricing\Exception\PricingException
  • 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\Rekognition\Exception\RekognitionException
  • Aws\ResilienceHub\Exception\ResilienceHubException
  • Aws\ResourceGroups\Exception\ResourceGroupsException
  • Aws\ResourceGroupsTaggingAPI\Exception\ResourceGroupsTaggingAPIException
  • Aws\Retry\Exception\ConfigurationException
  • Aws\RoboMaker\Exception\RoboMakerException
  • 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\SageMakerRuntime\Exception\SageMakerRuntimeException
  • Aws\SavingsPlans\Exception\SavingsPlansException
  • Aws\Schemas\Exception\SchemasException
  • Aws\SecretsManager\Exception\SecretsManagerException
  • Aws\SecurityHub\Exception\SecurityHubException
  • 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\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\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\Swf\Exception\SwfException
  • Aws\Synthetics\Exception\SyntheticsException
  • Aws\Textract\Exception\TextractException
  • Aws\TimestreamQuery\Exception\TimestreamQueryException
  • Aws\TimestreamWrite\Exception\TimestreamWriteException
  • 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

Amazon CloudWatch Logs 2014-03-28

Client: Aws\CloudWatchLogs\CloudWatchLogsClient
Service ID: logs
Version: 2014-03-28

This page describes the parameters and results for the operations of the Amazon CloudWatch Logs (2014-03-28), and shows how to use the Aws\CloudWatchLogs\CloudWatchLogsClient object to call the described operations. This documentation is specific to the 2014-03-28 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 */).

  • AssociateKmsKey ( array $params = [] )

    Associates the specified Key Management Service customer master key (CMK) with the specified log group.

  • CancelExportTask ( array $params = [] )

    Cancels the specified export task.

  • CreateExportTask ( array $params = [] )

    Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket.

  • CreateLogGroup ( array $params = [] )

    Creates a log group with the specified name.

  • CreateLogStream ( array $params = [] )

    Creates a log stream for the specified log group.

  • DeleteDestination ( array $params = [] )

    Deletes the specified destination, and eventually disables all the subscription filters that publish to it.

  • DeleteLogGroup ( array $params = [] )

    Deletes the specified log group and permanently deletes all the archived log events associated with the log group.

  • DeleteLogStream ( array $params = [] )

    Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.

  • DeleteMetricFilter ( array $params = [] )

    Deletes the specified metric filter.

  • DeleteQueryDefinition ( array $params = [] )

    Deletes a saved CloudWatch Logs Insights query definition.

  • DeleteResourcePolicy ( array $params = [] )

    Deletes a resource policy from this account.

  • DeleteRetentionPolicy ( array $params = [] )

    Deletes the specified retention policy.

  • DeleteSubscriptionFilter ( array $params = [] )

    Deletes the specified subscription filter.

  • DescribeDestinations ( array $params = [] )

    Lists all your destinations.

  • DescribeExportTasks ( array $params = [] )

    Lists the specified export tasks.

  • DescribeLogGroups ( array $params = [] )

    Lists the specified log groups.

  • DescribeLogStreams ( array $params = [] )

    Lists the log streams for the specified log group.

  • DescribeMetricFilters ( array $params = [] )

    Lists the specified metric filters.

  • DescribeQueries ( array $params = [] )

    Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account.

  • DescribeQueryDefinitions ( array $params = [] )

    This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions.

  • DescribeResourcePolicies ( array $params = [] )

    Lists the resource policies in this account.

  • DescribeSubscriptionFilters ( array $params = [] )

    Lists the subscription filters for the specified log group.

  • DisassociateKmsKey ( array $params = [] )

    Disassociates the associated Key Management Service customer master key (CMK) from the specified log group.

  • FilterLogEvents ( array $params = [] )

    Lists log events from the specified log group.

  • GetLogEvents ( array $params = [] )

    Lists log events from the specified log stream.

  • GetLogGroupFields ( array $params = [] )

    Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field.

  • GetLogRecord ( array $params = [] )

    Retrieves all of the fields and values of a single log event.

  • GetQueryResults ( array $params = [] )

    Returns the results from the specified query.

  • ListTagsLogGroup ( array $params = [] )

    Lists the tags for the specified log group.

  • PutDestination ( array $params = [] )

    Creates or updates a destination.

  • PutDestinationPolicy ( array $params = [] )

    Creates or updates an access policy associated with an existing destination.

  • PutLogEvents ( array $params = [] )

    Uploads a batch of log events to the specified log stream.

  • PutMetricFilter ( array $params = [] )

    Creates or updates a metric filter and associates it with the specified log group.

  • PutQueryDefinition ( array $params = [] )

    Creates or updates a query definition for CloudWatch Logs Insights.

  • PutResourcePolicy ( array $params = [] )

    Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53.

  • PutRetentionPolicy ( array $params = [] )

    Sets the retention of the specified log group.

  • PutSubscriptionFilter ( array $params = [] )

    Creates or updates a subscription filter and associates it with the specified log group.

  • StartQuery ( array $params = [] )

    Schedules a query of a log group using CloudWatch Logs Insights.

  • StopQuery ( array $params = [] )

    Stops a CloudWatch Logs Insights query that is in progress.

  • TagLogGroup ( array $params = [] )

    Adds or updates the specified tags for the specified log group.

  • TestMetricFilter ( array $params = [] )

    Tests the filter pattern of a metric filter against a sample of log event messages.

  • UntagLogGroup ( array $params = [] )

    Removes the specified tags from the specified log group.

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:

  • DescribeDestinations
  • DescribeLogGroups
  • DescribeLogStreams
  • DescribeMetricFilters
  • DescribeSubscriptionFilters
  • FilterLogEvents
  • GetLogEvents

Operations

AssociateKmsKey

$result = $client->associateKmsKey([/* ... */]);
$promise = $client->associateKmsKeyAsync([/* ... */]);

Associates the specified Key Management Service customer master key (CMK) with the specified log group.

Associating an KMS CMK with a log group overrides any existing associations between the log group and a CMK. After a CMK is associated with a log group, all newly ingested data for the log group is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.

CloudWatch Logs supports only symmetric CMKs. Do not use an associate an asymmetric CMK with your log group. For more information, see Using Symmetric and Asymmetric Keys.

It can take up to 5 minutes for this operation to take effect.

If you attempt to associate a CMK with a log group but the CMK does not exist or the CMK is disabled, you receive an InvalidParameterException error.

Parameter Syntax

$result = $client->associateKmsKey([
    'kmsKeyId' => '<string>', // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
]);

Parameter Details

Members
kmsKeyId
  • Required: Yes
  • Type: string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. This must be a symmetric CMK. For more information, see Amazon Resource Names - Key Management Service and Using Symmetric and Asymmetric Keys.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

CancelExportTask

$result = $client->cancelExportTask([/* ... */]);
$promise = $client->cancelExportTaskAsync([/* ... */]);

Cancels the specified export task.

The task must be in the PENDING or RUNNING state.

Parameter Syntax

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

Parameter Details

Members
taskId
  • Required: Yes
  • Type: string

The ID of the export task.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • InvalidOperationException:

    The operation is not valid on the specified resource.

  • ServiceUnavailableException:

    The service cannot complete the request.

CreateExportTask

$result = $client->createExportTask([/* ... */]);
$promise = $client->createExportTaskAsync([/* ... */]);

Creates an export task, which allows you to efficiently export data from a log group to an Amazon S3 bucket. When you perform a CreateExportTask operation, you must use credentials that have permission to write to the S3 bucket that you specify as the destination.

Exporting log data to Amazon S3 buckets that are encrypted by KMS is not supported. Exporting log data to Amazon S3 buckets that have S3 Object Lock enabled with a retention period is not supported.

Exporting to S3 buckets that are encrypted with AES-256 is supported.

This is an asynchronous call. If all the required information is provided, this operation initiates an export task and responds with the ID of the task. After the task has started, you can use DescribeExportTasks to get the status of the export task. Each account can only have one active (RUNNING or PENDING) export task at a time. To cancel an export task, use CancelExportTask.

You can export logs from multiple log groups or multiple time ranges to the same S3 bucket. To separate out log data for each export task, you can specify a prefix to be used as the Amazon S3 key prefix for all exported objects.

Time-based sorting on chunks of log data inside an exported file is not guaranteed. You can sort the exported log fild data by using Linux utilities.

Parameter Syntax

$result = $client->createExportTask([
    'destination' => '<string>', // REQUIRED
    'destinationPrefix' => '<string>',
    'from' => <integer>, // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
    'logStreamNamePrefix' => '<string>',
    'taskName' => '<string>',
    'to' => <integer>, // REQUIRED
]);

Parameter Details

Members
destination
  • Required: Yes
  • Type: string

The name of S3 bucket for the exported log data. The bucket must be in the same Amazon Web Services region.

destinationPrefix
  • Type: string

The prefix used as the start of the key for every object exported. If you don't specify a value, the default is exportedlogs.

from
  • Required: Yes
  • Type: long (int|float)

The start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than this time are not exported.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamNamePrefix
  • Type: string

Export only log streams that match the provided prefix. If you don't specify a value, no prefix filter is applied.

taskName
  • Type: string

The name of the export task.

to
  • Required: Yes
  • Type: long (int|float)

The end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

Result Syntax

[
    'taskId' => '<string>',
]

Result Details

Members
taskId
  • Type: string

The ID of the export task.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ResourceAlreadyExistsException:

    The specified resource already exists.

CreateLogGroup

$result = $client->createLogGroup([/* ... */]);
$promise = $client->createLogGroupAsync([/* ... */]);

Creates a log group with the specified name. You can create up to 20,000 log groups per account.

You must use the following guidelines when naming a log group:

  • Log group names must be unique within a region for an Amazon Web Services account.

  • Log group names can be between 1 and 512 characters long.

  • Log group names consist of the following characters: a-z, A-Z, 0-9, '_' (underscore), '-' (hyphen), '/' (forward slash), '.' (period), and '#' (number sign)

When you create a log group, by default the log events in the log group never expire. To set a retention policy so that events expire and are deleted after a specified time, use PutRetentionPolicy.

If you associate a Key Management Service customer master key (CMK) with the log group, ingested data is encrypted using the CMK. This association is stored as long as the data encrypted with the CMK is still within CloudWatch Logs. This enables CloudWatch Logs to decrypt this data whenever it is requested.

If you attempt to associate a CMK with the log group but the CMK does not exist or the CMK is disabled, you receive an InvalidParameterException error.

CloudWatch Logs supports only symmetric CMKs. Do not associate an asymmetric CMK with your log group. For more information, see Using Symmetric and Asymmetric Keys.

Parameter Syntax

$result = $client->createLogGroup([
    'kmsKeyId' => '<string>',
    'logGroupName' => '<string>', // REQUIRED
    'tags' => ['<string>', ...],
]);

Parameter Details

Members
kmsKeyId
  • Type: string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - Key Management Service.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

tags
  • Type: Associative array of custom strings keys (TagKey) to strings

The key-value pairs to use for the tags.

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceAlreadyExistsException:

    The specified resource already exists.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

CreateLogStream

$result = $client->createLogStream([/* ... */]);
$promise = $client->createLogStreamAsync([/* ... */]);

Creates a log stream for the specified log group. A log stream is a sequence of log events that originate from a single source, such as an application instance or a resource that is being monitored.

There is no limit on the number of log streams that you can create for a log group. There is a limit of 50 TPS on CreateLogStream operations, after which transactions are throttled.

You must use the following guidelines when naming a log stream:

  • Log stream names must be unique within the log group.

  • Log stream names can be between 1 and 512 characters long.

  • The ':' (colon) and '*' (asterisk) characters are not allowed.

Parameter Syntax

$result = $client->createLogStream([
    'logGroupName' => '<string>', // REQUIRED
    'logStreamName' => '<string>', // REQUIRED
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamName
  • Required: Yes
  • Type: string

The name of the log stream.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceAlreadyExistsException:

    The specified resource already exists.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteDestination

$result = $client->deleteDestination([/* ... */]);
$promise = $client->deleteDestinationAsync([/* ... */]);

Deletes the specified destination, and eventually disables all the subscription filters that publish to it. This operation does not delete the physical resource encapsulated by the destination.

Parameter Syntax

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

Parameter Details

Members
destinationName
  • Required: Yes
  • Type: string

The name of the destination.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteLogGroup

$result = $client->deleteLogGroup([/* ... */]);
$promise = $client->deleteLogGroupAsync([/* ... */]);

Deletes the specified log group and permanently deletes all the archived log events associated with the log group.

Parameter Syntax

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

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteLogStream

$result = $client->deleteLogStream([/* ... */]);
$promise = $client->deleteLogStreamAsync([/* ... */]);

Deletes the specified log stream and permanently deletes all the archived log events associated with the log stream.

Parameter Syntax

$result = $client->deleteLogStream([
    'logGroupName' => '<string>', // REQUIRED
    'logStreamName' => '<string>', // REQUIRED
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamName
  • Required: Yes
  • Type: string

The name of the log stream.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteMetricFilter

$result = $client->deleteMetricFilter([/* ... */]);
$promise = $client->deleteMetricFilterAsync([/* ... */]);

Deletes the specified metric filter.

Parameter Syntax

$result = $client->deleteMetricFilter([
    'filterName' => '<string>', // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
]);

Parameter Details

Members
filterName
  • Required: Yes
  • Type: string

The name of the metric filter.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteQueryDefinition

$result = $client->deleteQueryDefinition([/* ... */]);
$promise = $client->deleteQueryDefinitionAsync([/* ... */]);

Deletes a saved CloudWatch Logs Insights query definition. A query definition contains details about a saved CloudWatch Logs Insights query.

Each DeleteQueryDefinition operation can delete one query definition.

You must have the logs:DeleteQueryDefinition permission to be able to perform this operation.

Parameter Syntax

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

Parameter Details

Members
queryDefinitionId
  • Required: Yes
  • Type: string

The ID of the query definition that you want to delete. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.

Result Syntax

[
    'success' => true || false,
]

Result Details

Members
success
  • Type: boolean

A value of TRUE indicates that the operation succeeded. FALSE indicates that the operation failed.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteResourcePolicy

$result = $client->deleteResourcePolicy([/* ... */]);
$promise = $client->deleteResourcePolicyAsync([/* ... */]);

Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.

Parameter Syntax

$result = $client->deleteResourcePolicy([
    'policyName' => '<string>',
]);

Parameter Details

Members
policyName
  • Type: string

The name of the policy to be revoked. This parameter is required.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteRetentionPolicy

$result = $client->deleteRetentionPolicy([/* ... */]);
$promise = $client->deleteRetentionPolicyAsync([/* ... */]);

Deletes the specified retention policy.

Log events do not expire if they belong to log groups without a retention policy.

Parameter Syntax

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

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DeleteSubscriptionFilter

$result = $client->deleteSubscriptionFilter([/* ... */]);
$promise = $client->deleteSubscriptionFilterAsync([/* ... */]);

Deletes the specified subscription filter.

Parameter Syntax

$result = $client->deleteSubscriptionFilter([
    'filterName' => '<string>', // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
]);

Parameter Details

Members
filterName
  • Required: Yes
  • Type: string

The name of the subscription filter.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeDestinations

$result = $client->describeDestinations([/* ... */]);
$promise = $client->describeDestinationsAsync([/* ... */]);

Lists all your destinations. The results are ASCII-sorted by destination name.

Parameter Syntax

$result = $client->describeDestinations([
    'DestinationNamePrefix' => '<string>',
    'limit' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
DestinationNamePrefix
  • Type: string

The prefix to match. If you don't specify a value, no prefix filter is applied.

limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

Result Syntax

[
    'destinations' => [
        [
            'accessPolicy' => '<string>',
            'arn' => '<string>',
            'creationTime' => <integer>,
            'destinationName' => '<string>',
            'roleArn' => '<string>',
            'targetArn' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
destinations
  • Type: Array of Destination structures

The destinations.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeExportTasks

$result = $client->describeExportTasks([/* ... */]);
$promise = $client->describeExportTasksAsync([/* ... */]);

Lists the specified export tasks. You can list all your export tasks or filter the results based on task ID or task status.

Parameter Syntax

$result = $client->describeExportTasks([
    'limit' => <integer>,
    'nextToken' => '<string>',
    'statusCode' => 'CANCELLED|COMPLETED|FAILED|PENDING|PENDING_CANCEL|RUNNING',
    'taskId' => '<string>',
]);

Parameter Details

Members
limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

statusCode
  • Type: string

The status code of the export task. Specifying a status code filters the results to zero or more export tasks.

taskId
  • Type: string

The ID of the export task. Specifying a task ID filters the results to zero or one export tasks.

Result Syntax

[
    'exportTasks' => [
        [
            'destination' => '<string>',
            'destinationPrefix' => '<string>',
            'executionInfo' => [
                'completionTime' => <integer>,
                'creationTime' => <integer>,
            ],
            'from' => <integer>,
            'logGroupName' => '<string>',
            'status' => [
                'code' => 'CANCELLED|COMPLETED|FAILED|PENDING|PENDING_CANCEL|RUNNING',
                'message' => '<string>',
            ],
            'taskId' => '<string>',
            'taskName' => '<string>',
            'to' => <integer>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
exportTasks
  • Type: Array of ExportTask structures

The export tasks.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeLogGroups

$result = $client->describeLogGroups([/* ... */]);
$promise = $client->describeLogGroupsAsync([/* ... */]);

Lists the specified log groups. You can list all your log groups or filter the results by prefix. The results are ASCII-sorted by log group name.

CloudWatch Logs doesn’t support IAM policies that control access to the DescribeLogGroups action by using the aws:ResourceTag/key-name condition key. Other CloudWatch Logs actions do support the use of the aws:ResourceTag/key-name condition key to control access. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

Parameter Syntax

$result = $client->describeLogGroups([
    'limit' => <integer>,
    'logGroupNamePrefix' => '<string>',
    'nextToken' => '<string>',
]);

Parameter Details

Members
limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

logGroupNamePrefix
  • Type: string

The prefix to match.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

Result Syntax

[
    'logGroups' => [
        [
            'arn' => '<string>',
            'creationTime' => <integer>,
            'kmsKeyId' => '<string>',
            'logGroupName' => '<string>',
            'metricFilterCount' => <integer>,
            'retentionInDays' => <integer>,
            'storedBytes' => <integer>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
logGroups
  • Type: Array of LogGroup structures

The log groups.

If the retentionInDays value is not included for a log group, then that log group is set to have its events never expire.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeLogStreams

$result = $client->describeLogStreams([/* ... */]);
$promise = $client->describeLogStreamsAsync([/* ... */]);

Lists the log streams for the specified log group. You can list all the log streams or filter the results by prefix. You can also control how the results are ordered.

This operation has a limit of five transactions per second, after which transactions are throttled.

Parameter Syntax

$result = $client->describeLogStreams([
    'descending' => true || false,
    'limit' => <integer>,
    'logGroupName' => '<string>', // REQUIRED
    'logStreamNamePrefix' => '<string>',
    'nextToken' => '<string>',
    'orderBy' => 'LogStreamName|LastEventTime',
]);

Parameter Details

Members
descending
  • Type: boolean

If the value is true, results are returned in descending order. If the value is to false, results are returned in ascending order. The default value is false.

limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamNamePrefix
  • Type: string

The prefix to match.

If orderBy is LastEventTime, you cannot specify this parameter.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

orderBy
  • Type: string

If the value is LogStreamName, the results are ordered by log stream name. If the value is LastEventTime, the results are ordered by the event time. The default value is LogStreamName.

If you order the results by event time, you cannot specify the logStreamNamePrefix parameter.

lastEventTimestamp represents the time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. lastEventTimestamp updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.

Result Syntax

[
    'logStreams' => [
        [
            'arn' => '<string>',
            'creationTime' => <integer>,
            'firstEventTimestamp' => <integer>,
            'lastEventTimestamp' => <integer>,
            'lastIngestionTime' => <integer>,
            'logStreamName' => '<string>',
            'storedBytes' => <integer>,
            'uploadSequenceToken' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
logStreams
  • Type: Array of LogStream structures

The log streams.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeMetricFilters

$result = $client->describeMetricFilters([/* ... */]);
$promise = $client->describeMetricFiltersAsync([/* ... */]);

Lists the specified metric filters. You can list all of the metric filters or filter the results by log name, prefix, metric name, or metric namespace. The results are ASCII-sorted by filter name.

Parameter Syntax

$result = $client->describeMetricFilters([
    'filterNamePrefix' => '<string>',
    'limit' => <integer>,
    'logGroupName' => '<string>',
    'metricName' => '<string>',
    'metricNamespace' => '<string>',
    'nextToken' => '<string>',
]);

Parameter Details

Members
filterNamePrefix
  • Type: string

The prefix to match. CloudWatch Logs uses the value you set here only if you also include the logGroupName parameter in your request.

limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

logGroupName
  • Type: string

The name of the log group.

metricName
  • Type: string

Filters results to include only those with the specified metric name. If you include this parameter in your request, you must also include the metricNamespace parameter.

metricNamespace
  • Type: string

Filters results to include only those in the specified namespace. If you include this parameter in your request, you must also include the metricName parameter.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

Result Syntax

[
    'metricFilters' => [
        [
            'creationTime' => <integer>,
            'filterName' => '<string>',
            'filterPattern' => '<string>',
            'logGroupName' => '<string>',
            'metricTransformations' => [
                [
                    'defaultValue' => <float>,
                    'dimensions' => ['<string>', ...],
                    'metricName' => '<string>',
                    'metricNamespace' => '<string>',
                    'metricValue' => '<string>',
                    'unit' => 'Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes/Second|Kilobytes/Second|Megabytes/Second|Gigabytes/Second|Terabytes/Second|Bits/Second|Kilobits/Second|Megabits/Second|Gigabits/Second|Terabits/Second|Count/Second|None',
                ],
                // ...
            ],
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
metricFilters
  • Type: Array of MetricFilter structures

The metric filters.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeQueries

$result = $client->describeQueries([/* ... */]);
$promise = $client->describeQueriesAsync([/* ... */]);

Returns a list of CloudWatch Logs Insights queries that are scheduled, executing, or have been executed recently in this account. You can request all queries or limit it to queries of a specific log group or queries with a certain status.

Parameter Syntax

$result = $client->describeQueries([
    'logGroupName' => '<string>',
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'status' => 'Scheduled|Running|Complete|Failed|Cancelled|Timeout|Unknown',
]);

Parameter Details

Members
logGroupName
  • Type: string

Limits the returned queries to only those for the specified log group.

maxResults
  • Type: int

Limits the number of returned queries to the specified number.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

status
  • Type: string

Limits the returned queries to only those that have the specified status. Valid values are Cancelled, Complete, Failed, Running, and Scheduled.

Result Syntax

[
    'nextToken' => '<string>',
    'queries' => [
        [
            'createTime' => <integer>,
            'logGroupName' => '<string>',
            'queryId' => '<string>',
            'queryString' => '<string>',
            'status' => 'Scheduled|Running|Complete|Failed|Cancelled|Timeout|Unknown',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

queries
  • Type: Array of QueryInfo structures

The list of queries that match the request.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeQueryDefinitions

$result = $client->describeQueryDefinitions([/* ... */]);
$promise = $client->describeQueryDefinitionsAsync([/* ... */]);

This operation returns a paginated list of your saved CloudWatch Logs Insights query definitions.

You can use the queryDefinitionNamePrefix parameter to limit the results to only the query definitions that have names that start with a certain string.

Parameter Syntax

$result = $client->describeQueryDefinitions([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'queryDefinitionNamePrefix' => '<string>',
]);

Parameter Details

Members
maxResults
  • Type: int

Limits the number of returned query definitions to the specified number.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

queryDefinitionNamePrefix
  • Type: string

Use this parameter to filter your results to only the query definitions that have names that start with the prefix you specify.

Result Syntax

[
    'nextToken' => '<string>',
    'queryDefinitions' => [
        [
            'lastModified' => <integer>,
            'logGroupNames' => ['<string>', ...],
            'name' => '<string>',
            'queryDefinitionId' => '<string>',
            'queryString' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

queryDefinitions
  • Type: Array of QueryDefinition structures

The list of query definitions that match your request.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeResourcePolicies

$result = $client->describeResourcePolicies([/* ... */]);
$promise = $client->describeResourcePoliciesAsync([/* ... */]);

Lists the resource policies in this account.

Parameter Syntax

$result = $client->describeResourcePolicies([
    'limit' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
limit
  • Type: int

The maximum number of resource policies to be displayed with one call of this API.

nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

Result Syntax

[
    'nextToken' => '<string>',
    'resourcePolicies' => [
        [
            'lastUpdatedTime' => <integer>,
            'policyDocument' => '<string>',
            'policyName' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

resourcePolicies
  • Type: Array of ResourcePolicy structures

The resource policies that exist in this account.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

DescribeSubscriptionFilters

$result = $client->describeSubscriptionFilters([/* ... */]);
$promise = $client->describeSubscriptionFiltersAsync([/* ... */]);

Lists the subscription filters for the specified log group. You can list all the subscription filters or filter the results by prefix. The results are ASCII-sorted by filter name.

Parameter Syntax

$result = $client->describeSubscriptionFilters([
    'filterNamePrefix' => '<string>',
    'limit' => <integer>,
    'logGroupName' => '<string>', // REQUIRED
    'nextToken' => '<string>',
]);

Parameter Details

Members
filterNamePrefix
  • Type: string

The prefix to match. If you don't specify a value, no prefix filter is applied.

limit
  • Type: int

The maximum number of items returned. If you don't specify a value, the default is up to 50 items.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

Result Syntax

[
    'nextToken' => '<string>',
    'subscriptionFilters' => [
        [
            'creationTime' => <integer>,
            'destinationArn' => '<string>',
            'distribution' => 'Random|ByLogStream',
            'filterName' => '<string>',
            'filterPattern' => '<string>',
            'logGroupName' => '<string>',
            'roleArn' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
nextToken
  • Type: string

The token for the next set of items to return. The token expires after 24 hours.

subscriptionFilters
  • Type: Array of SubscriptionFilter structures

The subscription filters.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

DisassociateKmsKey

$result = $client->disassociateKmsKey([/* ... */]);
$promise = $client->disassociateKmsKeyAsync([/* ... */]);

Disassociates the associated Key Management Service customer master key (CMK) from the specified log group.

After the KMS CMK is disassociated from the log group, CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested.

Note that it can take up to 5 minutes for this operation to take effect.

Parameter Syntax

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

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

FilterLogEvents

$result = $client->filterLogEvents([/* ... */]);
$promise = $client->filterLogEventsAsync([/* ... */]);

Lists log events from the specified log group. You can list all the log events or filter the results using a filter pattern, a time range, and the name of the log stream.

By default, this operation returns as many log events as can fit in 1 MB (up to 10,000 log events) or all the events found within the time range that you specify. If the results include a token, then there are more log events available, and you can get additional results by specifying the token in a subsequent call. This operation can return empty results while there are more log events available through the token.

The returned log events are sorted by event timestamp, the timestamp when the event was ingested by CloudWatch Logs, and the ID of the PutLogEvents request.

Parameter Syntax

$result = $client->filterLogEvents([
    'endTime' => <integer>,
    'filterPattern' => '<string>',
    'interleaved' => true || false,
    'limit' => <integer>,
    'logGroupName' => '<string>', // REQUIRED
    'logStreamNamePrefix' => '<string>',
    'logStreamNames' => ['<string>', ...],
    'nextToken' => '<string>',
    'startTime' => <integer>,
]);

Parameter Details

Members
endTime
  • Type: long (int|float)

The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not returned.

filterPattern
  • Type: string

The filter pattern to use. For more information, see Filter and Pattern Syntax.

If not provided, all the events are matched.

interleaved
  • Type: boolean

If the value is true, the operation makes a best effort to provide responses that contain events from multiple log streams within the log group, interleaved in a single response. If the value is false, all the matched log events in the first log stream are searched first, then those in the next log stream, and so on. The default is false.

Important: Starting on June 17, 2019, this parameter is ignored and the value is assumed to be true. The response from this operation always interleaves events from multiple log streams within a log group.

limit
  • Type: int

The maximum number of events to return. The default is 10,000 events.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group to search.

logStreamNamePrefix
  • Type: string

Filters the results to include only events from log streams that have names starting with this prefix.

If you specify a value for both logStreamNamePrefix and logStreamNames, but the value for logStreamNamePrefix does not match any log stream names specified in logStreamNames, the action returns an InvalidParameterException error.

logStreamNames
  • Type: Array of strings

Filters the results to only logs from the log streams in this list.

If you specify a value for both logStreamNamePrefix and logStreamNames, the action returns an InvalidParameterException error.

nextToken
  • Type: string

The token for the next set of events to return. (You received this token from a previous call.)

startTime
  • Type: long (int|float)

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not returned.

Result Syntax

[
    'events' => [
        [
            'eventId' => '<string>',
            'ingestionTime' => <integer>,
            'logStreamName' => '<string>',
            'message' => '<string>',
            'timestamp' => <integer>,
        ],
        // ...
    ],
    'nextToken' => '<string>',
    'searchedLogStreams' => [
        [
            'logStreamName' => '<string>',
            'searchedCompletely' => true || false,
        ],
        // ...
    ],
]

Result Details

Members
events
  • Type: Array of FilteredLogEvent structures

The matched events.

nextToken
  • Type: string

The token to use when requesting the next set of items. The token expires after 24 hours.

searchedLogStreams
  • Type: Array of SearchedLogStream structures

IMPORTANT Starting on May 15, 2020, this parameter will be deprecated. This parameter will be an empty list after the deprecation occurs.

Indicates which log streams have been searched and whether each has been searched completely.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

GetLogEvents

$result = $client->getLogEvents([/* ... */]);
$promise = $client->getLogEventsAsync([/* ... */]);

Lists log events from the specified log stream. You can list all of the log events or filter using a time range.

By default, this operation returns as many log events as can fit in a response size of 1MB (up to 10,000 log events). You can get additional log events by specifying one of the tokens in a subsequent call. This operation can return empty results while there are more log events available through the token.

Parameter Syntax

$result = $client->getLogEvents([
    'endTime' => <integer>,
    'limit' => <integer>,
    'logGroupName' => '<string>', // REQUIRED
    'logStreamName' => '<string>', // REQUIRED
    'nextToken' => '<string>',
    'startFromHead' => true || false,
    'startTime' => <integer>,
]);

Parameter Details

Members
endTime
  • Type: long (int|float)

The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to or later than this time are not included.

limit
  • Type: int

The maximum number of log events returned. If you don't specify a value, the maximum is as many log events as can fit in a response size of 1 MB, up to 10,000 log events.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamName
  • Required: Yes
  • Type: string

The name of the log stream.

nextToken
  • Type: string

The token for the next set of items to return. (You received this token from a previous call.)

startFromHead
  • Type: boolean

If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.

If you are using a previous nextForwardToken value as the nextToken in this operation, you must specify true for startFromHead.

startTime
  • Type: long (int|float)

The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier than this time are not included.

Result Syntax

[
    'events' => [
        [
            'ingestionTime' => <integer>,
            'message' => '<string>',
            'timestamp' => <integer>,
        ],
        // ...
    ],
    'nextBackwardToken' => '<string>',
    'nextForwardToken' => '<string>',
]

Result Details

Members
events
  • Type: Array of OutputLogEvent structures

The events.

nextBackwardToken
  • Type: string

The token for the next set of items in the backward direction. The token expires after 24 hours. This token is never null. If you have reached the end of the stream, it returns the same token you passed in.

nextForwardToken
  • Type: string

The token for the next set of items in the forward direction. The token expires after 24 hours. If you have reached the end of the stream, it returns the same token you passed in.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

GetLogGroupFields

$result = $client->getLogGroupFields([/* ... */]);
$promise = $client->getLogGroupFieldsAsync([/* ... */]);

Returns a list of the fields that are included in log events in the specified log group, along with the percentage of log events that contain each field. The search is limited to a time period that you specify.

In the results, fields that start with @ are fields generated by CloudWatch Logs. For example, @timestamp is the timestamp of each log event. For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields.

The response results are sorted by the frequency percentage, starting with the highest percentage.

Parameter Syntax

$result = $client->getLogGroupFields([
    'logGroupName' => '<string>', // REQUIRED
    'time' => <integer>,
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group to search.

time
  • Type: long (int|float)

The time to set as the center of the query. If you specify time, the 15 minutes before this time are queries. If you omit time the 8 minutes before and 8 minutes after this time are searched.

The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

Result Syntax

[
    'logGroupFields' => [
        [
            'name' => '<string>',
            'percent' => <integer>,
        ],
        // ...
    ],
]

Result Details

Members
logGroupFields
  • Type: Array of LogGroupField structures

The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

GetLogRecord

$result = $client->getLogRecord([/* ... */]);
$promise = $client->getLogRecordAsync([/* ... */]);

Retrieves all of the fields and values of a single log event. All fields are retrieved, even if the original query that produced the logRecordPointer retrieved only a subset of fields. Fields are returned as field name/field value pairs.

The full unparsed log event is returned within @message.

Parameter Syntax

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

Parameter Details

Members
logRecordPointer
  • Required: Yes
  • Type: string

The pointer corresponding to the log event record you want to retrieve. You get this from the response of a GetQueryResults operation. In that response, the value of the @ptr field for a log event is the value to use as logRecordPointer to retrieve that complete log event record.

Result Syntax

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

Result Details

Members
logRecord
  • Type: Associative array of custom strings keys (Field) to strings

The requested log event, as a JSON string.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

GetQueryResults

$result = $client->getQueryResults([/* ... */]);
$promise = $client->getQueryResultsAsync([/* ... */]);

Returns the results from the specified query.

Only the fields requested in the query are returned, along with a @ptr field, which is the identifier for the log record. You can use the value of @ptr in a GetLogRecord operation to get the full log record.

GetQueryResults does not start a query execution. To run a query, use StartQuery.

If the value of the Status field in the output is Running, this operation returns only partial results. If you see a value of Scheduled or Running for the status, you can retry the operation later to see the final results.

Parameter Syntax

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

Parameter Details

Members
queryId
  • Required: Yes
  • Type: string

The ID number of the query.

Result Syntax

[
    'results' => [
        [
            [
                'field' => '<string>',
                'value' => '<string>',
            ],
            // ...
        ],
        // ...
    ],
    'statistics' => [
        'bytesScanned' => <float>,
        'recordsMatched' => <float>,
        'recordsScanned' => <float>,
    ],
    'status' => 'Scheduled|Running|Complete|Failed|Cancelled|Timeout|Unknown',
]

Result Details

Members
results
  • Type: Array of ResultField structuress

The log events that matched the query criteria during the most recent time it ran.

The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

statistics
  • Type: QueryStatistics structure

Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned. These values reflect the full raw results of the query.

status
  • Type: string

The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

Queries time out after 15 minutes of execution. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

ListTagsLogGroup

$result = $client->listTagsLogGroup([/* ... */]);
$promise = $client->listTagsLogGroupAsync([/* ... */]);

Lists the tags for the specified log group.

Parameter Syntax

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

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

Result Syntax

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

Result Details

Members
tags
  • Type: Associative array of custom strings keys (TagKey) to strings

The tags for the log group.

Errors

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutDestination

$result = $client->putDestination([/* ... */]);
$promise = $client->putDestinationAsync([/* ... */]);

Creates or updates a destination. This operation is used only to create destinations for cross-account subscriptions.

A destination encapsulates a physical resource (such as an Amazon Kinesis stream) and enables you to subscribe to a real-time stream of log events for a different account, ingested using PutLogEvents.

Through an access policy, a destination controls what is written to it. By default, PutDestination does not set any access policy with the destination, which means a cross-account user cannot call PutSubscriptionFilter against this destination. To enable this, the destination owner must call PutDestinationPolicy after PutDestination.

To perform a PutDestination operation, you must also have the iam:PassRole permission.

Parameter Syntax

$result = $client->putDestination([
    'destinationName' => '<string>', // REQUIRED
    'roleArn' => '<string>', // REQUIRED
    'targetArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
destinationName
  • Required: Yes
  • Type: string

A name for the destination.

roleArn
  • Required: Yes
  • Type: string

The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord operation on the destination stream.

targetArn
  • Required: Yes
  • Type: string

The ARN of an Amazon Kinesis stream to which to deliver matching log events.

Result Syntax

[
    'destination' => [
        'accessPolicy' => '<string>',
        'arn' => '<string>',
        'creationTime' => <integer>,
        'destinationName' => '<string>',
        'roleArn' => '<string>',
        'targetArn' => '<string>',
    ],
]

Result Details

Members
destination
  • Type: Destination structure

The destination.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutDestinationPolicy

$result = $client->putDestinationPolicy([/* ... */]);
$promise = $client->putDestinationPolicyAsync([/* ... */]);

Creates or updates an access policy associated with an existing destination. An access policy is an IAM policy document that is used to authorize claims to register a subscription filter against a given destination.

If multiple Amazon Web Services accounts are sending logs to this destination, each sender account must be listed separately in the policy. The policy does not support specifying * as the Principal or the use of the aws:PrincipalOrgId global key.

Parameter Syntax

$result = $client->putDestinationPolicy([
    'accessPolicy' => '<string>', // REQUIRED
    'destinationName' => '<string>', // REQUIRED
    'forceUpdate' => true || false,
]);

Parameter Details

Members
accessPolicy
  • Required: Yes
  • Type: string

An IAM policy document that authorizes cross-account users to deliver their log events to the associated destination. This can be up to 5120 bytes.

destinationName
  • Required: Yes
  • Type: string

A name for an existing destination.

forceUpdate
  • Type: boolean

Specify true if you are updating an existing destination policy to grant permission to an organization ID instead of granting permission to individual AWS accounts. Before you update a destination policy this way, you must first update the subscription filters in the accounts that send logs to this destination. If you do not, the subscription filters might stop working. By specifying true for forceUpdate, you are affirming that you have already updated the subscription filters. For more information, see Updating an existing cross-account subscription

If you omit this parameter, the default of false is used.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutLogEvents

$result = $client->putLogEvents([/* ... */]);
$promise = $client->putLogEventsAsync([/* ... */]);

Uploads a batch of log events to the specified log stream.

You must include the sequence token obtained from the response of the previous call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token in the expectedSequenceToken field from InvalidSequenceTokenException. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls might be successful or one might be rejected.

The batch of events must satisfy the following constraints:

  • The maximum batch size is 1,048,576 bytes. This size is calculated as the sum of all event messages in UTF-8, plus 26 bytes for each log event.

  • None of the log events in the batch can be more than 2 hours in the future.

  • None of the log events in the batch can be older than 14 days or older than the retention period of the log group.

  • The log events in the batch must be in chronological order by their timestamp. The timestamp is the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. (In Amazon Web Services Tools for PowerShell and the Amazon Web Services SDK for .NET, the timestamp is specified in .NET format: yyyy-mm-ddThh:mm:ss. For example, 2017-09-15T13:45:30.)

  • A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.

  • The maximum number of log events in a batch is 10,000.

  • There is a quota of 5 requests per second per log stream. Additional requests are throttled. This quota can't be changed.

If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is an invalid Amazon Web Services access key ID or secret key.

Parameter Syntax

$result = $client->putLogEvents([
    'logEvents' => [ // REQUIRED
        [
            'message' => '<string>', // REQUIRED
            'timestamp' => <integer>, // REQUIRED
        ],
        // ...
    ],
    'logGroupName' => '<string>', // REQUIRED
    'logStreamName' => '<string>', // REQUIRED
    'sequenceToken' => '<string>',
]);

Parameter Details

Members
logEvents
  • Required: Yes
  • Type: Array of InputLogEvent structures

The log events.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

logStreamName
  • Required: Yes
  • Type: string

The name of the log stream.

sequenceToken
  • Type: string

The sequence token obtained from the response of the previous PutLogEvents call. An upload in a newly created log stream does not require a sequence token. You can also get the sequence token using DescribeLogStreams. If you call PutLogEvents twice within a narrow time period using the same value for sequenceToken, both calls might be successful or one might be rejected.

Result Syntax

[
    'nextSequenceToken' => '<string>',
    'rejectedLogEventsInfo' => [
        'expiredLogEventEndIndex' => <integer>,
        'tooNewLogEventStartIndex' => <integer>,
        'tooOldLogEventEndIndex' => <integer>,
    ],
]

Result Details

Members
nextSequenceToken
  • Type: string

The next sequence token.

rejectedLogEventsInfo
  • Type: RejectedLogEventsInfo structure

The rejected events.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • InvalidSequenceTokenException:

    The sequence token is not valid. You can get the correct sequence token in the expectedSequenceToken field in the InvalidSequenceTokenException message.

  • DataAlreadyAcceptedException:

    The event was already logged.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

  • UnrecognizedClientException:

    The most likely cause is an invalid Amazon Web Services access key ID or secret key.

PutMetricFilter

$result = $client->putMetricFilter([/* ... */]);
$promise = $client->putMetricFilterAsync([/* ... */]);

Creates or updates a metric filter and associates it with the specified log group. Metric filters allow you to configure rules to extract metric data from log events ingested through PutLogEvents.

The maximum number of metric filters that can be associated with a log group is 100.

When you create a metric filter, you can also optionally assign a unit and dimensions to the metric that is created.

Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.

To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time.

You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.

Parameter Syntax

$result = $client->putMetricFilter([
    'filterName' => '<string>', // REQUIRED
    'filterPattern' => '<string>', // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
    'metricTransformations' => [ // REQUIRED
        [
            'defaultValue' => <float>,
            'dimensions' => ['<string>', ...],
            'metricName' => '<string>', // REQUIRED
            'metricNamespace' => '<string>', // REQUIRED
            'metricValue' => '<string>', // REQUIRED
            'unit' => 'Seconds|Microseconds|Milliseconds|Bytes|Kilobytes|Megabytes|Gigabytes|Terabytes|Bits|Kilobits|Megabits|Gigabits|Terabits|Percent|Count|Bytes/Second|Kilobytes/Second|Megabytes/Second|Gigabytes/Second|Terabytes/Second|Bits/Second|Kilobits/Second|Megabits/Second|Gigabits/Second|Terabits/Second|Count/Second|None',
        ],
        // ...
    ],
]);

Parameter Details

Members
filterName
  • Required: Yes
  • Type: string

A name for the metric filter.

filterPattern
  • Required: Yes
  • Type: string

A filter pattern for extracting metric data out of ingested log events.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

metricTransformations
  • Required: Yes
  • Type: Array of MetricTransformation structures

A collection of information that defines how metric data gets emitted.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutQueryDefinition

$result = $client->putQueryDefinition([/* ... */]);
$promise = $client->putQueryDefinitionAsync([/* ... */]);

Creates or updates a query definition for CloudWatch Logs Insights. For more information, see Analyzing Log Data with CloudWatch Logs Insights.

To update a query definition, specify its queryDefinitionId in your request. The values of name, queryString, and logGroupNames are changed to the values that you specify in your update operation. No current values are retained from the current query definition. For example, if you update a current query definition that includes log groups, and you don't specify the logGroupNames parameter in your update operation, the query definition changes to contain no log groups.

You must have the logs:PutQueryDefinition permission to be able to perform this operation.

Parameter Syntax

$result = $client->putQueryDefinition([
    'logGroupNames' => ['<string>', ...],
    'name' => '<string>', // REQUIRED
    'queryDefinitionId' => '<string>',
    'queryString' => '<string>', // REQUIRED
]);

Parameter Details

Members
logGroupNames
  • Type: Array of strings

Use this parameter to include specific log groups as part of your query definition.

If you are updating a query definition and you omit this parameter, then the updated definition will contain no log groups.

name
  • Required: Yes
  • Type: string

A name for the query definition. If you are saving a lot of query definitions, we recommend that you name them so that you can easily find the ones you want by using the first part of the name as a filter in the queryDefinitionNamePrefix parameter of DescribeQueryDefinitions.

queryDefinitionId
  • Type: string

If you are updating a query definition, use this parameter to specify the ID of the query definition that you want to update. You can use DescribeQueryDefinitions to retrieve the IDs of your saved query definitions.

If you are creating a query definition, do not specify this parameter. CloudWatch generates a unique ID for the new query definition and include it in the response to this operation.

queryString
  • Required: Yes
  • Type: string

The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

Result Syntax

[
    'queryDefinitionId' => '<string>',
]

Result Details

Members
queryDefinitionId
  • Type: string

The ID of the query definition.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutResourcePolicy

$result = $client->putResourcePolicy([/* ... */]);
$promise = $client->putResourcePolicyAsync([/* ... */]);

Creates or updates a resource policy allowing other Amazon Web Services services to put log events to this account, such as Amazon Route 53. An account can have up to 10 resource policies per Amazon Web Services Region.

Parameter Syntax

$result = $client->putResourcePolicy([
    'policyDocument' => '<string>',
    'policyName' => '<string>',
]);

Parameter Details

Members
policyDocument
  • Type: string

Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. This parameter is required.

The following example creates a resource policy enabling the Route 53 service to put DNS query logs in to the specified log group. Replace "logArn" with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs and replace the value of SourceAccount with the Amazon Web Services account ID making that call.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "Route53LogsToCloudWatchLogs", "Effect": "Allow", "Principal": { "Service": [ "route53.amazonaws.com" ] }, "Action": "logs:PutLogEvents", "Resource": "logArn", "Condition": { "ArnLike": { "aws:SourceArn": "myRoute53ResourceArn" }, "StringEquals": { "aws:SourceAccount": "myAwsAccountId" } } } ] }

policyName
  • Type: string

Name of the new policy. This parameter is required.

Result Syntax

[
    'resourcePolicy' => [
        'lastUpdatedTime' => <integer>,
        'policyDocument' => '<string>',
        'policyName' => '<string>',
    ],
]

Result Details

Members
resourcePolicy
  • Type: ResourcePolicy structure

The new policy.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutRetentionPolicy

$result = $client->putRetentionPolicy([/* ... */]);
$promise = $client->putRetentionPolicyAsync([/* ... */]);

Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.

Parameter Syntax

$result = $client->putRetentionPolicy([
    'logGroupName' => '<string>', // REQUIRED
    'retentionInDays' => <integer>, // REQUIRED
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

retentionInDays
  • Required: Yes
  • Type: int

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.

To set a log group to never have log events expire, use DeleteRetentionPolicy.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • ServiceUnavailableException:

    The service cannot complete the request.

PutSubscriptionFilter

$result = $client->putSubscriptionFilter([/* ... */]);
$promise = $client->putSubscriptionFilterAsync([/* ... */]);

Creates or updates a subscription filter and associates it with the specified log group. Subscription filters allow you to subscribe to a real-time stream of log events ingested through PutLogEvents and have them delivered to a specific destination. When log events are sent to the receiving service, they are Base64 encoded and compressed with the gzip format.

The following destinations are supported for subscription filters:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination that belongs to a different account, for cross-account delivery.

  • An Amazon Kinesis Firehose delivery stream that belongs to the same account as the subscription filter, for same-account delivery.

  • An Lambda function that belongs to the same account as the subscription filter, for same-account delivery.

Each log group can have up to two subscription filters associated with it. If you are updating an existing filter, you must specify the correct name in filterName.

To perform a PutSubscriptionFilter operation, you must also have the iam:PassRole permission.

Parameter Syntax

$result = $client->putSubscriptionFilter([
    'destinationArn' => '<string>', // REQUIRED
    'distribution' => 'Random|ByLogStream',
    'filterName' => '<string>', // REQUIRED
    'filterPattern' => '<string>', // REQUIRED
    'logGroupName' => '<string>', // REQUIRED
    'roleArn' => '<string>',
]);

Parameter Details

Members
destinationArn
  • Required: Yes
  • Type: string

The ARN of the destination to deliver matching log events to. Currently, the supported destinations are:

  • An Amazon Kinesis stream belonging to the same account as the subscription filter, for same-account delivery.

  • A logical destination (specified using an ARN) belonging to a different account, for cross-account delivery.

    If you are setting up a cross-account subscription, the destination must have an IAM policy associated with it that allows the sender to send logs to the destination. For more information, see PutDestinationPolicy.

  • An Amazon Kinesis Firehose delivery stream belonging to the same account as the subscription filter, for same-account delivery.

  • A Lambda function belonging to the same account as the subscription filter, for same-account delivery.

distribution
  • Type: string

The method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to random for a more even distribution. This property is only applicable when the destination is an Amazon Kinesis stream.

filterName
  • Required: Yes
  • Type: string

A name for the subscription filter. If you are updating an existing filter, you must specify the correct name in filterName. To find the name of the filter currently associated with a log group, use DescribeSubscriptionFilters.

filterPattern
  • Required: Yes
  • Type: string

A filter pattern for subscribing to a filtered stream of log events.

logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

roleArn
  • Type: string

The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don't need to provide the ARN when you are working with a logical destination for cross-account delivery.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • OperationAbortedException:

    Multiple concurrent requests to update the same resource were in conflict.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ServiceUnavailableException:

    The service cannot complete the request.

StartQuery

$result = $client->startQuery([/* ... */]);
$promise = $client->startQueryAsync([/* ... */]);

Schedules a query of a log group using CloudWatch Logs Insights. You specify the log group and time range to query and the query string to use.

For more information, see CloudWatch Logs Insights Query Syntax.

Queries time out after 15 minutes of execution. If your queries are timing out, reduce the time range being searched or partition your query into a number of queries.

Parameter Syntax

$result = $client->startQuery([
    'endTime' => <integer>, // REQUIRED
    'limit' => <integer>,
    'logGroupName' => '<string>',
    'logGroupNames' => ['<string>', ...],
    'queryString' => '<string>', // REQUIRED
    'startTime' => <integer>, // REQUIRED
]);

Parameter Details

Members
endTime
  • Required: Yes
  • Type: long (int|float)

The end of the time range to query. The range is inclusive, so the specified end time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

limit
  • Type: int

The maximum number of log events to return in the query. If the query string uses the fields command, only the specified fields and their values are returned. The default is 1000.

logGroupName
  • Type: string

The log group on which to perform the query.

A StartQuery operation must include a logGroupNames or a logGroupName parameter, but not both.

logGroupNames
  • Type: Array of strings

The list of log groups to be queried. You can include up to 20 log groups.

A StartQuery operation must include a logGroupNames or a logGroupName parameter, but not both.

queryString
  • Required: Yes
  • Type: string

The query string to use. For more information, see CloudWatch Logs Insights Query Syntax.

startTime
  • Required: Yes
  • Type: long (int|float)

The beginning of the time range to query. The range is inclusive, so the specified start time is included in the query. Specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

Result Syntax

[
    'queryId' => '<string>',
]

Result Details

Members
queryId
  • Type: string

The unique ID of the query.

Errors

  • MalformedQueryException:

    The query string is not valid. Details about this error are displayed in a QueryCompileError object. For more information, see QueryCompileError.

    For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax.

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • LimitExceededException:

    You have reached the maximum number of resources that can be created.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

StopQuery

$result = $client->stopQuery([/* ... */]);
$promise = $client->stopQueryAsync([/* ... */]);

Stops a CloudWatch Logs Insights query that is in progress. If the query has already ended, the operation returns an error indicating that the specified query is not running.

Parameter Syntax

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

Parameter Details

Members
queryId
  • Required: Yes
  • Type: string

The ID number of the query to stop. To find this ID number, use DescribeQueries.

Result Syntax

[
    'success' => true || false,
]

Result Details

Members
success
  • Type: boolean

This is true if the query was stopped by the StopQuery operation.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ResourceNotFoundException:

    The specified resource does not exist.

  • ServiceUnavailableException:

    The service cannot complete the request.

TagLogGroup

$result = $client->tagLogGroup([/* ... */]);
$promise = $client->tagLogGroupAsync([/* ... */]);

Adds or updates the specified tags for the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup.

For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys. For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

Parameter Syntax

$result = $client->tagLogGroup([
    'logGroupName' => '<string>', // REQUIRED
    'tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

tags
  • Required: Yes
  • Type: Associative array of custom strings keys (TagKey) to strings

The key-value pairs to use for the tags.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ResourceNotFoundException:

    The specified resource does not exist.

  • InvalidParameterException:

    A parameter is specified incorrectly.

TestMetricFilter

$result = $client->testMetricFilter([/* ... */]);
$promise = $client->testMetricFilterAsync([/* ... */]);

Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.

Parameter Syntax

$result = $client->testMetricFilter([
    'filterPattern' => '<string>', // REQUIRED
    'logEventMessages' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
filterPattern
  • Required: Yes
  • Type: string

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

logEventMessages
  • Required: Yes
  • Type: Array of strings

The log event messages to test.

Result Syntax

[
    'matches' => [
        [
            'eventMessage' => '<string>',
            'eventNumber' => <integer>,
            'extractedValues' => ['<string>', ...],
        ],
        // ...
    ],
]

Result Details

Members
matches
  • Type: Array of MetricFilterMatchRecord structures

The matched events.

Errors

  • InvalidParameterException:

    A parameter is specified incorrectly.

  • ServiceUnavailableException:

    The service cannot complete the request.

UntagLogGroup

$result = $client->untagLogGroup([/* ... */]);
$promise = $client->untagLogGroupAsync([/* ... */]);

Removes the specified tags from the specified log group.

To list the tags for a log group, use ListTagsLogGroup. To add tags, use TagLogGroup.

CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using the aws:Resource/key-name or aws:TagKeys condition keys.

Parameter Syntax

$result = $client->untagLogGroup([
    'logGroupName' => '<string>', // REQUIRED
    'tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
logGroupName
  • Required: Yes
  • Type: string

The name of the log group.

tags
  • Required: Yes
  • Type: Array of strings

The tag keys. The corresponding tags are removed from the log group.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

  • ResourceNotFoundException:

    The specified resource does not exist.

Shapes

DataAlreadyAcceptedException

Description

The event was already logged.

Members
expectedSequenceToken
  • Type: string

Destination

Description

Represents a cross-account destination that receives subscription log events.

Members
accessPolicy
  • Type: string

An IAM policy document that governs which Amazon Web Services accounts can create subscription filters against this destination.

arn
  • Type: string

The ARN of this destination.

creationTime
  • Type: long (int|float)

The creation time of the destination, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

destinationName
  • Type: string

The name of the destination.

roleArn
  • Type: string

A role for impersonation, used when delivering log events to the target.

targetArn
  • Type: string

The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).

ExportTask

Description

Represents an export task.

Members
destination
  • Type: string

The name of the S3 bucket to which the log data was exported.

destinationPrefix
  • Type: string

The prefix that was used as the start of Amazon S3 key for every object exported.

executionInfo
  • Type: ExportTaskExecutionInfo structure

Execution information about the export task.

from
  • Type: long (int|float)

The start time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp before this time are not exported.

logGroupName
  • Type: string

The name of the log group from which logs data was exported.

status
  • Type: ExportTaskStatus structure

The status of the export task.

taskId
  • Type: string

The ID of the export task.

taskName
  • Type: string

The name of the export task.

to
  • Type: long (int|float)

The end time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this time are not exported.

ExportTaskExecutionInfo

Description

Represents the status of an export task.

Members
completionTime
  • Type: long (int|float)

The completion time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

creationTime
  • Type: long (int|float)

The creation time of the export task, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

ExportTaskStatus

Description

Represents the status of an export task.

Members
code
  • Type: string

The status code of the export task.

message
  • Type: string

The status message related to the status code.

FilteredLogEvent

Description

Represents a matched event.

Members
eventId
  • Type: string

The ID of the event.

ingestionTime
  • Type: long (int|float)

The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

logStreamName
  • Type: string

The name of the log stream to which this event belongs.

message
  • Type: string

The data contained in the log event.

timestamp
  • Type: long (int|float)

The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

InputLogEvent

Description

Represents a log event, which is a record of activity that was recorded by the application or resource being monitored.

Members
message
  • Required: Yes
  • Type: string

The raw event message.

timestamp
  • Required: Yes
  • Type: long (int|float)

The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

InvalidOperationException

Description

The operation is not valid on the specified resource.

Members

InvalidParameterException

Description

A parameter is specified incorrectly.

Members

InvalidSequenceTokenException

Description

The sequence token is not valid. You can get the correct sequence token in the expectedSequenceToken field in the InvalidSequenceTokenException message.

Members
expectedSequenceToken
  • Type: string

LimitExceededException

Description

You have reached the maximum number of resources that can be created.

Members

LogGroup

Description

Represents a log group.

Members
arn
  • Type: string

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

creationTime
  • Type: long (int|float)

The creation time of the log group, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

kmsKeyId
  • Type: string

The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.

logGroupName
  • Type: string

The name of the log group.

metricFilterCount
  • Type: int

The number of metric filters.

retentionInDays
  • Type: int

The number of days to retain the log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 2192, 2557, 2922, 3288, and 3653.

To set a log group to never have log events expire, use DeleteRetentionPolicy.

storedBytes
  • Type: long (int|float)

The number of bytes stored.

LogGroupField

Description

The fields contained in log events found by a GetLogGroupFields operation, along with the percentage of queried log events in which each field appears.

Members
name
  • Type: string

The name of a log field.

percent
  • Type: int

The percentage of log events queried that contained the field.

LogStream

Description

Represents a log stream, which is a sequence of log events from a single emitter of logs.

Members
arn
  • Type: string

The Amazon Resource Name (ARN) of the log stream.

creationTime
  • Type: long (int|float)

The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

firstEventTimestamp
  • Type: long (int|float)

The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

lastEventTimestamp
  • Type: long (int|float)

The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. The lastEventTime value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.

lastIngestionTime
  • Type: long (int|float)

The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

logStreamName
  • Type: string

The name of the log stream.

storedBytes
  • Type: long (int|float)

The number of bytes stored.

Important: On June 17, 2019, this parameter was deprecated for log streams, and is always reported as zero. This change applies only to log streams. The storedBytes parameter for log groups is not affected.

uploadSequenceToken
  • Type: string

The sequence token.

MalformedQueryException

Description

The query string is not valid. Details about this error are displayed in a QueryCompileError object. For more information, see QueryCompileError.

For more information about valid query syntax, see CloudWatch Logs Insights Query Syntax.

Members
queryCompileError
  • Type: QueryCompileError structure

Reserved.

MetricFilter

Description

Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.

Members
creationTime
  • Type: long (int|float)

The creation time of the metric filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

filterName
  • Type: string

The name of the metric filter.

filterPattern
  • Type: string

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

logGroupName
  • Type: string

The name of the log group.

metricTransformations
  • Type: Array of MetricTransformation structures

The metric transformations.

MetricFilterMatchRecord

Description

Represents a matched event.

Members
eventMessage
  • Type: string

The raw event data.

eventNumber
  • Type: long (int|float)

The event number.

extractedValues
  • Type: Associative array of custom strings keys (Token) to strings

The values extracted from the event data by the filter.

MetricTransformation

Description

Indicates how to transform ingested log events to metric data in a CloudWatch metric.

Members
defaultValue
  • Type: double

(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.

dimensions
  • Type: Associative array of custom strings keys (DimensionsKey) to strings

The fields to use as dimensions for the metric. One metric filter can include as many as three dimensions.

Metrics extracted from log events are charged as custom metrics. To prevent unexpected high charges, do not specify high-cardinality fields such as IPAddress or requestID as dimensions. Each different value found for a dimension is treated as a separate metric and accrues charges as a separate custom metric.

To help prevent accidental high charges, Amazon disables a metric filter if it generates 1000 different name/value pairs for the dimensions that you have specified within a certain amount of time.

You can also set up a billing alarm to alert you if your charges are higher than expected. For more information, see Creating a Billing Alarm to Monitor Your Estimated Amazon Web Services Charges.

metricName
  • Required: Yes
  • Type: string

The name of the CloudWatch metric.

metricNamespace
  • Required: Yes
  • Type: string

A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.

metricValue
  • Required: Yes
  • Type: string

The value to publish to the CloudWatch metric when a filter pattern matches a log event.

unit
  • Type: string

The unit to assign to the metric. If you omit this, the unit is set as None.

OperationAbortedException

Description

Multiple concurrent requests to update the same resource were in conflict.

Members

OutputLogEvent

Description

Represents a log event.

Members
ingestionTime
  • Type: long (int|float)

The time the event was ingested, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

message
  • Type: string

The data contained in the log event.

timestamp
  • Type: long (int|float)

The time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

QueryCompileError

Description

Reserved.

Members
location
  • Type: QueryCompileErrorLocation structure

Reserved.

message
  • Type: string

Reserved.

QueryCompileErrorLocation

Description

Reserved.

Members
endCharOffset
  • Type: int

Reserved.

startCharOffset
  • Type: int

Reserved.

QueryDefinition

Description

This structure contains details about a saved CloudWatch Logs Insights query definition.

Members
lastModified
  • Type: long (int|float)

The date that the query definition was most recently modified.

logGroupNames
  • Type: Array of strings

If this query definition contains a list of log groups that it is limited to, that list appears here.

name
  • Type: string

The name of the query definition.

queryDefinitionId
  • Type: string

The unique ID of the query definition.

queryString
  • Type: string

The query string to use for this definition. For more information, see CloudWatch Logs Insights Query Syntax.

QueryInfo

Description

Information about one CloudWatch Logs Insights query that matches the request in a DescribeQueries operation.

Members
createTime
  • Type: long (int|float)

The date and time that this query was created.

logGroupName
  • Type: string

The name of the log group scanned by this query.

queryId
  • Type: string

The unique ID number of this query.

queryString
  • Type: string

The query string used in this query.

status
  • Type: string

The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.

QueryStatistics

Description

Contains the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the log events that were scanned.

Members
bytesScanned
  • Type: double

The total number of bytes in the log events scanned during the query.

recordsMatched
  • Type: double

The number of log events that matched the query string.

recordsScanned
  • Type: double

The total number of log events scanned during the query.

RejectedLogEventsInfo

Description

Represents the rejected events.

Members
expiredLogEventEndIndex
  • Type: int

The expired log events.

tooNewLogEventStartIndex
  • Type: int

The log events that are too new.

tooOldLogEventEndIndex
  • Type: int

The log events that are too old.

ResourceAlreadyExistsException

Description

The specified resource already exists.

Members

ResourceNotFoundException

Description

The specified resource does not exist.

Members

ResourcePolicy

Description

A policy enabling one or more entities to put logs to a log group in this account.

Members
lastUpdatedTime
  • Type: long (int|float)

Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

policyDocument
  • Type: string

The details of the policy.

policyName
  • Type: string

The name of the resource policy.

ResultField

Description

Contains one field from one log event returned by a CloudWatch Logs Insights query, along with the value of that field.

For more information about the fields that are generated by CloudWatch logs, see Supported Logs and Discovered Fields.

Members
field
  • Type: string

The log event field.

value
  • Type: string

The value of this field.

SearchedLogStream

Description

Represents the search status of a log stream.

Members
logStreamName
  • Type: string

The name of the log stream.

searchedCompletely
  • Type: boolean

Indicates whether all the events in this log stream were searched.

ServiceUnavailableException

Description

The service cannot complete the request.

Members

SubscriptionFilter

Description

Represents a subscription filter.

Members
creationTime
  • Type: long (int|float)

The creation time of the subscription filter, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

destinationArn
  • Type: string

The Amazon Resource Name (ARN) of the destination.

distribution
  • Type: string

The method used to distribute log data to the destination, which can be either random or grouped by log stream.

filterName
  • Type: string

The name of the subscription filter.

filterPattern
  • Type: string

A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.

logGroupName
  • Type: string

The name of the log group.

roleArn
  • Type: string

UnrecognizedClientException

Description

The most likely cause is an invalid Amazon Web Services access key ID or secret key.

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