Hello all,
How can I get properties of a Repository? When I use:
ruri=repo.get(resource_name=reponame, id=repoid)
The result is:
ruri : {
+ arn : “arn
awsecr
us east 1xxxx*:repository/my-repo*”
+ encryption_configurations : [
+ [0]: {
+ encryption_type: “AES256"
}
]
+ id : “my-repox”
+ image_scanning_configuration: {
+ scan_on_push: false
}
+ image_tag_mutability : “MUTABLE”
+ name : “my-repo”
+ registry_id : “xxxxxx”
+ repository_url : “
xxxxx.dkr.ecr.us-east-1.amazonaws.com/my-repo-xxxxx”
+ urn : “urn
pulumidev:
gurney pythonawsecr/repository
Repository:my-repo”
Then I used ruri.apply(lambda r: r[“repository_url”]) but I got this message:
TypeError: ‘Repository’ object is not subscriptable
So, how should I get the repository_url ?