public static ResourceManagerOptions GetAwsV4ResourceManagerOptions(this IStageVariableProvider stageVariableProvider) => new ResourceManagerOptions(stageVariableProvider.StageVariables["ServicesUrl"]) .WithAuth( GetDefaultAwsV4AuthProvider(), stageVariableProvider.StageVariables.ContainsKey("ServicesAuthType") ? stageVariableProvider.StageVariables["ServicesAuthType"] : ServicesAuthType, stageVariableProvider.StageVariables.ContainsKey("ServicesAuthContext") ? stageVariableProvider.StageVariables["ServicesAuthContext"] : ServicesAuthContext );
public static ResourceManager GetAwsV4ResourceManager(this IStageVariableProvider stageVariableProvider) => new ResourceManager(stageVariableProvider.GetAwsV4ResourceManagerOptions());