Policy types for @turbot/servicenow-aws-vpc-core

AWS > VPC > Route Table > ServiceNow

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNow
Category
Targets

AWS > VPC > Route Table > ServiceNow > Configuration Item

Synchronize the data for the AWS > VPC > Route Table based on the policies AWS > VPC > Route Table > ServiceNow > Configuration Item > *

The policy ensures that AWS > VPC > Route Table data is automatically synchronized as Configuration Items (CIs) in a designated ServiceNow table, maintaining an up-to-date reflection of the AWS > VPC > Route Table information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > Route Table > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an AWS > VPC > Route Table is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: routeTable{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"account_id: {{ $.resource.metadata.aws.accountId | dump | safe }}\narn: {{ $.resource.turbot.akas[0] | dump | safe }}\nassociations: {{ $.resource.data.Associations | dump | safe }}\nowner_id: {{ $.resource.data.OwnerId | dump | safe }}\npropagating_vgws: {{ $.resource.data.PropagatingVgws | dump | safe }}\nregion: {{ $.resource.metadata.aws.regionName | dump | safe }}\nroute_table_id: {{ $.resource.data.RouteTableId | dump | safe }}\nroutes: {{ $.resource.data.Routes | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntitle: {{ $.resource.turbot.title | dump | safe }}\nvpc_id: {{ $.resource.data.VpcId | dump | safe }}\n"
Schema
{
"type": "object"
}

AWS > VPC > Route Table > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the AWS > VPC > Route Table data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

AWS > VPC > Route Table > ServiceNow > Table

Configure a table for AWS > VPC > Route Table resource type in ServiceNow via the AWS > VPC > Route Table > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > Route Table > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing AWS > VPC > Route Table data.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/routeTableServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_aws_vpc_core_routetable",
"label": "AWS > VPC > Route Table",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "account_id",
"label": "Account ID"
},
{
"name": "arn",
"label": "ARN"
},
{
"name": "associations",
"label": "Associations",
"type": "string",
"size": 1000
},
{
"name": "owner_id",
"label": "Owner ID"
},
{
"name": "propagating_vgws",
"label": "Propagating VGWs",
"type": "string",
"size": 1000
},
{
"name": "region",
"label": "Region"
},
{
"name": "route_table_id",
"label": "Route Table ID"
},
{
"name": "routes",
"label": "Routes",
"type": "string",
"size": 1000
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "title",
"label": "Title"
},
{
"name": "vpc_id",
"label": "VPC ID"
}
]
}
}

AWS > VPC > Subnet > ServiceNow

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNow
Category
Targets

AWS > VPC > Subnet > ServiceNow > Configuration Item

Synchronize the data for the AWS > VPC > Subnet based on the policies AWS > VPC > Subnet > ServiceNow > Configuration Item > *

The policy ensures that AWS > VPC > Subnet data is automatically synchronized as Configuration Items (CIs) in a designated ServiceNow table, maintaining an up-to-date reflection of the AWS > VPC > Subnet information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > Subnet > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an AWS > VPC > Subnet is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: subnet{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"account_id: {{ $.resource.metadata.aws.accountId | dump | safe }}\nassign_ipv6_address_on_creation: {{ $.resource.data.AssignIpv6AddressOnCreation | dump | safe }}\navailability_zone: {{ $.resource.data.AvailabilityZone | dump | safe }}\navailability_zone_id: {{ $.resource.data.AvailabilityZoneId | dump | safe }}\navailable_ip_address_count: {{ $.resource.data.AvailableIpAddressCount | dump | safe }}\ncidr_block: {{ $.resource.data.CidrBlock | dump | safe }}\ndefault_for_az: {{ $.resource.data.DefaultForAz | dump | safe }}\nipv6_cidr_block_association_set: {{ $.resource.data.Ipv6CidrBlockAssociationSet | dump | safe }}\nmap_customer_owned_ip_on_launch: {{ $.resource.data.MapCustomerOwnedIpOnLaunch | dump | safe }}\nmap_public_ip_on_launch: {{ $.resource.data.MapPublicIpOnLaunch | dump | safe }}\nowner_id: {{ $.resource.data.OwnerId | dump | safe }}\nregion: {{ $.resource.metadata.aws.regionName | dump | safe }}\nstate: {{ $.resource.data.State | dump | safe }}\nsubnet_arn: {{ $.resource.data.SubnetArn | dump | safe }}\nsubnet_id: {{ $.resource.data.SubnetId | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntitle: {{ $.resource.turbot.title | dump | safe }}\nvpc_id: {{ $.resource.data.VpcId | dump | safe }}\n"
Schema
{
"type": "object"
}

AWS > VPC > Subnet > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the AWS > VPC > Subnet data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

AWS > VPC > Subnet > ServiceNow > Table

Configure a table for AWS > VPC > Subnet resource type in ServiceNow via the AWS > VPC > Subnet > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > Subnet > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing AWS > VPC > Subnet data.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/subnetServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_aws_vpc_core_subnet",
"label": "AWS > VPC > Subnet",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "account_id",
"label": "Account ID"
},
{
"name": "assign_ipv6_address_on_creation",
"label": "Assign Ipv6 Address On Creation",
"type": "boolean"
},
{
"name": "availability_zone",
"label": "Availability Zone"
},
{
"name": "availability_zone_id",
"label": "Availability Zone ID"
},
{
"name": "available_ip_address_count",
"label": "Available IP Address Count"
},
{
"name": "cidr_block",
"label": "CIDR Block"
},
{
"name": "default_for_az",
"label": "Default For AZ",
"type": "boolean"
},
{
"name": "ipv6_cidr_block_association_set",
"label": "Ipv6 CIDR Block Association Set",
"type": "string",
"size": 1000
},
{
"name": "map_customer_owned_ip_on_launch",
"label": "Map Customer Owned IP On Launch",
"type": "boolean"
},
{
"name": "map_public_ip_on_launch",
"label": "Map Public IP On Launch",
"type": "boolean"
},
{
"name": "owner_id",
"label": "Owner ID"
},
{
"name": "region",
"label": "Region"
},
{
"name": "state",
"label": "State"
},
{
"name": "subnet_arn",
"label": "Subnet ARN"
},
{
"name": "subnet_id",
"label": "Subnet ID"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "title",
"label": "Title"
},
{
"name": "vpc_id",
"label": "VPC ID"
}
]
}
}

AWS > VPC > VPC > ServiceNow

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNow
Category
Targets

AWS > VPC > VPC > ServiceNow > Configuration Item

Synchronize the data for the AWS > VPC > VPC based on the policies AWS > VPC > VPC > ServiceNow > Configuration Item > *

The policy ensures that AWS > VPC > VPC data is automatically synchronized as Configuration Items (CIs) in a designated ServiceNow table, maintaining an up-to-date reflection of the AWS > VPC > VPC information within the ServiceNow CMDB.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowConfigurationItem
Valid Value
[
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Archived",
"Check: Deleted",
"Check: Sync",
"Enforce: Archived",
"Enforce: Deleted",
"Enforce: Sync",
"Enforce: Sync, archive on delete"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > VPC > ServiceNow > Configuration Item > Record

The policy facilitates the accurate representation of cloud resource within the ServiceNow environment, ensuring that critical data is effectively mapped and managed. Attribute of an AWS > VPC > VPC is systematically mapped to a specific column in a ServiceNow table.

The policy allows enabling organizations to select and map only those attributes that are most relevant to their operational needs. It significantly reduces the manual effort involved in data transfer and minimizes the risk of errors, thereby enhancing the overall efficiency of data management.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowConfigurationItemRecord
Default Template Input
"{\n resource: vpc{\n data\n metadata\n turbot {\n akas\n id\n tags\n title\n }\n }\n}\n"
Default Template
"account_id: {{ $.resource.metadata.aws.accountId | dump | safe }}\narn: {{ $.resource.turbot.akas[0] | dump | safe }}\ncidr_block: {{ $.resource.data.CidrBlock | dump | safe }}\ncidr_block_association_set: {{ $.resource.data.CidrBlockAssociationSet | dump | safe }}\ndhcp_options_id: {{ $.resource.data.DhcpOptionsId | dump | safe }}\ninstance_tenancy: {{ $.resource.data.InstanceTenancy | dump | safe }}\nipv6_cidr_block_association_set: {{ $.resource.data.Ipv6CidrBlockAssociationSet | dump | safe }}\nis_default: {{ $.resource.data.IsDefault | dump | safe }}\nowner_id: {{ $.resource.data.OwnerId | dump | safe }}\nregion: {{ $.resource.metadata.aws.regionName | dump | safe }}\nstate: {{ $.resource.data.State | dump | safe }}\ntags: {{ $.resource.turbot.tags | dump | safe }}\ntitle: {{ $.resource.turbot.title | dump | safe }}\nvpc_id: {{ $.resource.data.VpcId | dump | safe }}\n"
Schema
{
"type": "object"
}

AWS > VPC > VPC > ServiceNow > Configuration Item > Table Definition

This policy specifically allows users to define two key aspects: the name of the ServiceNow table where the AWS > VPC > VPC data will be stored, and the details of the columns used for archiving purposes.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowConfigurationItemTableDefinition
Default Template Input
[
"{\n serviceNowInstance: resources(filter: \"resourceTypeId:tmod:@turbot/servicenow#/resource/types/instance level:self limit:1\") {\n items {\n turbot {\n id\n }\n }\n }\n}\n",
"{\n tableDefinition: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowTableDefinition resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n applicationScope: policyValues(filter: \"policyTypeId:tmod:@turbot/servicenow#/policy/types/serviceNowApplicationScope resourceId:{{$.serviceNowInstance.items[0].turbot.id}} level:self\") {\n items {\n value\n }\n }\n}\n"
]
Default Template
"tableName: "{%- if $.applicationScope.items | length == 0 or $.tableDefinition.items | length == 0 %} {%- else %}{{$.applicationScope.items[0].value}}_{{$.tableDefinition.items[0].value.table.name | lower}}{% endif %}"\n"
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"tableName"
],
"properties": {
"tableName": {
"type": "string"
},
"archiveColumns": {
"type": "object"
}
}
}

AWS > VPC > VPC > ServiceNow > Table

Configure a table for AWS > VPC > VPC resource type in ServiceNow via the AWS > VPC > VPC > ServiceNow > Table > * policies.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowTable
Valid Value
[
"Skip",
"Check: Configured",
"Enforce: Configured"
]
Schema
{
"type": "string",
"enum": [
"Skip",
"Check: Configured",
"Enforce: Configured"
],
"example": [
"Skip"
],
"default": "Skip"
}

AWS > VPC > VPC > ServiceNow > Table > Definition

The policy enables the definition of ServiceNow table properties, including its name and the base table from which it extends, and details the specific columns required for representing AWS > VPC > VPC data.

URI
tmod:@turbot/servicenow-aws-vpc-core#/policy/types/vpcServiceNowTableDefinition
Schema
{
"type": "object",
"additionalProperties": false,
"required": [
"table",
"columns"
],
"properties": {
"table": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string"
},
"extendsTable": {
"type": "string",
"pattern": "^([0-9a-z_])+$"
}
}
},
"columns": {
"type": "array",
"description": "An array of columns with their mappings to the CMDB.",
"default": [],
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the column in the table.",
"pattern": "^([0-9a-z_])+$"
},
"label": {
"type": "string",
"description": "The label for the column."
},
"type": {
"description": "The data type of the column.",
"type": "string"
},
"size": {
"type": "integer",
"description": "The length for data type."
}
}
}
}
},
"default": {
"table": {
"name": "guardrails_aws_vpc_core_vpc",
"label": "AWS > VPC > VPC",
"extendsTable": "cmdb_ci"
},
"columns": [
{
"name": "account_id",
"label": "Account ID"
},
{
"name": "arn",
"label": "ARN"
},
{
"name": "cidr_block",
"label": "CIDR Block"
},
{
"name": "cidr_block_association_set",
"label": "CIDR Block Association Set",
"type": "string",
"size": 1000
},
{
"name": "dhcp_options_id",
"label": "DHCP Options ID"
},
{
"name": "instance_tenancy",
"label": "Instance Tenancy"
},
{
"name": "ipv6_cidr_block_association_set",
"label": "Ipv6 CIDR Block Association Set",
"type": "string",
"size": 1000
},
{
"name": "is_default",
"label": "Is Default",
"type": "boolean"
},
{
"name": "owner_id",
"label": "Owner ID"
},
{
"name": "region",
"label": "Region"
},
{
"name": "state",
"label": "State"
},
{
"name": "tags",
"label": "Tags",
"type": "string",
"size": 1000
},
{
"name": "title",
"label": "Title"
},
{
"name": "vpc_id",
"label": "VPC ID"
}
]
}
}