Skip to content

mapping needed between Region and BucketLocationConstraint #48

Closed
@johnny-guo

Description

@johnny-guo

Ideally when doing GetBucketLocationRequest, we can get back a Region instead of another enum BucketLocationConstraint. But looking at these two enum's:

         enum class AWS_CORE_API Region
    {
        US_EAST_1,
        US_WEST_1,
        US_WEST_2,
        EU_WEST_1,
        EU_CENTRAL_1,
        AP_SOUTHEAST_1,
        AP_SOUTHEAST_2,
        AP_NORTHEAST_1,
        SA_EAST_1
    }


    enum class BucketLocationConstraint
      {
        NOT_SET,
        EU,
        eu_west_1,
        us_west_1,
        us_west_2,
        ap_southeast_1,
        ap_southeast_2,
        ap_northeast_1,
        sa_east_1,
        cn_north_1,
        eu_central_1
      };

There are some extra "location" in BucketLocationConstraint, i.e. NOT_SET, EU, and cn_north_1 which are not in Region. Can someone explain what are these in terms of Region?

Thanks,
Johnny

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions