Hay más AWS SDK ejemplos disponibles en el GitHub repositorio de AWS Doc SDK Examples
Las traducciones son generadas a través de traducción automática. En caso de conflicto entre la traducción y la version original de inglés, prevalecerá la version en inglés.
Ejemplos de código para Amazon S3 mediante AWS SDKs
Los siguientes ejemplos de código muestran cómo utilizar Amazon Simple Storage Service con un kit de desarrollo de AWS software (SDK).
Los conceptos básicos son ejemplos de código que muestran cómo realizar las operaciones esenciales dentro de un servicio.
Las acciones son extractos de código de programas más grandes y deben ejecutarse en contexto. Mientras las acciones muestran cómo llamar a las funciones de servicio individuales, es posible ver las acciones en contexto en los escenarios relacionados.
Los escenarios son ejemplos de código que muestran cómo llevar a cabo una tarea específica a través de llamadas a varias funciones dentro del servicio o combinado con otros servicios de AWS.
Más recursos
Guía del usuario de Amazon S3: más información sobre Amazon S3.
APIReferencia de Amazon S3: detalles sobre todas las acciones de Amazon S3 disponibles.
AWS Centro de desarrolladores
: ejemplos de código que puede filtrar por categoría o por búsqueda de texto completo. AWS SDKEjemplos
: GitHub repositorio con código completo en los idiomas preferidos. Incluye instrucciones para configurar y ejecutar el código.
Introducción
En los siguientes ejemplos de código se muestra cómo empezar a utilizar Amazon S3.
Ejemplos de código
- Conceptos básicos
- Introducción a Amazon S3
- Aprenda los conceptos básicos
- Acciones
- AbortMultipartUpload
- AbortMultipartUploads
- CompleteMultipartUpload
- CopyObject
- CreateBucket
- CreateMultiRegionAccessPoint
- CreateMultipartUpload
- DeleteBucket
- DeleteBucketAnalyticsConfiguration
- DeleteBucketCors
- DeleteBucketEncryption
- DeleteBucketInventoryConfiguration
- DeleteBucketLifecycle
- DeleteBucketMetricsConfiguration
- DeleteBucketPolicy
- DeleteBucketReplication
- DeleteBucketTagging
- DeleteBucketWebsite
- DeleteObject
- DeleteObjectTagging
- DeleteObjects
- DeletePublicAccessBlock
- GetBucketAccelerateConfiguration
- GetBucketAcl
- GetBucketAnalyticsConfiguration
- GetBucketCors
- GetBucketEncryption
- GetBucketInventoryConfiguration
- GetBucketLifecycleConfiguration
- GetBucketLocation
- GetBucketLogging
- GetBucketMetricsConfiguration
- GetBucketNotification
- GetBucketPolicy
- GetBucketPolicyStatus
- GetBucketReplication
- GetBucketRequestPayment
- GetBucketTagging
- GetBucketVersioning
- GetBucketWebsite
- GetObject
- GetObjectAcl
- GetObjectAttributes
- GetObjectLegalHold
- GetObjectLockConfiguration
- GetObjectRetention
- GetObjectTagging
- GetPublicAccessBlock
- HeadBucket
- HeadObject
- ListBucketAnalyticsConfigurations
- ListBucketInventoryConfigurations
- ListBuckets
- ListMultipartUploads
- ListObjectVersions
- ListObjects
- ListObjectsV2
- PutBucketAccelerateConfiguration
- PutBucketAcl
- PutBucketCors
- PutBucketEncryption
- PutBucketLifecycleConfiguration
- PutBucketLogging
- PutBucketNotification
- PutBucketNotificationConfiguration
- PutBucketPolicy
- PutBucketReplication
- PutBucketRequestPayment
- PutBucketTagging
- PutBucketVersioning
- PutBucketWebsite
- PutObject
- PutObjectAcl
- PutObjectLegalHold
- PutObjectLockConfiguration
- PutObjectRetention
- RestoreObject
- SelectObjectContent
- UploadPart
- Escenarios
- Convierta texto en voz y de nuevo a texto
- Cree un prefirmado URL
- Crear una aplicación sin servidor para administrar fotos
- Crear una página web que enumere los objetos de Amazon S3
- Creación de una aplicación de exploración de Amazon Textract
- Eliminación de cargas multiparte incompletas
- Detectar en imágenes PPE
- Detecte entidades en el texto extraído de una imagen
- Detectar rostros en una imagen
- Detectar objetos en imágenes
- Detecte personas y objetos en un video
- Descargar objetos en un directorio local
- Obtención de un objeto desde un punto de acceso de varias regiones
- Obtenga un objeto de un bucket si se ha modificado
- Introducción al cifrado
- Comenzar a utilizar etiquetas
- Obtención de la configuración de retención legal de un objeto
- Bloqueo de objetos de Amazon S3
- Gestione las listas de control de acceso () ACLs
- Administre objetos con control de versiones en lotes con una función de Lambda
- Analizar URIs
- Ejecución de una copia multiparte
- Ejecución de una carga multiparte
- Procese notificaciones de eventos de S3
- Guardar EXIF y otra información sobre la imagen
- Envía notificaciones de eventos a EventBridge
- Realización de un seguimiento de cargas y descargas
- Transformación de datos con S3 Object Lambda
- Prueba unitaria y de integración con un SDK
- Cargar directorio en un bucket
- Cargar o descargar archivos grandes
- Carga de un flujo de tamaño desconocido
- Usar sumas de comprobación
- Trabajo con la integridad de los objetos de Amazon S3
- Trabajo con objetos con control de versiones
- Ejemplos sin servidor