AssumeRoleWithWebIdentity() private method

private AssumeRoleWithWebIdentity ( AssumeRoleWithWebIdentityRequest request ) : AssumeRoleWithWebIdentityResponse
request Amazon.SecurityToken.Model.AssumeRoleWithWebIdentityRequest
return Amazon.SecurityToken.Model.AssumeRoleWithWebIdentityResponse
Example #1
0
 AssumeRoleWithWebIdentityResponse GetAssumeRoleWithWebIdentityResponse(
     AssumeRoleWithWebIdentityRequest assumeRoleWithWebIdentityRequest)
 {
     // Start with Anonymous AWS Credentials and get temporary credentials.
     var stsClient = new AmazonSecurityTokenServiceClient(
                             new AnonymousAWSCredentials());
     assumeRoleWithWebIdentityRequest.DurationSeconds = 3600;
     assumeRoleWithWebIdentityRequest.RoleSessionName = "MySession";
     return stsClient.AssumeRoleWithWebIdentity(
                             assumeRoleWithWebIdentityRequest);
 }