sym.sdk.strategy.Strategy

class sym.sdk.strategy.Strategy(*, id: uuid.UUID, type: str, name: str, label: Optional[str] = None, integration: sym.sdk.strategies.integration.Integration, targets: List[sym.sdk.target.AccessTarget] = [], settings: Dict[str, str], srn: sym.sdk.resource.SRN)

Bases: pydantic.main.BaseModel

The Strategy class represents an instance of a sym_strategy resource.

Read more about Strategies.

field id: uuid.UUID [Required]

The unique ID of this Strategy.

field integration: sym.sdk.strategies.integration.Integration [Required]

The Integration associated with this Strategy.

field label: Optional[str] = None

An optional label for this Strategy.

field name: str [Required]

The unique string identifier for this Strategy. Corresponds to the name attribute on the sym_strategy resource.

field settings: Dict[str, str] [Required]

A map of settings specific to this Strategy. The possible settings available vary depending on the type of Strategy.

field srn: sym.sdk.resource.SRN [Required]

The unique SRN for this Strategy.

Constraints
  • type = string

  • description = A Sym Resource Name (SRN) is a unique identifier for a Sym Resource.

  • pattern = [a-zA-Z0-9-_]+:[a-zA-Z0-9-_]+(:[a-zA-Z0-9-_]+)?:[a-zA-Z0-9-_]+:(latest|[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})(:[a-zA-Z0-9-_]+)?

  • examples = [‘sym:access_target:okta_group:test-okta-target:latest’]

field targets: List[sym.sdk.target.AccessTarget] = []

The list of AccessTargets associated with this Strategy.

field type: str [Required]

The type of external service this Strategy manages access to. Corresponds to the type attribute on the sym_strategy resource.