case class Role(policies: List[String], ttl: Duration = Duration.Undefined, maxTtl: Duration = Duration.Undefined, tokenType: TokenType = TokenType.Client, local: Boolean = false) extends Product with Serializable
The configurations of a Consul role in Vault.
- policies
the list of policies.
- ttl
Specifies the TTL for this role. If not provided, the default Vault TTL is used.
- maxTtl
Specifies the max TTL for this role. If not provided, the default Vault Max TTL is used.
- tokenType
Specifies the type of token to create when using this role.
- local
Indicates that the token should not be replicated globally and instead be local to the current datacenter.
- Source
- Role.scala
- Alphabetic
- By Inheritance
- Role
- Serializable
- Product
- Equals
- AnyRef
- Any
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Role(policies: List[String], ttl: Duration = Duration.Undefined, maxTtl: Duration = Duration.Undefined, tokenType: TokenType = TokenType.Client, local: Boolean = false)
- policies
the list of policies.
- ttl
Specifies the TTL for this role. If not provided, the default Vault TTL is used.
- maxTtl
Specifies the max TTL for this role. If not provided, the default Vault Max TTL is used.
- tokenType
Specifies the type of token to create when using this role.
- local
Indicates that the token should not be replicated globally and instead be local to the current datacenter.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ->[B](y: B): (Role, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Role) => Boolean, msg: => Any): Role
- def ensuring(cond: (Role) => Boolean): Role
- def ensuring(cond: Boolean, msg: => Any): Role
- def ensuring(cond: Boolean): Role
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val local: Boolean
- val maxTtl: Duration
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val policies: List[String]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val tokenType: TokenType
- val ttl: Duration
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (Role, B)
- Implicit
- This member is added by an implicit conversion from Role toArrowAssoc[Role] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.