Skip to content

[V4] builder.Configuration.GetAWSOptions<T> is gone as a breaking change #3866

Open
@attilah

Description

@attilah

Describe the issue

While using the V3 SDK we were configuring S3 Client specific options like ForcePathStyle from our appSettings.json file as it was the recommended way:

var s3Options = builder.Configuration.GetAWSOptions<AmazonS3Config>("AWS:S3");
builder.Services.AddAWSService<IAmazonS3>(s3Options);

Now in V4 of the SDK the generic method for GetAWSOptions is gone and did not find any information in the migration guide on what would be the new way of doing the same?

I checked the extension methods and the default client and options creation, in the NETCoreSetup package, but those have no way of passing in anything read from the configuration.

Provide guidance on how that 2 lines above should look like in V4.

Links

https://docs.aws.amazon.com/sdk-for-net/v4/developer-guide/net-dg-v4.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExtensionsdocumentationThis is a problem with documentation.p1This is a high priority issuequeuedv4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions