Skip to content

Commit

Permalink
fix: Removed Read for API_KEY (#1402)
Browse files Browse the repository at this point in the history
* fix: Removed Read for API_KEY

* Updated Docs
  • Loading branch information
ChrisIsidora authored Dec 7, 2022
1 parent 3611ff5 commit ddd00c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/resources/api_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "snowflake_api_integration" "api_integration" {

- `api_aws_role_arn` (String) ARN of a cloud platform role.
- `api_blocked_prefixes` (List of String) Lists the endpoints and resources in the HTTPS proxy service that are not allowed to be called from Snowflake.
- `api_key` (String) The API key (also called a “subscription key”).
- `api_key` (String, Sensitive) The API key (also called a “subscription key”).
- `azure_ad_application_id` (String) The 'Application (client) id' of the Azure AD app for your remote service.
- `azure_tenant_id` (String) Specifies the ID for your Office 365 tenant that all Azure API Management instances belong to.
- `enabled` (Boolean) Specifies whether this API integration is enabled or disabled. If the API integration is disabled, any external function that relies on it will not work.
Expand Down
5 changes: 1 addition & 4 deletions pkg/resources/api_integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ var apiIntegrationSchema = map[string]*schema.Schema{
"api_key": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
Description: "The API key (also called a “subscription key”).",
},
"enabled": {
Expand Down Expand Up @@ -210,10 +211,6 @@ func ReadAPIIntegration(d *schema.ResourceData, meta interface{}) error {
return err
}
}
case "API_KEY":
if err = d.Set("api_key", v.(string)); err != nil {
return err
}
case "API_AWS_IAM_USER_ARN":
if err := d.Set("api_aws_iam_user_arn", v.(string)); err != nil {
return err
Expand Down

0 comments on commit ddd00c5

Please sign in to comment.