1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getAwsCCConnector
Harness v0.7.3 published on Friday, Apr 18, 2025 by Pulumi

harness.platform.getAwsCCConnector

Explore with Pulumi AI

Datasource for looking up an AWS Cloud Cost connector.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";

const example = harness.platform.getAwsCCConnector({
    identifier: "identifier",
});
Copy
import pulumi
import pulumi_harness as harness

example = harness.platform.get_aws_cc_connector(identifier="identifier")
Copy
package main

import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := platform.LookupAwsCCConnector(ctx, &platform.LookupAwsCCConnectorArgs{
			Identifier: "identifier",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;

return await Deployment.RunAsync(() => 
{
    var example = Harness.Platform.GetAwsCCConnector.Invoke(new()
    {
        Identifier = "identifier",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.PlatformFunctions;
import com.pulumi.harness.platform.inputs.GetAwsCCConnectorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = PlatformFunctions.getAwsCCConnector(GetAwsCCConnectorArgs.builder()
            .identifier("identifier")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: harness:platform:getAwsCCConnector
      arguments:
        identifier: identifier
Copy

Using getAwsCCConnector

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAwsCCConnector(args: GetAwsCCConnectorArgs, opts?: InvokeOptions): Promise<GetAwsCCConnectorResult>
function getAwsCCConnectorOutput(args: GetAwsCCConnectorOutputArgs, opts?: InvokeOptions): Output<GetAwsCCConnectorResult>
Copy
def get_aws_cc_connector(identifier: Optional[str] = None,
                         name: Optional[str] = None,
                         org_id: Optional[str] = None,
                         project_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetAwsCCConnectorResult
def get_aws_cc_connector_output(identifier: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         org_id: Optional[pulumi.Input[str]] = None,
                         project_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetAwsCCConnectorResult]
Copy
func LookupAwsCCConnector(ctx *Context, args *LookupAwsCCConnectorArgs, opts ...InvokeOption) (*LookupAwsCCConnectorResult, error)
func LookupAwsCCConnectorOutput(ctx *Context, args *LookupAwsCCConnectorOutputArgs, opts ...InvokeOption) LookupAwsCCConnectorResultOutput
Copy

> Note: This function is named LookupAwsCCConnector in the Go SDK.

public static class GetAwsCCConnector 
{
    public static Task<GetAwsCCConnectorResult> InvokeAsync(GetAwsCCConnectorArgs args, InvokeOptions? opts = null)
    public static Output<GetAwsCCConnectorResult> Invoke(GetAwsCCConnectorInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAwsCCConnectorResult> getAwsCCConnector(GetAwsCCConnectorArgs args, InvokeOptions options)
public static Output<GetAwsCCConnectorResult> getAwsCCConnector(GetAwsCCConnectorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:platform/getAwsCCConnector:getAwsCCConnector
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
Identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
string
Unique identifier of the resource.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
str
Unique identifier of the resource.
name str
Name of the resource.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
identifier
This property is required.
Changes to this property will trigger replacement.
String
Unique identifier of the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

getAwsCCConnector Result

The following output properties are available:

AccountId string
The AWS account id.
CrossAccountAccesses List<GetAwsCCConnectorCrossAccountAccess>
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
Description string
Description of the resource.
FeaturesEnableds List<string>
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
ReportName string
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
S3Bucket string
The name of s3 bucket.
Tags List<string>
Tags to associate with the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
AccountId string
The AWS account id.
CrossAccountAccesses []GetAwsCCConnectorCrossAccountAccess
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
Description string
Description of the resource.
FeaturesEnableds []string
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
Id string
The provider-assigned unique ID for this managed resource.
Identifier string
Unique identifier of the resource.
ReportName string
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
S3Bucket string
The name of s3 bucket.
Tags []string
Tags to associate with the resource.
Name string
Name of the resource.
OrgId string
Unique identifier of the organization.
ProjectId string
Unique identifier of the project.
accountId String
The AWS account id.
crossAccountAccesses List<GetAwsCCConnectorCrossAccountAccess>
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
description String
Description of the resource.
featuresEnableds List<String>
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
reportName String
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
s3Bucket String
The name of s3 bucket.
tags List<String>
Tags to associate with the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.
accountId string
The AWS account id.
crossAccountAccesses GetAwsCCConnectorCrossAccountAccess[]
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
description string
Description of the resource.
featuresEnableds string[]
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
id string
The provider-assigned unique ID for this managed resource.
identifier string
Unique identifier of the resource.
reportName string
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
s3Bucket string
The name of s3 bucket.
tags string[]
Tags to associate with the resource.
name string
Name of the resource.
orgId string
Unique identifier of the organization.
projectId string
Unique identifier of the project.
account_id str
The AWS account id.
cross_account_accesses Sequence[GetAwsCCConnectorCrossAccountAccess]
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
description str
Description of the resource.
features_enableds Sequence[str]
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
id str
The provider-assigned unique ID for this managed resource.
identifier str
Unique identifier of the resource.
report_name str
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
s3_bucket str
The name of s3 bucket.
tags Sequence[str]
Tags to associate with the resource.
name str
Name of the resource.
org_id str
Unique identifier of the organization.
project_id str
Unique identifier of the project.
accountId String
The AWS account id.
crossAccountAccesses List<Property Map>
Harness uses the secure cross-account role to access your AWS account. The role includes a restricted policy to access the cost and usage reports and resources for the sole purpose of cost analysis and cost optimization.
description String
Description of the resource.
featuresEnableds List<String>
The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
id String
The provider-assigned unique ID for this managed resource.
identifier String
Unique identifier of the resource.
reportName String
The cost and usage report name. Provided in the delivery options when the template is opened in the AWS console.
s3Bucket String
The name of s3 bucket.
tags List<String>
Tags to associate with the resource.
name String
Name of the resource.
orgId String
Unique identifier of the organization.
projectId String
Unique identifier of the project.

Supporting Types

GetAwsCCConnectorCrossAccountAccess

ExternalId This property is required. string
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
RoleArn This property is required. string
The ARN of the role to use for cross-account access.
ExternalId This property is required. string
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
RoleArn This property is required. string
The ARN of the role to use for cross-account access.
externalId This property is required. String
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
roleArn This property is required. String
The ARN of the role to use for cross-account access.
externalId This property is required. string
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
roleArn This property is required. string
The ARN of the role to use for cross-account access.
external_id This property is required. str
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
role_arn This property is required. str
The ARN of the role to use for cross-account access.
externalId This property is required. String
The external id of the role to use for cross-account access. This is a random unique value to provide additional secure authentication.
roleArn This property is required. String
The ARN of the role to use for cross-account access.

Package Details

Repository
harness pulumi/pulumi-harness
License
Apache-2.0
Notes
This Pulumi package is based on the harness Terraform Provider.