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

Add new connector - Aws s3 #15844

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
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@
"Get an AwsCloudTrail data connector": {
"$ref": "./examples/dataConnectors/GetAmazonWebServicesCloudTrailById.json"
},
"Get an Aws S3 data connector": {
"$ref": "./examples/dataConnectors/GetAmazonWebServicesS3ById.json"
},
"Get an AATP data connector": {
"$ref": "./examples/dataConnectors/GetAzureAdvancedThreatProtectionById.json"
},
Expand Down Expand Up @@ -457,6 +460,16 @@
"type": "object",
"x-ms-discriminator-value": "AmazonWebServicesCloudTrail"
},
"AwsS3CheckRequirements": {
"allOf": [
{
"$ref": "#/definitions/DataConnectorsCheckRequirements"
}
],
"description": "Amazon Web Services S3 requirements check request.",
"type": "object",
"x-ms-discriminator-value": "AmazonWebServicesS3"
},
"DataConnectorsCheckRequirements": {
"description": "Data connector requirements properties.",
"properties": {
Expand Down Expand Up @@ -1028,6 +1041,73 @@
"dataTypes"
]
},
"AwsS3DataConnector": {
"allOf": [
{
"$ref": "#/definitions/DataConnector"
}
],
"description": "Represents Amazon Web Services S3 data connector.",
"properties": {
"properties": {
"$ref": "#/definitions/AwsS3DataConnectorProperties",
"description": "Amazon Web Services S3 data connector properties.",
"x-ms-client-flatten": true
}
},
"type": "object",
"x-ms-discriminator-value": "AmazonWebServicesS3"
},
"AwsS3DataConnectorDataTypes": {
"description": "The available data types for Amazon Web Services S3 data connector.",
"properties": {
"logs": {
"allOf": [
{
"$ref": "#/definitions/DataConnectorDataTypeCommon"
}
],
"description": "Logs data type.",
"type": "object"
}
},
"type": "object",
"required": [
"logs"
]
},
"AwsS3DataConnectorProperties": {
"description": "Amazon Web Services S3 data connector properties.",
"properties": {
"destinationTable": {
"description": "The logs destination table name in LogAnalytics.",
"type": "string"
},
"sqsUrls": {
"description": "The AWS sqs urls for the connector.",
"type": "array",
"items": {
"description": "AWS sqs url.",
"type": "string"
}
},
"roleArn": {
"description": "The Aws Role Arn that is used to access the Aws account.",
"type": "string"
},
"dataTypes": {
"$ref": "#/definitions/AwsS3DataConnectorDataTypes",
"description": "The available data types for the connector."
}
},
"type": "object",
"required": [
"destinationTable",
"sqsUrls",
"roleArn",
"dataTypes"
]
},
"DataConnector": {
"description": "Data connector",
"allOf": [
Expand Down Expand Up @@ -1089,6 +1169,7 @@
"Office365",
"OfficeATP",
"AmazonWebServicesCloudTrail",
"AmazonWebServicesS3",
"AzureAdvancedThreatProtection",
"MicrosoftDefenderAdvancedThreatProtection",
"Dynamics365",
Expand Down Expand Up @@ -1125,6 +1206,9 @@
{
"value": "AmazonWebServicesCloudTrail"
},
{
"value": "AmazonWebServicesS3"
},
{
"value": "AzureAdvancedThreatProtection"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "d0cfe6b2-9ac0-4464-9919-dccaee2e48c0",
"resourceGroupName": "myRg",
"workspaceName": "myWorkspace",
"operationalInsightsResourceProvider": "Microsoft.OperationalInsights",
"dataConnectorId": "afef3743-0c88-469c-84ff-ca2e87dc1e48"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/afef3743-0c88-469c-84ff-ca2e87dc1e48",
"name": "afef3743-0c88-469c-84ff-ca2e87dc1e48",
"type": "Microsoft.SecurityInsights/dataConnectors",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"kind": "AmazonWebServicesS3",
"properties": {
"destinationTable": "AWSVPCFlow",
"roleArn": "arn:aws:iam::072643944673:role/RoleName",
"sqsUrls": [
"https://sqs.us-west-1.amazonaws.com/111111111111/sqsTestName"
],
"dataTypes": {
"logs": {
"state": "Enabled"
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,25 @@
}
}
},
{
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/afef3743-0c88-469c-84ff-ca2e87dc1e48",
"name": "afef3743-0c88-469c-84ff-ca2e87dc1e48",
"type": "Microsoft.SecurityInsights/dataConnectors",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"kind": "AmazonWebServicesS3",
"properties": {
"destinationTable": "AWSVPCFlow",
"roleArn": "arn:aws:iam::072643944673:role/RoleName",
"sqsUrls": [
"https://sqs.us-west-1.amazonaws.com/111111111111/sqsTestName"
],
"dataTypes": {
"logs": {
"state": "Enabled"
}
}
}
},
{
"id": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/myRg/providers/Microsoft.OperationalInsights/workspaces/myWorkspace/providers/Microsoft.SecurityInsights/dataConnectors/06b3ccb8-1384-4bcc-aec7-852f6d57161b",
"name": "06b3ccb8-1384-4bcc-aec7-852f6d57161b",
Expand Down