Navigation

  • index
  • modules |
  • next |
  • previous |
  • Boto3 Docs 1.26.85 documentation »
  • Available services »
  • Backup »
Boto3 Docs 1.26.85 documentation

Table Of Contents

  • Quickstart
  • A sample tutorial
  • Code examples
  • Developer guide
  • Security
  • Available services
    • AccessAnalyzer
    • Account
    • ACM
    • ACMPCA
    • AlexaForBusiness
    • PrometheusService
    • Amplify
    • AmplifyBackend
    • AmplifyUIBuilder
    • APIGateway
    • ApiGatewayManagementApi
    • ApiGatewayV2
    • AppConfig
    • AppConfigData
    • Appflow
    • AppIntegrationsService
    • ApplicationAutoScaling
    • ApplicationInsights
    • ApplicationCostProfiler
    • AppMesh
    • AppRunner
    • AppStream
    • AppSync
    • ARCZonalShift
    • Athena
    • AuditManager
    • AutoScaling
    • AutoScalingPlans
    • Backup
      • Client
      • Paginators
    • BackupGateway
    • BackupStorage
    • Batch
    • BillingConductor
    • Braket
    • Budgets
    • CostExplorer
    • Chime
    • ChimeSDKIdentity
    • ChimeSDKMediaPipelines
    • ChimeSDKMeetings
    • ChimeSDKMessaging
    • ChimeSDKVoice
    • CleanRoomsService
    • Cloud9
    • CloudControlApi
    • CloudDirectory
    • CloudFormation
    • CloudFront
    • CloudHSM
    • CloudHSMV2
    • CloudSearch
    • CloudSearchDomain
    • CloudTrail
    • CloudTrailDataService
    • CloudWatch
    • CodeArtifact
    • CodeBuild
    • CodeCatalyst
    • CodeCommit
    • CodeDeploy
    • CodeGuruReviewer
    • CodeGuruProfiler
    • CodePipeline
    • CodeStar
    • CodeStarconnections
    • CodeStarNotifications
    • CognitoIdentity
    • CognitoIdentityProvider
    • CognitoSync
    • Comprehend
    • ComprehendMedical
    • ComputeOptimizer
    • ConfigService
    • Connect
    • ConnectContactLens
    • ConnectCampaignService
    • ConnectCases
    • ConnectParticipant
    • ControlTower
    • CostandUsageReportService
    • CustomerProfiles
    • GlueDataBrew
    • DataExchange
    • DataPipeline
    • DataSync
    • DAX
    • Detective
    • DeviceFarm
    • DevOpsGuru
    • DirectConnect
    • ApplicationDiscoveryService
    • DLM
    • DatabaseMigrationService
    • DocDB
    • DocDBElastic
    • drs
    • DirectoryService
    • DynamoDB
    • DynamoDBStreams
    • EBS
    • EC2
    • EC2InstanceConnect
    • ECR
    • ECRPublic
    • ECS
    • EFS
    • EKS
    • ElasticInference
    • ElastiCache
    • ElasticBeanstalk
    • ElasticTranscoder
    • ElasticLoadBalancing
    • ElasticLoadBalancingv2
    • EMR
    • EMRContainers
    • EMRServerless
    • ElasticsearchService
    • EventBridge
    • CloudWatchEvidently
    • finspace
    • FinSpaceData
    • Firehose
    • FIS
    • FMS
    • ForecastService
    • ForecastQueryService
    • FraudDetector
    • FSx
    • GameLift
    • GameSparks
    • Glacier
    • GlobalAccelerator
    • Glue
    • ManagedGrafana
    • Greengrass
    • GreengrassV2
    • GroundStation
    • GuardDuty
    • Health
    • HealthLake
    • Honeycode
    • IAM
    • IdentityStore
    • imagebuilder
    • ImportExport
    • Inspector
    • Inspector2
    • CloudWatchInternetMonitor
    • IoT
    • IoTDataPlane
    • IoTJobsDataPlane
    • IoTRoboRunner
    • IoT1ClickDevicesService
    • IoT1ClickProjects
    • IoTAnalytics
    • IoTDeviceAdvisor
    • IoTEvents
    • IoTEventsData
    • IoTFleetHub
    • IoTFleetWise
    • IoTSecureTunneling
    • IoTSiteWise
    • IoTThingsGraph
    • IoTTwinMaker
    • IoTWireless
    • IVS
    • ivschat
    • Kafka
    • KafkaConnect
    • kendra
    • KendraRanking
    • Keyspaces
    • Kinesis
    • KinesisVideoArchivedMedia
    • KinesisVideoMedia
    • KinesisVideoSignalingChannels
    • KinesisVideoWebRTCStorage
    • KinesisAnalytics
    • KinesisAnalyticsV2
    • KinesisVideo
    • KMS
    • LakeFormation
    • Lambda
    • LexModelBuildingService
    • LexRuntimeService
    • LexModelsV2
    • LexRuntimeV2
    • LicenseManager
    • LicenseManagerLinuxSubscriptions
    • LicenseManagerUserSubscriptions
    • Lightsail
    • LocationService
    • CloudWatchLogs
    • LookoutEquipment
    • LookoutMetrics
    • LookoutforVision
    • MainframeModernization
    • MachineLearning
    • Macie
    • Macie2
    • ManagedBlockchain
    • MarketplaceCatalog
    • MarketplaceEntitlementService
    • MarketplaceCommerceAnalytics
    • MediaConnect
    • MediaConvert
    • MediaLive
    • MediaPackage
    • MediaPackageVod
    • MediaStore
    • MediaStoreData
    • MediaTailor
    • MemoryDB
    • MarketplaceMetering
    • MigrationHub
    • mgn
    • MigrationHubRefactorSpaces
    • MigrationHubConfig
    • MigrationHubOrchestrator
    • MigrationHubStrategyRecommendations
    • Mobile
    • MQ
    • MTurk
    • MWAA
    • Neptune
    • NetworkFirewall
    • NetworkManager
    • NimbleStudio
    • CloudWatchObservabilityAccessManager
    • Omics
    • OpenSearchService
    • OpenSearchServiceServerless
    • OpsWorks
    • OpsWorksCM
    • Organizations
    • Outposts
    • Panorama
    • Personalize
    • PersonalizeEvents
    • PersonalizeRuntime
    • PI
    • Pinpoint
    • PinpointEmail
    • PinpointSMSVoice
    • PinpointSMSVoiceV2
    • EventBridgePipes
    • Polly
    • Pricing
    • Private5G
    • Proton
    • QLDB
    • QLDBSession
    • QuickSight
    • RAM
    • RecycleBin
    • RDS
    • RDSDataService
    • Redshift
    • RedshiftDataAPIService
    • RedshiftServerless
    • Rekognition
    • ResilienceHub
    • ResourceExplorer
    • ResourceGroups
    • ResourceGroupsTaggingAPI
    • RoboMaker
    • IAMRolesAnywhere
    • Route53
    • Route53RecoveryCluster
    • Route53RecoveryControlConfig
    • Route53RecoveryReadiness
    • Route53Domains
    • Route53Resolver
    • CloudWatchRUM
    • S3
    • S3Control
    • S3Outposts
    • SageMaker
    • AugmentedAIRuntime
    • SagemakerEdgeManager
    • SageMakerFeatureStoreRuntime
    • SageMakergeospatialcapabilities
    • SageMakerMetrics
    • SageMakerRuntime
    • SavingsPlans
    • EventBridgeScheduler
    • Schemas
    • SimpleDB
    • SecretsManager
    • SecurityHub
    • SecurityLake
    • ServerlessApplicationRepository
    • ServiceQuotas
    • ServiceCatalog
    • AppRegistry
    • ServiceDiscovery
    • SES
    • SESV2
    • Shield
    • signer
    • SimSpaceWeaver
    • SMS
    • PinpointSMSVoice
    • SnowDeviceManagement
    • Snowball
    • SNS
    • SQS
    • SSM
    • SSMContacts
    • SSMIncidents
    • SsmSap
    • SSO
    • SSOAdmin
    • SSOOIDC
    • SFN
    • StorageGateway
    • STS
    • Support
    • SupportApp
    • SWF
    • Synthetics
    • Textract
    • TimestreamQuery
    • TimestreamWrite
    • TelcoNetworkBuilder
    • TranscribeService
    • Transfer
    • Translate
    • VoiceID
    • WAF
    • WAFRegional
    • WAFV2
    • WellArchitected
    • ConnectWisdomService
    • WorkDocs
    • WorkLink
    • WorkMail
    • WorkMailMessageFlow
    • WorkSpaces
    • WorkSpacesWeb
    • XRay
  • Core references
  • Customization references
  1. Docs
  2. Available services
  3. Backup
  4. get_legal_hold

get_legal_hold¶

get_legal_hold(**kwargs)¶

This action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata.

See also: AWS API Documentation

Request Syntax

response = client.get_legal_hold(
    LegalHoldId='string'
)
Parameters
LegalHoldId (string) --

[REQUIRED]

This is the ID required to use GetLegalHold . This unique ID is associated with a specific legal hold.

Return type
dict
Returns
Response Syntax
{
    'Title': 'string',
    'Status': 'CREATING'|'ACTIVE'|'CANCELING'|'CANCELED',
    'Description': 'string',
    'CancelDescription': 'string',
    'LegalHoldId': 'string',
    'LegalHoldArn': 'string',
    'CreationDate': datetime(2015, 1, 1),
    'CancellationDate': datetime(2015, 1, 1),
    'RetainRecordUntil': datetime(2015, 1, 1),
    'RecoveryPointSelection': {
        'VaultNames': [
            'string',
        ],
        'ResourceIdentifiers': [
            'string',
        ],
        'DateRange': {
            'FromDate': datetime(2015, 1, 1),
            'ToDate': datetime(2015, 1, 1)
        }
    }
}

Response Structure

  • (dict) --
    • Title (string) --

      This is the string title of the legal hold.

    • Status (string) --

      This is the status of the legal hold. Statuses can be ACTIVE , CREATING , CANCELED , and CANCELING .

    • Description (string) --

      This is the returned string description of the legal hold.

    • CancelDescription (string) --

      String describing the reason for removing the legal hold.

    • LegalHoldId (string) --

      This is the returned ID associated with a specified legal hold.

    • LegalHoldArn (string) --

      This is the returned framework ARN for the specified legal hold. An Amazon Resource Name (ARN) uniquely identifies a resource. The format of the ARN depends on the resource type.

    • CreationDate (datetime) --

      Time in number format when legal hold was created.

    • CancellationDate (datetime) --

      Time in number when legal hold was cancelled.

    • RetainRecordUntil (datetime) --

      This is the date and time until which the legal hold record will be retained.

    • RecoveryPointSelection (dict) --

      This specifies criteria to assign a set of resources, such as resource types or backup vaults.

      • VaultNames (list) --

        These are the names of the vaults in which the selected recovery points are contained.

        • (string) --
      • ResourceIdentifiers (list) --

        These are the resources included in the resource selection (including type of resources and vaults).

        • (string) --
      • DateRange (dict) --

        This is a resource filter containing FromDate: DateTime and ToDate: DateTime. Both values are required. Future DateTime values are not permitted.

        The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds ((milliseconds are optional). For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.

        • FromDate (datetime) --

          This value is the beginning date, inclusive.

          The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

        • ToDate (datetime) --

          This value is the end date, inclusive.

          The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional).

Exceptions

  • Backup.Client.exceptions.InvalidParameterValueException
  • Backup.Client.exceptions.MissingParameterValueException
  • Backup.Client.exceptions.ServiceUnavailableException
  • Backup.Client.exceptions.ResourceNotFoundException
get_backup_vault_notifications
get_paginator

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Boto3 Docs 1.26.85 documentation »
  • Available services »
  • Backup »
Privacy | Site Terms | Cookie preferences | © Copyright 2023, Amazon Web Services, Inc. Created using Sphinx.