Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service/s3: Add support for accelerate with dual stack #887

Merged
merged 1 commit into from Oct 13, 2016

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Oct 12, 2016

Adds support for using S3 accelerate with dual stack IPv4 with IPv6. To
enable dual stack with accelerate set the Config.UseDualstack and
Config.S3UseAccelerate.

sess := session.New()
svc := s3.New(sess, &aws.Config{
    S3UseAccelerate: aws.Bool(true),
    UseDualStack:    aws.Bool(true),
})

result, err := svc.GetObject(&s3.GetObjectInput{
    Bucket: aws.String("my_bucket"),
    Key:    aws.String("my_key"),
})

// Request made to:
// https://my_bucket.s3-accelerate.dualstack.amazonaws.com/my_key

Adds support for using S3 accelerate with Dualstack IPv4 with IPv6. To
enable Dualstack with accelerate set the `Config.UseDualstack` and
`Config.S3UseAccelerate`.

```go
sess := session.New()
svc := s3.New(sess, &aws.Config{
	S3UseAccelerate: aws.Bool(true),
	UseDualStack:    aws.Bool(true),
})

result, err := svc.GetObject(&s3.GetObjectInput{
	Bucket: aws.String("my_bucket"),
	Key:    aws.String("my_key"),
})

// Request made to:
// https://my_bucket.s3-accelerate.dualstack.amazonaws.com/my_key
```
@xibz
Copy link
Contributor

xibz commented Oct 13, 2016

LGTM

@jasdel jasdel merged commit 7cfb296 into aws:master Oct 13, 2016
@jasdel jasdel deleted the feature/s3AccelDualstack branch October 13, 2016 17:54
jasdel added a commit to jasdel/aws-sdk-go that referenced this pull request Oct 13, 2016
Service Model Updates
---
* `service/acm`: Update service API, and documentation.
  * This change allows users to import third-party SSL/TLS certificates into ACM.
* `service/elasticbeanstalk`: Update service API, documentation, and pagination.
  * Elastic Beanstalk DescribeApplicationVersions API is being updated to support pagination.
* `service/gamelift`: Update service API, and documentation.
  * New APIs to protect game developer resource (builds, alias, fleets, instances, game sessions and player sessions) against abuse.

SDK Features
---
* `service/s3`: Add support for accelerate with dualstack (aws#887)
@jasdel jasdel mentioned this pull request Oct 13, 2016
jasdel added a commit that referenced this pull request Oct 13, 2016
Service Model Updates
---
* `service/acm`: Update service API, and documentation.
  * This change allows users to import third-party SSL/TLS certificates into ACM.
* `service/elasticbeanstalk`: Update service API, documentation, and pagination.
  * Elastic Beanstalk DescribeApplicationVersions API is being updated to support pagination.
* `service/gamelift`: Update service API, and documentation.
  * New APIs to protect game developer resource (builds, alias, fleets, instances, game sessions and player sessions) against abuse.

SDK Features
---
* `service/s3`: Add support for accelerate with dualstack (#887)
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this pull request May 20, 2021
codegen: Add support for list and maps generated as value members instead of pointer
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this pull request May 20, 2021
Fixes up documentation comments that were missed in aws#887
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants