Set-VSCredential

Set-VSCredential

SYNOPSIS

Sets or updates the provided ProfileName on the Shared Credentials file (~.aws\credentials).

SYNTAX

Set-VSCredential [[-AccessKey] <String>] [[-SecretKey] <String>] [[-Region] <String>] [[-ExternalID] <String>]
 [[-MfaSerial] <String>] [[-RoleArn] <String>] [[-SourceProfile] <String>] [[-Token] <String>]
 [[-ProfileName] <String>]

PARAMETERS

-AccessKey

The access key to be used in the AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SecretKey

The secret key to use when creating AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Region

AWS Region to use with this credential set

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ExternalID

The external id to use in assume role AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MfaSerial

The serial number of the MFA to use in assume role AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RoleArn

The role ARN to use when creating assume role or federated AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SourceProfile

When this CredentialProfileOptions object references another CredentialProfile, the name of the referenced CredentialProfile.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 7
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Token

The session token to be used to create AWSCredentials.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 8
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProfileName

The name that you would like to set for this credential profile. If no ProfileName is provided, it defaults to the AWS_PROFILE environment variable. If that is not set, it uses “default”.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
Position: 9
Default value: $env:AWS_PROFILE
Accept pipeline input: False
Accept wildcard characters: False

INPUTS

OUTPUTS

NOTES