Generate resgiter from dict var

Hi ,

I need create register from variable.

My variable is:

my_rules:

  • name: ‘AllowSSH’
    protocol: Tcp
    destination_port_range: 22
    access: Allow
    priority: 100
    direction: Inbound
  • name: ‘AllowHTTPS’
    protocol: Tcp
    destination_port_range: 443
    access: Allow
    priority: 90
    direction: Inbound

I need, put the content in variable.

Is need to security_group in azure or aws.