Sha256: 5c6779e7e5cfa41f52c924933734d7822a0141f678b823addb746c5dd1da985b
Contents?: true
Size: 831 Bytes
Versions: 2
Compression:
Stored size: 831 Bytes
Contents
require_relative "abstract_action" class AwsAssumeRole::Cli::Actions::ConfigureRoleAssumption < AwsAssumeRole::Cli::Actions::AbstractAction CommandSchema = proc do required(:profile) required(:source_profile) { str? } optional(:region) { filled? > format?(REGION_REGEX) } optional(:serial_number) { filled? > format?(MFA_REGEX) } required(:role_session_name).filled? required(:role_arn) { filled? & format?(ROLE_REGEX) } required(:external_id).filled? required(:duration_seconds).filled? optional(:yubikey_oath_name) end def act_on(config) AwsAssumeRole.shared_config.save_profile(config.profile, config.to_h.compact) out format(t("commands.configure.saved"), config.profile, AwsAssumeRole.shared_config.config_path) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws_assume_role-0.2.2 | lib/aws_assume_role/cli/actions/configure_role_assumption.rb |
aws_assume_role-0.2.0 | lib/aws_assume_role/cli/actions/configure_role_assumption.rb |