Skip to content

Commit

Permalink
update schema to version 5.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 14, 2024
1 parent 95c610b commit 783486d
Show file tree
Hide file tree
Showing 18 changed files with 825 additions and 0 deletions.
74 changes: 74 additions & 0 deletions generated/data/awsEc2CapacityBlockOffering.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
package data

import (
"encoding/json"

tfjson "github.com/hashicorp/terraform-json"
)

const awsEc2CapacityBlockOffering = `{
"block": {
"attributes": {
"availability_zone": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"capacity_block_offering_id": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"capacity_duration_hours": {
"description_kind": "plain",
"required": true,
"type": "number"
},
"currency_code": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"end_date_range": {
"computed": true,
"description_kind": "plain",
"optional": true,
"type": "string"
},
"instance_count": {
"description_kind": "plain",
"required": true,
"type": "number"
},
"instance_type": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"start_date_range": {
"computed": true,
"description_kind": "plain",
"optional": true,
"type": "string"
},
"tenancy": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"upfront_fee": {
"computed": true,
"description_kind": "plain",
"type": "string"
}
},
"description_kind": "plain"
},
"version": 0
}`

func AwsEc2CapacityBlockOfferingSchema() *tfjson.Schema {
var result tfjson.Schema
_ = json.Unmarshal([]byte(awsEc2CapacityBlockOffering), &result)
return &result
}
16 changes: 16 additions & 0 deletions generated/data/awsEc2CapacityBlockOffering_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package data_test

import (
"testing"

tfjson "github.com/hashicorp/terraform-json"
"github.com/lonegunmanb/terraform-aws-schema/v5/generated/data"
"github.com/stretchr/testify/assert"
)

func TestAwsEc2CapacityBlockOfferingSchema(t *testing.T) {
defaultSchema := &tfjson.Schema{}
s := data.AwsEc2CapacityBlockOfferingSchema()
assert.NotNil(t, s)
assert.NotEqual(t, defaultSchema, s)
}
5 changes: 5 additions & 0 deletions generated/data/awsOpensearchDomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ const awsOpensearchDomain = `{
"optional": true,
"type": "string"
},
"ip_address_type": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"kibana_endpoint": {
"computed": true,
"deprecated": true,
Expand Down
6 changes: 6 additions & 0 deletions generated/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func init() {
resources["aws_appconfig_extension"] = resource.AwsAppconfigExtensionSchema()
resources["aws_appconfig_extension_association"] = resource.AwsAppconfigExtensionAssociationSchema()
resources["aws_appconfig_hosted_configuration_version"] = resource.AwsAppconfigHostedConfigurationVersionSchema()
resources["aws_appfabric_app_authorization"] = resource.AwsAppfabricAppAuthorizationSchema()
resources["aws_appfabric_app_bundle"] = resource.AwsAppfabricAppBundleSchema()
resources["aws_appflow_connector_profile"] = resource.AwsAppflowConnectorProfileSchema()
resources["aws_appflow_flow"] = resource.AwsAppflowFlowSchema()
resources["aws_appintegrations_data_integration"] = resource.AwsAppintegrationsDataIntegrationSchema()
Expand Down Expand Up @@ -437,6 +439,7 @@ func init() {
resources["aws_ebs_snapshot_import"] = resource.AwsEbsSnapshotImportSchema()
resources["aws_ebs_volume"] = resource.AwsEbsVolumeSchema()
resources["aws_ec2_availability_zone_group"] = resource.AwsEc2AvailabilityZoneGroupSchema()
resources["aws_ec2_capacity_block_reservation"] = resource.AwsEc2CapacityBlockReservationSchema()
resources["aws_ec2_capacity_reservation"] = resource.AwsEc2CapacityReservationSchema()
resources["aws_ec2_carrier_gateway"] = resource.AwsEc2CarrierGatewaySchema()
resources["aws_ec2_client_vpn_authorization_rule"] = resource.AwsEc2ClientVpnAuthorizationRuleSchema()
Expand Down Expand Up @@ -562,6 +565,7 @@ func init() {
resources["aws_flow_log"] = resource.AwsFlowLogSchema()
resources["aws_fms_admin_account"] = resource.AwsFmsAdminAccountSchema()
resources["aws_fms_policy"] = resource.AwsFmsPolicySchema()
resources["aws_fms_resource_set"] = resource.AwsFmsResourceSetSchema()
resources["aws_fsx_backup"] = resource.AwsFsxBackupSchema()
resources["aws_fsx_data_repository_association"] = resource.AwsFsxDataRepositoryAssociationSchema()
resources["aws_fsx_file_cache"] = resource.AwsFsxFileCacheSchema()
Expand Down Expand Up @@ -617,6 +621,7 @@ func init() {
resources["aws_guardduty_filter"] = resource.AwsGuarddutyFilterSchema()
resources["aws_guardduty_invite_accepter"] = resource.AwsGuarddutyInviteAccepterSchema()
resources["aws_guardduty_ipset"] = resource.AwsGuarddutyIpsetSchema()
resources["aws_guardduty_malware_protection_plan"] = resource.AwsGuarddutyMalwareProtectionPlanSchema()
resources["aws_guardduty_member"] = resource.AwsGuarddutyMemberSchema()
resources["aws_guardduty_organization_admin_account"] = resource.AwsGuarddutyOrganizationAdminAccountSchema()
resources["aws_guardduty_organization_configuration"] = resource.AwsGuarddutyOrganizationConfigurationSchema()
Expand Down Expand Up @@ -1538,6 +1543,7 @@ func init() {
dataSources["aws_ebs_snapshot_ids"] = data.AwsEbsSnapshotIdsSchema()
dataSources["aws_ebs_volume"] = data.AwsEbsVolumeSchema()
dataSources["aws_ebs_volumes"] = data.AwsEbsVolumesSchema()
dataSources["aws_ec2_capacity_block_offering"] = data.AwsEc2CapacityBlockOfferingSchema()
dataSources["aws_ec2_client_vpn_endpoint"] = data.AwsEc2ClientVpnEndpointSchema()
dataSources["aws_ec2_coip_pool"] = data.AwsEc2CoipPoolSchema()
dataSources["aws_ec2_coip_pools"] = data.AwsEc2CoipPoolsSchema()
Expand Down
170 changes: 170 additions & 0 deletions generated/resource/awsAppfabricAppAuthorization.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
package resource

import (
"encoding/json"

tfjson "github.com/hashicorp/terraform-json"
)

const awsAppfabricAppAuthorization = `{
"block": {
"attributes": {
"app": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"app_bundle_arn": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"arn": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"auth_type": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"auth_url": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"created_at": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"id": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"persona": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"tags": {
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"tags_all": {
"computed": true,
"description_kind": "plain",
"type": [
"map",
"string"
]
},
"updated_at": {
"computed": true,
"description_kind": "plain",
"type": "string"
}
},
"block_types": {
"credential": {
"block": {
"block_types": {
"api_key_credential": {
"block": {
"attributes": {
"api_key": {
"description_kind": "plain",
"required": true,
"sensitive": true,
"type": "string"
}
},
"description_kind": "plain"
},
"nesting_mode": "list"
},
"oauth2_credential": {
"block": {
"attributes": {
"client_id": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"client_secret": {
"description_kind": "plain",
"required": true,
"sensitive": true,
"type": "string"
}
},
"description_kind": "plain"
},
"nesting_mode": "list"
}
},
"description_kind": "plain"
},
"nesting_mode": "list"
},
"tenant": {
"block": {
"attributes": {
"tenant_display_name": {
"description_kind": "plain",
"required": true,
"type": "string"
},
"tenant_identifier": {
"description_kind": "plain",
"required": true,
"type": "string"
}
},
"description_kind": "plain"
},
"nesting_mode": "list"
},
"timeouts": {
"block": {
"attributes": {
"create": {
"description": "A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as \"30s\" or \"2h45m\". Valid time units are \"s\" (seconds), \"m\" (minutes), \"h\" (hours).",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"delete": {
"description": "A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as \"30s\" or \"2h45m\". Valid time units are \"s\" (seconds), \"m\" (minutes), \"h\" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.",
"description_kind": "plain",
"optional": true,
"type": "string"
},
"update": {
"description": "A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as \"30s\" or \"2h45m\". Valid time units are \"s\" (seconds), \"m\" (minutes), \"h\" (hours).",
"description_kind": "plain",
"optional": true,
"type": "string"
}
},
"description_kind": "plain"
},
"nesting_mode": "single"
}
},
"description_kind": "plain"
},
"version": 0
}`

func AwsAppfabricAppAuthorizationSchema() *tfjson.Schema {
var result tfjson.Schema
_ = json.Unmarshal([]byte(awsAppfabricAppAuthorization), &result)
return &result
}
16 changes: 16 additions & 0 deletions generated/resource/awsAppfabricAppAuthorization_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package resource_test

import (
"testing"

tfjson "github.com/hashicorp/terraform-json"
"github.com/lonegunmanb/terraform-aws-schema/v5/generated/resource"
"github.com/stretchr/testify/assert"
)

func TestAwsAppfabricAppAuthorizationSchema(t *testing.T) {
defaultSchema := &tfjson.Schema{}
s := resource.AwsAppfabricAppAuthorizationSchema()
assert.NotNil(t, s)
assert.NotEqual(t, defaultSchema, s)
}
53 changes: 53 additions & 0 deletions generated/resource/awsAppfabricAppBundle.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package resource

import (
"encoding/json"

tfjson "github.com/hashicorp/terraform-json"
)

const awsAppfabricAppBundle = `{
"block": {
"attributes": {
"arn": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"customer_managed_key_arn": {
"description_kind": "plain",
"optional": true,
"type": "string"
},
"id": {
"computed": true,
"description_kind": "plain",
"type": "string"
},
"tags": {
"description_kind": "plain",
"optional": true,
"type": [
"map",
"string"
]
},
"tags_all": {
"computed": true,
"description_kind": "plain",
"type": [
"map",
"string"
]
}
},
"description_kind": "plain"
},
"version": 0
}`

func AwsAppfabricAppBundleSchema() *tfjson.Schema {
var result tfjson.Schema
_ = json.Unmarshal([]byte(awsAppfabricAppBundle), &result)
return &result
}
Loading

0 comments on commit 783486d

Please sign in to comment.