PasswordCredential.DefinitionStages.WithDuration<ParentT>.withDuration(Duration duration) 方法

定义

Specifies the duration for which password or key would be valid. Default value is 1 year.

public WithAttach<ParentT> withDuration(Duration duration)

参数

duration
Duration

the duration of validity

返回

the next stage in credential definition

适用于