AddCredentialScope Method
Definition
- Namespace
- Codebelt.Extensions.AwsSignature4
- Assemblies
- Codebelt.Extensions.AwsSignature4.dll
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
timestampDateTimeThe DateTime value part of the credential scope.
regionstringThe AWS region part of the credential scope. Default is
eu-west-1.servicestringThe service name part of the credential scope. Default is
s3(Simple Storage Service).terminationstringThe 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