| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.QuickSight.CreateDataSource
Description
Creates a data source.
Synopsis
- data CreateDataSource = CreateDataSource' {
- credentials :: Maybe (Sensitive DataSourceCredentials)
- dataSourceParameters :: Maybe DataSourceParameters
- permissions :: Maybe (NonEmpty ResourcePermission)
- sslProperties :: Maybe SslProperties
- tags :: Maybe (NonEmpty Tag)
- vpcConnectionProperties :: Maybe VpcConnectionProperties
- awsAccountId :: Text
- dataSourceId :: Text
- name :: Text
- type' :: DataSourceType
- newCreateDataSource :: Text -> Text -> Text -> DataSourceType -> CreateDataSource
- createDataSource_credentials :: Lens' CreateDataSource (Maybe DataSourceCredentials)
- createDataSource_dataSourceParameters :: Lens' CreateDataSource (Maybe DataSourceParameters)
- createDataSource_permissions :: Lens' CreateDataSource (Maybe (NonEmpty ResourcePermission))
- createDataSource_sslProperties :: Lens' CreateDataSource (Maybe SslProperties)
- createDataSource_tags :: Lens' CreateDataSource (Maybe (NonEmpty Tag))
- createDataSource_vpcConnectionProperties :: Lens' CreateDataSource (Maybe VpcConnectionProperties)
- createDataSource_awsAccountId :: Lens' CreateDataSource Text
- createDataSource_dataSourceId :: Lens' CreateDataSource Text
- createDataSource_name :: Lens' CreateDataSource Text
- createDataSource_type :: Lens' CreateDataSource DataSourceType
- data CreateDataSourceResponse = CreateDataSourceResponse' {
- arn :: Maybe Text
- creationStatus :: Maybe ResourceStatus
- dataSourceId :: Maybe Text
- requestId :: Maybe Text
- status :: Int
- newCreateDataSourceResponse :: Int -> CreateDataSourceResponse
- createDataSourceResponse_arn :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_creationStatus :: Lens' CreateDataSourceResponse (Maybe ResourceStatus)
- createDataSourceResponse_dataSourceId :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_requestId :: Lens' CreateDataSourceResponse (Maybe Text)
- createDataSourceResponse_status :: Lens' CreateDataSourceResponse Int
Creating a Request
data CreateDataSource Source #
See: newCreateDataSource smart constructor.
Constructors
| CreateDataSource' | |
Fields
| |
Instances
Arguments
| :: 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: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.
CreateDataSource, createDataSource_dataSourceParameters - The parameters that Amazon QuickSight uses to connect to your underlying
source.
CreateDataSource, createDataSource_permissions - A list of resource permissions on the data source.
CreateDataSource, createDataSource_sslProperties - Secure Socket Layer (SSL) properties that apply when Amazon QuickSight
connects to your underlying source.
CreateDataSource, createDataSource_tags - Contains a map of the key-value pairs for the resource tag or tags
assigned to the data source.
CreateDataSource, createDataSource_vpcConnectionProperties - Use this parameter only when you want Amazon QuickSight to use a VPC
connection when connecting to your underlying source.
CreateDataSource, createDataSource_awsAccountId - The Amazon Web Services account ID.
CreateDataSource, createDataSource_dataSourceId - An ID for the data source. This ID is unique per Amazon Web Services
Region for each Amazon Web Services account.
CreateDataSource, createDataSource_name - A display name for the data source.
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_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_dataSourceParameters :: Lens' CreateDataSource (Maybe DataSourceParameters) Source #
The parameters that Amazon QuickSight uses to connect to your underlying source.
createDataSource_permissions :: Lens' CreateDataSource (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions on the data source.
createDataSource_sslProperties :: Lens' CreateDataSource (Maybe SslProperties) Source #
Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying 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_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_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.
Constructors
| CreateDataSourceResponse' | |
Fields
| |
Instances
newCreateDataSourceResponse Source #
Arguments
| :: Int | |
| -> CreateDataSourceResponse |
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:
CreateDataSourceResponse, createDataSourceResponse_arn - The Amazon Resource Name (ARN) of the data source.
CreateDataSourceResponse, createDataSourceResponse_creationStatus - The status of creating the data source.
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:requestId:CreateDataSourceResponse', createDataSourceResponse_requestId - The Amazon Web Services request ID for this operation.
CreateDataSourceResponse, createDataSourceResponse_status - The HTTP status of the request.
Response Lenses
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_requestId :: Lens' CreateDataSourceResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
createDataSourceResponse_status :: Lens' CreateDataSourceResponse Int Source #
The HTTP status of the request.