Skip to content

Commit

Permalink
removed aws code and will be creating new pr for aws
Browse files Browse the repository at this point in the history
  • Loading branch information
v-amolpatil committed Jan 27, 2025
1 parent 5f37ff9 commit be24dbf
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions Tools/Create-Azure-Sentinel-Solution/common/createCCPConnector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,6 @@ function createCCPConnectorResources($contentResourceDetails, $dataFileMetadata,
{
CreateRestApiPollerResourceProperties -armResource $armResource -templateContentConnections $templateContentConnections -fileType $fileType
}
elseif ($armResource.kind.ToLower() -eq 'amazonwebservicess3')
{
CreateAwsResourceProperties -armResource $armResource -templateContentConnections $templateContentConnections -fileType $fileType
}
elseif ($armResource.kind.ToLower() -eq 'push' ) {

$templateContentConnections.properties.mainTemplate = Add-NewObjectParameter `
Expand Down Expand Up @@ -965,32 +961,4 @@ function CreateGCPResourceProperties($armResource, $templateContentConnections,

# Request section subscriptionNames property
ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties.request -propertyName 'subscriptionNames' -isInnerObject $true -innerObjectName 'request' -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $true
}

$awsSolutions = @('VMware Carbon Black Cloud')

function CreateAwsResourceProperties($armResource, $templateContentConnections, $fileType) {
$kindType = 'AmazonWebServicesS3'
ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $true -propertyObject $armResource.properties -propertyName 'dataTypes' -isInnerObject $false -innerObjectName $null -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $true -propertyObject $armResource.properties.dataTypes -propertyName 'logs' -isInnerObject $true -innerObjectName 'dataTypes' -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties.dataTypes.logs -propertyName 'state' -isInnerObject $true -innerObjectName 'logs' -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $true -propertyObject $armResource.properties -propertyName 'dcrConfig' -isInnerObject $false -innerObjectName $null -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

if ($awsSolutions.Contains($solutionName)) {
# Handle properties destinationTable and streamName in dc poller file for this solutions as a special case
$armResource.properties.dcrConfig.streamName = "[[parameters('streamName')[0]]"
$armResource.properties.destinationTable = "[[concat(parameters('streamName')[0],'_CL')]"
$templateContentConnections.properties.mainTemplate.parameters | Add-Member -NotePropertyName "streamName" -NotePropertyValue ([PSCustomObject] @{ type = "array" })
} else {
ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties.dcrConfig -propertyName 'streamName' -isInnerObject $true -innerObjectName 'dcrConfig' -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties -propertyName 'destinationTable' -isInnerObject $false -innerObjectName $null -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false
}

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties -propertyName 'roleArn' -isInnerObject $false -innerObjectName $null -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $false

ProcessPropertyPlaceholders -armResource $armResource -templateContentConnections $templateContentConnections -isOnlyObjectCheck $false -propertyObject $armResource.properties -propertyName 'sqsUrls' -isInnerObject $false -innerObjectName $null -kindType $kindType -isSecret $false -isRequired $true -fileType $fileType -minLength 3 -isCreateArray $true
}

0 comments on commit be24dbf

Please sign in to comment.