Table of Contents

AddCredentialScope Method

Definition

AddCredentialScope(DateTime, string, string, string)

Adds the credential scope that defines the remote resource.

public Aws4HmacAuthorizationHeaderBuilder AddCredentialScope(DateTime timestamp, string region = "eu-west-1", string service = "s3", string termination = "aws4_request")

Parameters

timestamp DateTime

The DateTime value part of the credential scope.

region string

The AWS region part of the credential scope. Default is eu-west-1.

service string

The service name part of the credential scope. Default is s3 (Simple Storage Service).

termination string

The termination string part of the credential scope. Default is aws4_request.

Returns

Aws4HmacAuthorizationHeaderBuilder

A reference to this instance so that additional calls can be chained.

Remarks

The following string represents the scope part of the Credential parameter for a S3 request in the eu-west-1 Region: 20220710/eu-west-1/s3/aws4_request