You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/aws/fix_plugin_aws/resource/backup.py
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
importlogging
2
2
fromdatetimeimportdatetime
3
3
fromtypingimportAny, ClassVar, Dict, Optional, List, Type
4
+
fromjsonimportloadsasjson_loads
4
5
5
6
fromattrsimportdefine, field
6
7
@@ -18,6 +19,7 @@
18
19
fromfixlib.graphimportGraph
19
20
fromfixlib.json_benderimportF, Bender, S, ForallBend, Bend
20
21
fromfixlib.typesimportJson
22
+
fromfixlib.jsonimportsort_json
21
23
22
24
log=logging.getLogger("fix.plugins.aws")
23
25
service_name="backup"
@@ -345,13 +347,15 @@ class AwsBackupVault(BackupResourceTaggable, AwsResource):
345
347
min_retention_days: Optional[int] =field(default=None, metadata={"description": "The Backup Vault Lock setting that specifies the minimum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a minimum retention period. If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or longer than the minimum retention period. If the job's retention period is shorter than that minimum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected."}) # fmt: skip
346
348
max_retention_days: Optional[int] =field(default=None, metadata={"description": "The Backup Vault Lock setting that specifies the maximum retention period that the vault retains its recovery points. If this parameter is not specified, Vault Lock does not enforce a maximum retention period on the recovery points in the vault (allowing indefinite storage). If specified, any backup or copy job to the vault must have a lifecycle policy with a retention period equal to or shorter than the maximum retention period. If the job's retention period is longer than that maximum retention period, then the vault fails the backup or copy job, and you should either modify your lifecycle settings or use a different vault. Recovery points already stored in the vault prior to Vault Lock are not affected."}) # fmt: skip
347
349
lock_date: Optional[datetime] =field(default=None, metadata={"description": "The date and time when Backup Vault Lock configuration becomes immutable, meaning it cannot be changed or deleted. If you applied Vault Lock to your vault without specifying a lock date, you can change your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time. This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM."}) # fmt: skip
Copy file name to clipboardExpand all lines: plugins/aws/fix_plugin_aws/resource/ecr.py
+21-2Lines changed: 21 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
importjson
2
2
importlogging
3
3
fromtypingimportClassVar, Dict, Optional, List, Type, Any
4
+
fromjsonimportloadsasjson_loads
4
5
5
6
fromattrsimportdefine, field
6
7
fromboto3.exceptionsimportBoto3Error
@@ -53,9 +54,21 @@ class AwsEcrRepository(AwsResource):
53
54
encryption_configuration: Optional[AwsEcrEncryptionConfiguration] =field(default=None, metadata={"description": "The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest."}) # fmt: skip
54
55
repository_visibility: Optional[str] =field(default=None, metadata={"description": "The repository is either public or private."}) # fmt: skip
0 commit comments