-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bucket versioning #183
base: master
Are you sure you want to change the base?
Bucket versioning #183
Conversation
|
||
newtype MFAToken = MFAToken {unMfaToken :: Text} | ||
deriving stock (Eq, Show) | ||
deriving (IsString) via Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mfatoken is just a text, so we can use newtype deriving here:
deriving stock (Show)
deriving newtype (Eq, IsString)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually looks like MFAToken is just a sort of Boolean - https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html
we can just do:
data MFADelete = MFADeleteEnabled | MFADeleteDisabled
|
||
newtype MFAToken = MFAToken {unMfaToken :: Text} | ||
deriving stock (Eq, Show) | ||
deriving (IsString) via Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually looks like MFAToken is just a sort of Boolean - https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html
we can just do:
data MFADelete = MFADeleteEnabled | MFADeleteDisabled
|
||
data BucketVersioningConfig = BVConfig | ||
{ vcVersioning :: BucketVersioning, | ||
vcMFADelete :: MFADelete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vcMFADelete :: MFADelete | |
vcMFADelete :: Maybe MFADelete |
No description provided.