AWS SDK

AWS SDK

rev. a25ccedd311e7562a03a1cd07d728cef10c9474c (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_global_profile_url/test-case.json

@@ -1,0 +12,0 @@
    1         -
{
    2         -
  "name": "assume-role-override-global-profile-url",
    3         -
  "docs": "override endpoint_url via profile",
    4         -
  "result": {
    5         -
    "Ok": {
    6         -
      "access_key_id": "ASIARTESTID",
    7         -
      "secret_access_key": "TESTSECRETKEY",
    8         -
      "session_token": "TESTSESSIONTOKEN",
    9         -
      "expiry": 1628193482
   10         -
    }
   11         -
  }
   12         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_env_url/env.json

@@ -1,0 +4,0 @@
    1         -
{
    2         -
  "HOME": "/home",
    3         -
  "AWS_ENDPOINT_URL_STS": "http://aws.sts-env-override"
    4         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_env_url/fs/home/.aws/config

@@ -1,0 +7,0 @@
    1         -
[default]
    2         -
region = us-east-1
    3         -
role_arn = arn:aws:iam::123456789:role/integration-test
    4         -
source_profile = base
    5         -
    6         -
[profile base]
    7         -
region = us-east-1

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_env_url/fs/home/.aws/credentials

@@ -1,0 +3,0 @@
    1         -
[base]
    2         -
aws_access_key_id = AKIAFAKE
    3         -
aws_secret_access_key = FAKE

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_env_url/http-traffic.json

@@ -1,0 +107,0 @@
    1         -
{
    2         -
  "events": [
    3         -
    {
    4         -
      "connection_id": 0,
    5         -
      "action": {
    6         -
        "Request": {
    7         -
          "request": {
    8         -
            "uri": "http://aws.sts-env-override",
    9         -
            "headers": {
   10         -
              "content-type": [
   11         -
                "application/x-www-form-urlencoded"
   12         -
              ],
   13         -
              "authorization": [
   14         -
                "AWS4-HMAC-SHA256 Credential=AKIAFAKE/20210810/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-user-agent, Signature=cd5cb2aa1d20717ca17692bcbda711797ae9eb8bb1130690b021b3952b7ae56e"
   15         -
              ],
   16         -
              "user-agent": [
   17         -
                "aws-sdk-rust/0.1.0 os/macos lang/rust/1.55.0-nightly"
   18         -
              ],
   19         -
              "content-length": [
   20         -
                "146"
   21         -
              ],
   22         -
              "x-amz-date": [
   23         -
                "20210810T003833Z"
   24         -
              ],
   25         -
              "host": [
   26         -
                "aws.sts-env-override"
   27         -
              ],
   28         -
              "x-amz-user-agent": [
   29         -
                "aws-sdk-rust/0.1.0 api/sts/0.0.14-alpha os/macos lang/rust/1.55.0-nightly"
   30         -
              ]
   31         -
            },
   32         -
            "method": "POST"
   33         -
          }
   34         -
        }
   35         -
      }
   36         -
    },
   37         -
    {
   38         -
      "connection_id": 0,
   39         -
      "action": {
   40         -
        "Data": {
   41         -
          "data": {
   42         -
            "Utf8": "Action=AssumeRole&Version=2011-06-15&RoleArn=arn%3Aaws%3Aiam%3A%3A123456789%3Arole%2Fintegration-test&RoleSessionName=assume-role-provider-session"
   43         -
          },
   44         -
          "direction": "Request"
   45         -
        }
   46         -
      }
   47         -
    },
   48         -
    {
   49         -
      "connection_id": 0,
   50         -
      "action": {
   51         -
        "Eof": {
   52         -
          "ok": true,
   53         -
          "direction": "Request"
   54         -
        }
   55         -
      }
   56         -
    },
   57         -
    {
   58         -
      "connection_id": 0,
   59         -
      "action": {
   60         -
        "Response": {
   61         -
          "response": {
   62         -
            "Ok": {
   63         -
              "status": 200,
   64         -
              "version": "HTTP/1.1",
   65         -
              "headers": {
   66         -
                "date": [
   67         -
                  "Thu, 05 Aug 2021 18:58:02 GMT"
   68         -
                ],
   69         -
                "content-length": [
   70         -
                  "1491"
   71         -
                ],
   72         -
                "content-type": [
   73         -
                  "text/xml"
   74         -
                ],
   75         -
                "x-amzn-requestid": [
   76         -
                  "c2e971c2-702d-4124-9b1f-1670febbea18"
   77         -
                ]
   78         -
              }
   79         -
            }
   80         -
          }
   81         -
        }
   82         -
      }
   83         -
    },
   84         -
    {
   85         -
      "connection_id": 0,
   86         -
      "action": {
   87         -
        "Data": {
   88         -
          "data": {
   89         -
            "Utf8": "<AssumeRoleResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\">\n  <AssumeRoleResult>\n    <AssumedRoleUser>\n      <AssumedRoleId>AROARABCDEFGHIJKLMNOP:assume-role-provider-session</AssumedRoleId>\n      <Arn>arn:aws:sts::123456789012:assumed-role/integration-test/assume-role-provider-session</Arn>\n    </AssumedRoleUser>\n    <Credentials>\n      <AccessKeyId>ASIARTESTID</AccessKeyId>\n      <SecretAccessKey>TESTSECRETKEY</SecretAccessKey>\n      <SessionToken>TESTSESSIONTOKEN</SessionToken>\n      <Expiration>2021-08-05T19:58:02Z</Expiration>\n    </Credentials>\n  </AssumeRoleResult>\n  <ResponseMetadata>\n    <RequestId>c2e971c2-702d-4124-9b1f-1670febbea18</RequestId>\n  </ResponseMetadata>\n</AssumeRoleResponse>\n"
   90         -
          },
   91         -
          "direction": "Response"
   92         -
        }
   93         -
      }
   94         -
    },
   95         -
    {
   96         -
      "connection_id": 0,
   97         -
      "action": {
   98         -
        "Eof": {
   99         -
          "ok": true,
  100         -
          "direction": "Response"
  101         -
        }
  102         -
      }
  103         -
    }
  104         -
  ],
  105         -
  "docs": "standard request / response with STS",
  106         -
  "version": "V0"
  107         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_env_url/test-case.json

@@ -1,0 +12,0 @@
    1         -
{
    2         -
  "name": "assume-role-override-service-env-url",
    3         -
  "docs": "override AWS_ENDPOINT_URL_STS via environment",
    4         -
  "result": {
    5         -
    "Ok": {
    6         -
      "access_key_id": "ASIARTESTID",
    7         -
      "secret_access_key": "TESTSECRETKEY",
    8         -
      "session_token": "TESTSESSIONTOKEN",
    9         -
      "expiry": 1628193482
   10         -
    }
   11         -
  }
   12         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_profile_url/env.json

@@ -1,0 +3,0 @@
    1         -
{
    2         -
  "HOME": "/home"
    3         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_profile_url/fs/home/.aws/config

@@ -1,0 +12,0 @@
    1         -
[default]
    2         -
region = us-east-1
    3         -
role_arn = arn:aws:iam::123456789:role/integration-test
    4         -
source_profile = base
    5         -
services = test-urls
    6         -
    7         -
[services test-urls]
    8         -
sts =
    9         -
    endpoint_url = http://aws.service-profile-override
   10         -
   11         -
[profile base]
   12         -
region = us-east-1

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_profile_url/fs/home/.aws/credentials

@@ -1,0 +3,0 @@
    1         -
[base]
    2         -
aws_access_key_id = AKIAFAKE
    3         -
aws_secret_access_key = FAKE

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_profile_url/http-traffic.json

@@ -1,0 +107,0 @@
    1         -
{
    2         -
  "events": [
    3         -
    {
    4         -
      "connection_id": 0,
    5         -
      "action": {
    6         -
        "Request": {
    7         -
          "request": {
    8         -
            "uri": "http://aws.service-profile-override",
    9         -
            "headers": {
   10         -
              "content-type": [
   11         -
                "application/x-www-form-urlencoded"
   12         -
              ],
   13         -
              "authorization": [
   14         -
                "AWS4-HMAC-SHA256 Credential=AKIAFAKE/20210810/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-user-agent, Signature=cd5cb2aa1d20717ca17692bcbda711797ae9eb8bb1130690b021b3952b7ae56e"
   15         -
              ],
   16         -
              "user-agent": [
   17         -
                "aws-sdk-rust/0.1.0 os/macos lang/rust/1.55.0-nightly"
   18         -
              ],
   19         -
              "content-length": [
   20         -
                "146"
   21         -
              ],
   22         -
              "x-amz-date": [
   23         -
                "20210810T003833Z"
   24         -
              ],
   25         -
              "host": [
   26         -
                "http://aws.service-profile-override"
   27         -
              ],
   28         -
              "x-amz-user-agent": [
   29         -
                "aws-sdk-rust/0.1.0 api/sts/0.0.14-alpha os/macos lang/rust/1.55.0-nightly"
   30         -
              ]
   31         -
            },
   32         -
            "method": "POST"
   33         -
          }
   34         -
        }
   35         -
      }
   36         -
    },
   37         -
    {
   38         -
      "connection_id": 0,
   39         -
      "action": {
   40         -
        "Data": {
   41         -
          "data": {
   42         -
            "Utf8": "Action=AssumeRole&Version=2011-06-15&RoleArn=arn%3Aaws%3Aiam%3A%3A123456789%3Arole%2Fintegration-test&RoleSessionName=assume-role-provider-session"
   43         -
          },
   44         -
          "direction": "Request"
   45         -
        }
   46         -
      }
   47         -
    },
   48         -
    {
   49         -
      "connection_id": 0,
   50         -
      "action": {
   51         -
        "Eof": {
   52         -
          "ok": true,
   53         -
          "direction": "Request"
   54         -
        }
   55         -
      }
   56         -
    },
   57         -
    {
   58         -
      "connection_id": 0,
   59         -
      "action": {
   60         -
        "Response": {
   61         -
          "response": {
   62         -
            "Ok": {
   63         -
              "status": 200,
   64         -
              "version": "HTTP/1.1",
   65         -
              "headers": {
   66         -
                "date": [
   67         -
                  "Thu, 05 Aug 2021 18:58:02 GMT"
   68         -
                ],
   69         -
                "content-length": [
   70         -
                  "1491"
   71         -
                ],
   72         -
                "content-type": [
   73         -
                  "text/xml"
   74         -
                ],
   75         -
                "x-amzn-requestid": [
   76         -
                  "c2e971c2-702d-4124-9b1f-1670febbea18"
   77         -
                ]
   78         -
              }
   79         -
            }
   80         -
          }
   81         -
        }
   82         -
      }
   83         -
    },
   84         -
    {
   85         -
      "connection_id": 0,
   86         -
      "action": {
   87         -
        "Data": {
   88         -
          "data": {
   89         -
            "Utf8": "<AssumeRoleResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\">\n  <AssumeRoleResult>\n    <AssumedRoleUser>\n      <AssumedRoleId>AROARABCDEFGHIJKLMNOP:assume-role-provider-session</AssumedRoleId>\n      <Arn>arn:aws:sts::123456789012:assumed-role/integration-test/assume-role-provider-session</Arn>\n    </AssumedRoleUser>\n    <Credentials>\n      <AccessKeyId>ASIARTESTID</AccessKeyId>\n      <SecretAccessKey>TESTSECRETKEY</SecretAccessKey>\n      <SessionToken>TESTSESSIONTOKEN</SessionToken>\n      <Expiration>2021-08-05T19:58:02Z</Expiration>\n    </Credentials>\n  </AssumeRoleResult>\n  <ResponseMetadata>\n    <RequestId>c2e971c2-702d-4124-9b1f-1670febbea18</RequestId>\n  </ResponseMetadata>\n</AssumeRoleResponse>\n"
   90         -
          },
   91         -
          "direction": "Response"
   92         -
        }
   93         -
      }
   94         -
    },
   95         -
    {
   96         -
      "connection_id": 0,
   97         -
      "action": {
   98         -
        "Eof": {
   99         -
          "ok": true,
  100         -
          "direction": "Response"
  101         -
        }
  102         -
      }
  103         -
    }
  104         -
  ],
  105         -
  "docs": "standard request / response with STS",
  106         -
  "version": "V0"
  107         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/assume_role_override_service_profile_url/test-case.json

@@ -1,0 +12,0 @@
    1         -
{
    2         -
  "name": "assume-role-override-service-profile-url",
    3         -
  "docs": "override endpoint_url via services section",
    4         -
  "result": {
    5         -
    "Ok": {
    6         -
      "access_key_id": "ASIARTESTID",
    7         -
      "secret_access_key": "TESTSECRETKEY",
    8         -
      "session_token": "TESTSESSIONTOKEN",
    9         -
      "expiry": 1628193482
   10         -
    }
   11         -
  }
   12         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/sso_override_global_env_url/env.json

@@ -1,0 +4,0 @@
    1         -
{
    2         -
  "HOME": "/home",
    3         -
  "AWS_ENDPOINT_URL": "http://aws.global-env-override"
    4         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/sso_override_global_env_url/fs/home/.aws/config

@@ -1,0 +9,0 @@
    1         -
[profile default]
    2         -
sso_session = dev
    3         -
sso_account_id = 012345678901
    4         -
sso_role_name = SampleRole
    5         -
region = us-east-1
    6         -
    7         -
[sso-session dev]
    8         -
sso_region = us-east-1
    9         -
sso_start_url = https://d-abc123.awsapps.com/start

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/sso_override_global_env_url/fs/home/.aws/sso/cache/34c6fceca75e456f25e7e99531e2425c6c1de443.json

@@ -1,0 +10,0 @@
    1         -
{
    2         -
    "accessToken": "secret-access-token",
    3         -
    "expiresAt": "2199-11-14T04:05:45Z",
    4         -
    "refreshToken": "secret-refresh-token",
    5         -
    "clientId": "ABCDEFG323242423121312312312312312",
    6         -
    "clientSecret": "ABCDE123",
    7         -
    "registrationExpiresAt": "2199-03-06T19:53:17Z",
    8         -
    "region": "us-east-1",
    9         -
    "startUrl": "https://d-abc123.awsapps.com/start"
   10         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/sso_override_global_env_url/http-traffic.json

@@ -1,0 +92,0 @@
    1         -
{
    2         -
  "docs": "test case using sso credentials",
    3         -
  "version": "V0",
    4         -
  "events": [
    5         -
    {
    6         -
      "connection_id": 0,
    7         -
      "action": {
    8         -
        "Request": {
    9         -
          "request": {
   10         -
            "uri": "http://aws.global-env-override/federation/credentials?role_name=SampleRole&account_id=012345678901",
   11         -
            "headers": {
   12         -
              "x-amz-sso_bearer_token": [
   13         -
                "secret-access-token"
   14         -
              ],
   15         -
              "host": [
   16         -
                "aws.global-env-override"
   17         -
              ]
   18         -
            },
   19         -
            "method": "GET"
   20         -
          }
   21         -
        }
   22         -
      }
   23         -
    },
   24         -
    {
   25         -
      "connection_id": 0,
   26         -
      "action": {
   27         -
        "Data": {
   28         -
          "data": {
   29         -
            "Utf8": ""
   30         -
          },
   31         -
          "direction": "Request"
   32         -
        }
   33         -
      }
   34         -
    },
   35         -
    {
   36         -
      "connection_id": 0,
   37         -
      "action": {
   38         -
        "Eof": {
   39         -
          "ok": true,
   40         -
          "direction": "Request"
   41         -
        }
   42         -
      }
   43         -
    },
   44         -
    {
   45         -
      "connection_id": 0,
   46         -
      "action": {
   47         -
        "Response": {
   48         -
          "response": {
   49         -
            "Ok": {
   50         -
              "status": 200,
   51         -
              "version": "HTTP/1.1",
   52         -
              "headers": {
   53         -
                "date": [
   54         -
                  "Thu, 05 Aug 2021 18:58:02 GMT"
   55         -
                ],
   56         -
                "content-length": [
   57         -
                  "1491"
   58         -
                ],
   59         -
                "content-type": [
   60         -
                  "text/xml"
   61         -
                ],
   62         -
                "x-amzn-requestid": [
   63         -
                  "c2e971c2-702d-4124-9b1f-1670febbea18"
   64         -
                ]
   65         -
              }
   66         -
            }
   67         -
          }
   68         -
        }
   69         -
      }
   70         -
    },
   71         -
    {
   72         -
      "connection_id": 0,
   73         -
      "action": {
   74         -
        "Data": {
   75         -
          "data": {
   76         -
            "Utf8": "{\"roleCredentials\":{\"accessKeyId\":\"ASIARTESTID\",\"secretAccessKey\":\"TESTSECRETKEY\",\"sessionToken\":\"TESTSESSIONTOKEN\",\"expiration\": 1651516560000}}"
   77         -
          },
   78         -
          "direction": "Response"
   79         -
        }
   80         -
      }
   81         -
    },
   82         -
    {
   83         -
      "connection_id": 0,
   84         -
      "action": {
   85         -
        "Eof": {
   86         -
          "ok": true,
   87         -
          "direction": "Response"
   88         -
        }
   89         -
      }
   90         -
    }
   91         -
  ]
   92         -
}

tmp-codegen-diff/aws-sdk/sdk/aws-config/test-data/profile-provider/sso_override_global_env_url/test-case.json

@@ -1,0 +12,0 @@
    1         -
{
    2         -
  "name": "sso_override_global_env_url",
    3         -
  "docs": "sso_credentials loads SSO credentials with global endpoint URL override from environment",
    4         -
  "result": {
    5         -
    "Ok": {
    6         -
      "access_key_id": "ASIARTESTID",
    7         -
      "secret_access_key": "TESTSECRETKEY",
    8         -
      "session_token": "TESTSESSIONTOKEN",
    9         -
      "expiry": 1651516560
   10         -
    }
   11         -
  }
   12         -
}