RDS DB snapshot none handling (#7199)
This commit is contained in:
parent
9d30b1aa43
commit
b0cdcc229c
@ -1145,9 +1145,13 @@ class DatabaseSnapshot(BaseModel):
|
|||||||
<AvailabilityZone>{{ database.availability_zone }}</AvailabilityZone>
|
<AvailabilityZone>{{ database.availability_zone }}</AvailabilityZone>
|
||||||
<VpcId>{{ database.db_subnet_group.vpc_id }}</VpcId>
|
<VpcId>{{ database.db_subnet_group.vpc_id }}</VpcId>
|
||||||
<InstanceCreateTime>{{ snapshot.created_at }}</InstanceCreateTime>
|
<InstanceCreateTime>{{ snapshot.created_at }}</InstanceCreateTime>
|
||||||
|
{% if database.master_username %}
|
||||||
<MasterUsername>{{ database.master_username }}</MasterUsername>
|
<MasterUsername>{{ database.master_username }}</MasterUsername>
|
||||||
|
{% endif %}
|
||||||
<EngineVersion>{{ database.engine_version }}</EngineVersion>
|
<EngineVersion>{{ database.engine_version }}</EngineVersion>
|
||||||
|
{% if database.license_model %}
|
||||||
<LicenseModel>{{ database.license_model }}</LicenseModel>
|
<LicenseModel>{{ database.license_model }}</LicenseModel>
|
||||||
|
{% endif %}
|
||||||
<SnapshotType>{{ snapshot.snapshot_type }}</SnapshotType>
|
<SnapshotType>{{ snapshot.snapshot_type }}</SnapshotType>
|
||||||
{% if database.iops %}
|
{% if database.iops %}
|
||||||
<Iops>{{ database.iops }}</Iops>
|
<Iops>{{ database.iops }}</Iops>
|
||||||
@ -1166,10 +1170,14 @@ class DatabaseSnapshot(BaseModel):
|
|||||||
</TagList>
|
</TagList>
|
||||||
<TdeCredentialArn></TdeCredentialArn>
|
<TdeCredentialArn></TdeCredentialArn>
|
||||||
<Encrypted>{{ database.storage_encrypted }}</Encrypted>
|
<Encrypted>{{ database.storage_encrypted }}</Encrypted>
|
||||||
|
{% if database.kms_key_id %}
|
||||||
<KmsKeyId>{{ database.kms_key_id }}</KmsKeyId>
|
<KmsKeyId>{{ database.kms_key_id }}</KmsKeyId>
|
||||||
|
{% endif %}
|
||||||
<DBSnapshotArn>{{ snapshot.snapshot_arn }}</DBSnapshotArn>
|
<DBSnapshotArn>{{ snapshot.snapshot_arn }}</DBSnapshotArn>
|
||||||
<Timezone></Timezone>
|
<Timezone></Timezone>
|
||||||
|
{% if database.enable_iam_database_authentication %}
|
||||||
<IAMDatabaseAuthenticationEnabled>{{ database.enable_iam_database_authentication|lower }}</IAMDatabaseAuthenticationEnabled>
|
<IAMDatabaseAuthenticationEnabled>{{ database.enable_iam_database_authentication|lower }}</IAMDatabaseAuthenticationEnabled>
|
||||||
|
{% endif %}
|
||||||
</DBSnapshot>"""
|
</DBSnapshot>"""
|
||||||
)
|
)
|
||||||
return template.render(snapshot=self, database=self.database)
|
return template.render(snapshot=self, database=self.database)
|
||||||
|
Loading…
Reference in New Issue
Block a user