Sequins v0.5.1 Sequins.Utils.Arn

Utilities for parsing and manipulating AWS ARNs

Link to this section Summary

Functions

Parse an ARN into a struct

Convert an ARN struct to a string

Update the ARN account

Update the ARN partition

Update the ARN region

Update the ARN resource

Update the ARN scheme

Update the ARN service

Link to this section Types

Specs

new_value() :: nil | String.t() | update_function()

Specs

t() :: %Sequins.Utils.Arn{
  account: term(),
  partition: term(),
  region: term(),
  resource: term(),
  scheme: term(),
  service: term()
}
Link to this type

update_function()

Specs

update_function() :: (String.t() -> String.t())

Link to this section Functions

Parse an ARN into a struct

Specs

to_string(arn :: t()) :: String.t()

Convert an ARN struct to a string

Link to this function

update_account(arn, v)

Specs

update_account(arn :: t(), v :: new_value()) :: t()

Update the ARN account

Link to this function

update_partition(arn, v)

Specs

update_partition(arn :: t(), v :: new_value()) :: t()

Update the ARN partition

Link to this function

update_region(arn, v)

Specs

update_region(arn :: t(), v :: new_value()) :: t()

Update the ARN region

Link to this function

update_resource(arn, v)

Specs

update_resource(arn :: t(), v :: new_value()) :: t()

Update the ARN resource

Link to this function

update_scheme(arn, v)

Specs

update_scheme(arn :: t(), v :: new_value()) :: t()

Update the ARN scheme

Link to this function

update_service(arn, v)

Specs

update_service(arn :: t(), v :: new_value()) :: t()

Update the ARN service