Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a data source.
Synopsis
- data CreateDataSource = CreateDataSource' {
- dataSourceParameters :: Maybe DataSourceParameters
- sslProperties :: Maybe SslProperties
- credentials :: Maybe (Sensitive DataSourceCredentials)
- vpcConnectionProperties :: Maybe VpcConnectionProperties
- permissions :: Maybe (NonEmpty ResourcePermission)
- tags :: Maybe (NonEmpty Tag)
- awsAccountId :: Text
- dataSourceId :: Text
- name :: Text
- type' :: DataSourceType
- newCreateDataSource :: Text -> Text -> Text -> DataSourceType -> CreateDataSource
- createDataSource_dataSourceParameters :: Lens' CreateDataSource (Maybe DataSourceParameters)
- createDataSource_sslProperties :: Lens' CreateDataSource (Maybe SslProperties)
- createDataSource_credentials :: Lens' CreateDataSource (Maybe DataSourceCredentials)
- createDataSource_vpcConnectionProperties :: Lens' CreateDataSource (Maybe VpcConnectionProperties)
- createDataSource_permissions :: Lens' CreateDataSource (Maybe (NonEmpty ResourcePermission))
- createDataSource_tags :: Lens' CreateDataSource (Maybe (NonEmpty Tag))
- createDataSource_awsAccountId :: Lens' CreateDataSource Text
- createDataSource_dataSourceId :: Lens' CreateDataSource Text
- createDataSource_name :: Lens' CreateDataSource Text
- createDataSource_type :: Lens' CreateDataSource DataSourceType
- data CreateDataSourceResponse = CreateDataSourceResponse' {
- requestId :: Maybe Text
- arn :: Maybe Text
- creationStatus :: Maybe ResourceStatus
- dataSourceId :: Maybe Text
- status :: Int
- newCreateDataSourceResponse :: Int -> CreateDataSourceResponse
- createDataSourceResponse_requestId :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_arn :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_creationStatus :: Lens' CreateDataSourceResponse (Maybe ResourceStatus)
- createDataSourceResponse_dataSourceId :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_status :: Lens' CreateDataSourceResponse Int
Creating a Request
data CreateDataSource Source #
See: newCreateDataSource
smart constructor.
CreateDataSource' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> DataSourceType | |
-> CreateDataSource |
Create a value of CreateDataSource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dataSourceParameters:CreateDataSource'
, createDataSource_dataSourceParameters
- The parameters that Amazon QuickSight uses to connect to your underlying
source.
$sel:sslProperties:CreateDataSource'
, createDataSource_sslProperties
- Secure Socket Layer (SSL) properties that apply when Amazon QuickSight
connects to your underlying source.
$sel:credentials:CreateDataSource'
, createDataSource_credentials
- The credentials Amazon QuickSight that uses to connect to your
underlying source. Currently, only credentials based on user name and
password are supported.
$sel:vpcConnectionProperties:CreateDataSource'
, createDataSource_vpcConnectionProperties
- Use this parameter only when you want Amazon QuickSight to use a VPC
connection when connecting to your underlying source.
$sel:permissions:CreateDataSource'
, createDataSource_permissions
- A list of resource permissions on the data source.
$sel:tags:CreateDataSource'
, createDataSource_tags
- Contains a map of the key-value pairs for the resource tag or tags
assigned to the data source.
$sel:awsAccountId:CreateDataSource'
, createDataSource_awsAccountId
- The Amazon Web Services account ID.
$sel:dataSourceId:CreateDataSource'
, createDataSource_dataSourceId
- An ID for the data source. This ID is unique per Amazon Web Services
Region for each Amazon Web Services account.
$sel:name:CreateDataSource'
, createDataSource_name
- A display name for the data source.
$sel:type':CreateDataSource'
, createDataSource_type
- The type of the data source. To return a list of all data sources, use
ListDataSources
.
Use AMAZON_ELASTICSEARCH
for Amazon OpenSearch Service.
Request Lenses
createDataSource_dataSourceParameters :: Lens' CreateDataSource (Maybe DataSourceParameters) Source #
The parameters that Amazon QuickSight uses to connect to your underlying source.
createDataSource_sslProperties :: Lens' CreateDataSource (Maybe SslProperties) Source #
Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.
createDataSource_credentials :: Lens' CreateDataSource (Maybe DataSourceCredentials) Source #
The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.
createDataSource_vpcConnectionProperties :: Lens' CreateDataSource (Maybe VpcConnectionProperties) Source #
Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.
createDataSource_permissions :: Lens' CreateDataSource (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions on the data source.
createDataSource_tags :: Lens' CreateDataSource (Maybe (NonEmpty Tag)) Source #
Contains a map of the key-value pairs for the resource tag or tags assigned to the data source.
createDataSource_awsAccountId :: Lens' CreateDataSource Text Source #
The Amazon Web Services account ID.
createDataSource_dataSourceId :: Lens' CreateDataSource Text Source #
An ID for the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
createDataSource_name :: Lens' CreateDataSource Text Source #
A display name for the data source.
createDataSource_type :: Lens' CreateDataSource DataSourceType Source #
The type of the data source. To return a list of all data sources, use
ListDataSources
.
Use AMAZON_ELASTICSEARCH
for Amazon OpenSearch Service.
Destructuring the Response
data CreateDataSourceResponse Source #
See: newCreateDataSourceResponse
smart constructor.
CreateDataSourceResponse' | |
|
Instances
newCreateDataSourceResponse Source #
Create a value of CreateDataSourceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:requestId:CreateDataSourceResponse'
, createDataSourceResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:arn:CreateDataSourceResponse'
, createDataSourceResponse_arn
- The Amazon Resource Name (ARN) of the data source.
$sel:creationStatus:CreateDataSourceResponse'
, createDataSourceResponse_creationStatus
- The status of creating the data source.
$sel:dataSourceId:CreateDataSource'
, createDataSourceResponse_dataSourceId
- The ID of the data source. This ID is unique per Amazon Web Services
Region for each Amazon Web Services account.
$sel:status:CreateDataSourceResponse'
, createDataSourceResponse_status
- The HTTP status of the request.
Response Lenses
createDataSourceResponse_requestId :: Lens' CreateDataSourceResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
createDataSourceResponse_arn :: Lens' CreateDataSourceResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the data source.
createDataSourceResponse_creationStatus :: Lens' CreateDataSourceResponse (Maybe ResourceStatus) Source #
The status of creating the data source.
createDataSourceResponse_dataSourceId :: Lens' CreateDataSourceResponse (Maybe Text) Source #
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
createDataSourceResponse_status :: Lens' CreateDataSourceResponse Int Source #
The HTTP status of the request.