Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsuppress: awscc_events_connection #2001

Merged
merged 10 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 1.16.0 (Unreleased)

* **New Data Source:** `awscc_events_connection`
* **New Resource:** `awscc_events_connection`

## 1.15.0 (September 19, 2024)

BUG FIXES:
Expand Down
154 changes: 154 additions & 0 deletions docs/data-sources/events_connection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_events_connection Data Source - terraform-provider-awscc"
subcategory: ""
description: |-
Data Source schema for AWS::Events::Connection
---

# awscc_events_connection (Data Source)

Data Source schema for AWS::Events::Connection



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `id` (String) Uniquely identifies the resource.

### Read-Only

- `arn` (String) The arn of the connection resource.
- `auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters))
- `authorization_type` (String)
- `description` (String) Description of the connection.
- `name` (String) Name of the connection.
- `secret_arn` (String) The arn of the secrets manager secret created in the customer account.

<a id="nestedatt--auth_parameters"></a>
### Nested Schema for `auth_parameters`

Read-Only:

- `api_key_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--api_key_auth_parameters))
- `basic_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--basic_auth_parameters))
- `invocation_http_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters))
- `o_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters))

<a id="nestedatt--auth_parameters--api_key_auth_parameters"></a>
### Nested Schema for `auth_parameters.api_key_auth_parameters`

Read-Only:

- `api_key_name` (String)
- `api_key_value` (String)


<a id="nestedatt--auth_parameters--basic_auth_parameters"></a>
### Nested Schema for `auth_parameters.basic_auth_parameters`

Read-Only:

- `password` (String)
- `username` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters`

Read-Only:

- `body_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--body_parameters))
- `header_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--header_parameters))
- `query_string_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--query_string_parameters))

<a id="nestedatt--auth_parameters--invocation_http_parameters--body_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.body_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters--header_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.header_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters--query_string_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.query_string_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)



<a id="nestedatt--auth_parameters--o_auth_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters`

Read-Only:

- `authorization_endpoint` (String)
- `client_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--client_parameters))
- `http_method` (String)
- `o_auth_http_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters))

<a id="nestedatt--auth_parameters--o_auth_parameters--client_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.client_parameters`

Read-Only:

- `client_id` (String)
- `client_secret` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters`

Read-Only:

- `body_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--body_parameters))
- `header_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--header_parameters))
- `query_string_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--query_string_parameters))

<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--body_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--header_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--query_string_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters`

Read-Only:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)
217 changes: 217 additions & 0 deletions docs/resources/events_connection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
---
page_title: "awscc_events_connection Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Resource Type definition for AWS::Events::Connection.
---

# awscc_events_connection (Resource)

Resource Type definition for AWS::Events::Connection.

## Example Usage

### Create a connection with ApiKey authorization parameters

The following example creates a connection named pagerduty-connection using ApiKey authorization and stores a secret from Secrets Manager.

```terraform
resource "awscc_events_connection" "pagerduty_connection" {
name = "pagerduty-connection"
authorization_type = "API_KEY"

auth_parameters = {
api_key_auth_parameters = {
api_key_name = "Authorization"
api_key_value = "my-secret-string"
}

additional_parameters = {
body_parameters = {
routing_key = "my-pagerduty-integration-key"
}
}
}
}
```

### Create a connection with OAuth authorization parameters

The following example creates a connection named auth0-connection using OAuth authorization and stores a secret from Secrets Manager.

```terraform
resource "awscc_events_connection" "auth0_connection" {
name = "auth0-connection"
authorization_type = "OAUTH_CLIENT_CREDENTIALS"

auth_parameters = {
o_auth_parameters = {
client_parameters = {
client_id = "my-client-id"
client_secret = "my-secret-string"
}

authorization_endpoint = "https://yourUserName.us.auth0.com/oauth/token"
http_method = "POST"

o_auth_http_parameters = {
body_parameters = [
{
key = "audience",
value = "my-auth0-identifier"
}
]
}
}
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters))
- `authorization_type` (String)
- `description` (String) Description of the connection.
- `name` (String) Name of the connection.

### Read-Only

- `arn` (String) The arn of the connection resource.
- `id` (String) Uniquely identifies the resource.
- `secret_arn` (String) The arn of the secrets manager secret created in the customer account.

<a id="nestedatt--auth_parameters"></a>
### Nested Schema for `auth_parameters`

Optional:

- `api_key_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--api_key_auth_parameters))
- `basic_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--basic_auth_parameters))
- `invocation_http_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters))
- `o_auth_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters))

<a id="nestedatt--auth_parameters--api_key_auth_parameters"></a>
### Nested Schema for `auth_parameters.api_key_auth_parameters`

Optional:

- `api_key_name` (String)
- `api_key_value` (String)


<a id="nestedatt--auth_parameters--basic_auth_parameters"></a>
### Nested Schema for `auth_parameters.basic_auth_parameters`

Optional:

- `password` (String)
- `username` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters`

Optional:

- `body_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--body_parameters))
- `header_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--header_parameters))
- `query_string_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--invocation_http_parameters--query_string_parameters))

<a id="nestedatt--auth_parameters--invocation_http_parameters--body_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.body_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters--header_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.header_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--invocation_http_parameters--query_string_parameters"></a>
### Nested Schema for `auth_parameters.invocation_http_parameters.query_string_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)



<a id="nestedatt--auth_parameters--o_auth_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters`

Optional:

- `authorization_endpoint` (String)
- `client_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--client_parameters))
- `http_method` (String)
- `o_auth_http_parameters` (Attributes) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters))

<a id="nestedatt--auth_parameters--o_auth_parameters--client_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.client_parameters`

Optional:

- `client_id` (String)
- `client_secret` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters`

Optional:

- `body_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--body_parameters))
- `header_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--header_parameters))
- `query_string_parameters` (Attributes List) (see [below for nested schema](#nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--query_string_parameters))

<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--body_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.body_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--header_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.header_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)


<a id="nestedatt--auth_parameters--o_auth_parameters--o_auth_http_parameters--query_string_parameters"></a>
### Nested Schema for `auth_parameters.o_auth_parameters.o_auth_http_parameters.query_string_parameters`

Optional:

- `is_value_secret` (Boolean)
- `key` (String)
- `value` (String)

## Import

Import is supported using the following syntax:

```shell
$ terraform import awscc_events_connection.example "name"
```
Loading
Loading