You don't need to import it. Here's a minimal example:
```python
LifecyclePolicy(
"LifecyclePolicy",
LifecyclePolicyText=json.dumps(
{
"rules": [
{
"rulePriority": 10,
"description": "Delete untagged images 7 days
after they were pushed",
"selection": {
"tagStatus": "untagged",
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 7,
},
"action": {"type": "expire"},
},
],
}
),
)
```
--
*AX Semantics* GmbH – Marienstr. 23 – 70178 Stuttgart, Germany | Managing
Directors: Saim Alkan, Robert Weißgraeber | Court of Registration: AG
Stuttgart, HRB 727319
*
*
*Automated Content Writing –*
www.ax-semantics.com/ <
https://www4.ax-semantics.com>