harness.platform.AwsCCConnector
Explore with Pulumi AI
Resource for creating an AWS Cloud Cost connector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const test = new harness.platform.AwsCCConnector("test", {
    identifier: "identifier",
    name: "name",
    description: "test",
    tags: ["foo:bar"],
    accountId: "account_id",
    reportName: "report_name",
    s3Bucket: "s3bucket",
    featuresEnableds: [
        "OPTIMIZATION",
        "VISIBILITY",
        "BILLING",
    ],
    crossAccountAccess: {
        roleArn: "role_arn",
        externalId: "external_id",
    },
});
import pulumi
import pulumi_harness as harness
test = harness.platform.AwsCCConnector("test",
    identifier="identifier",
    name="name",
    description="test",
    tags=["foo:bar"],
    account_id="account_id",
    report_name="report_name",
    s3_bucket="s3bucket",
    features_enableds=[
        "OPTIMIZATION",
        "VISIBILITY",
        "BILLING",
    ],
    cross_account_access={
        "role_arn": "role_arn",
        "external_id": "external_id",
    })
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.NewAwsCCConnector(ctx, "test", &platform.AwsCCConnectorArgs{
			Identifier:  pulumi.String("identifier"),
			Name:        pulumi.String("name"),
			Description: pulumi.String("test"),
			Tags: pulumi.StringArray{
				pulumi.String("foo:bar"),
			},
			AccountId:  pulumi.String("account_id"),
			ReportName: pulumi.String("report_name"),
			S3Bucket:   pulumi.String("s3bucket"),
			FeaturesEnableds: pulumi.StringArray{
				pulumi.String("OPTIMIZATION"),
				pulumi.String("VISIBILITY"),
				pulumi.String("BILLING"),
			},
			CrossAccountAccess: &platform.AwsCCConnectorCrossAccountAccessArgs{
				RoleArn:    pulumi.String("role_arn"),
				ExternalId: pulumi.String("external_id"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() => 
{
    var test = new Harness.Platform.AwsCCConnector("test", new()
    {
        Identifier = "identifier",
        Name = "name",
        Description = "test",
        Tags = new[]
        {
            "foo:bar",
        },
        AccountId = "account_id",
        ReportName = "report_name",
        S3Bucket = "s3bucket",
        FeaturesEnableds = new[]
        {
            "OPTIMIZATION",
            "VISIBILITY",
            "BILLING",
        },
        CrossAccountAccess = new Harness.Platform.Inputs.AwsCCConnectorCrossAccountAccessArgs
        {
            RoleArn = "role_arn",
            ExternalId = "external_id",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.AwsCCConnector;
import com.pulumi.harness.platform.AwsCCConnectorArgs;
import com.pulumi.harness.platform.inputs.AwsCCConnectorCrossAccountAccessArgs;
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) {
        var test = new AwsCCConnector("test", AwsCCConnectorArgs.builder()
            .identifier("identifier")
            .name("name")
            .description("test")
            .tags("foo:bar")
            .accountId("account_id")
            .reportName("report_name")
            .s3Bucket("s3bucket")
            .featuresEnableds(            
                "OPTIMIZATION",
                "VISIBILITY",
                "BILLING")
            .crossAccountAccess(AwsCCConnectorCrossAccountAccessArgs.builder()
                .roleArn("role_arn")
                .externalId("external_id")
                .build())
            .build());
    }
}
resources:
  test:
    type: harness:platform:AwsCCConnector
    properties:
      identifier: identifier
      name: name
      description: test
      tags:
        - foo:bar
      accountId: account_id
      reportName: report_name
      s3Bucket: s3bucket
      featuresEnableds:
        - OPTIMIZATION
        - VISIBILITY
        - BILLING
      crossAccountAccess:
        roleArn: role_arn
        externalId: external_id
Create AwsCCConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsCCConnector(name: string, args: AwsCCConnectorArgs, opts?: CustomResourceOptions);@overload
def AwsCCConnector(resource_name: str,
                   args: AwsCCConnectorArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def AwsCCConnector(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   account_id: Optional[str] = None,
                   cross_account_access: Optional[AwsCCConnectorCrossAccountAccessArgs] = None,
                   features_enableds: Optional[Sequence[str]] = None,
                   identifier: Optional[str] = None,
                   description: Optional[str] = None,
                   name: Optional[str] = None,
                   org_id: Optional[str] = None,
                   project_id: Optional[str] = None,
                   report_name: Optional[str] = None,
                   s3_bucket: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None)func NewAwsCCConnector(ctx *Context, name string, args AwsCCConnectorArgs, opts ...ResourceOption) (*AwsCCConnector, error)public AwsCCConnector(string name, AwsCCConnectorArgs args, CustomResourceOptions? opts = null)
public AwsCCConnector(String name, AwsCCConnectorArgs args)
public AwsCCConnector(String name, AwsCCConnectorArgs args, CustomResourceOptions options)
type: harness:platform:AwsCCConnector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AwsCCConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AwsCCConnectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AwsCCConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsCCConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsCCConnectorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsCCConnectorResource = new Harness.Platform.AwsCCConnector("awsCCConnectorResource", new()
{
    AccountId = "string",
    CrossAccountAccess = new Harness.Platform.Inputs.AwsCCConnectorCrossAccountAccessArgs
    {
        ExternalId = "string",
        RoleArn = "string",
    },
    FeaturesEnableds = new[]
    {
        "string",
    },
    Identifier = "string",
    Description = "string",
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
    ReportName = "string",
    S3Bucket = "string",
    Tags = new[]
    {
        "string",
    },
});
example, err := platform.NewAwsCCConnector(ctx, "awsCCConnectorResource", &platform.AwsCCConnectorArgs{
	AccountId: pulumi.String("string"),
	CrossAccountAccess: &platform.AwsCCConnectorCrossAccountAccessArgs{
		ExternalId: pulumi.String("string"),
		RoleArn:    pulumi.String("string"),
	},
	FeaturesEnableds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Identifier:  pulumi.String("string"),
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	OrgId:       pulumi.String("string"),
	ProjectId:   pulumi.String("string"),
	ReportName:  pulumi.String("string"),
	S3Bucket:    pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var awsCCConnectorResource = new AwsCCConnector("awsCCConnectorResource", AwsCCConnectorArgs.builder()
    .accountId("string")
    .crossAccountAccess(AwsCCConnectorCrossAccountAccessArgs.builder()
        .externalId("string")
        .roleArn("string")
        .build())
    .featuresEnableds("string")
    .identifier("string")
    .description("string")
    .name("string")
    .orgId("string")
    .projectId("string")
    .reportName("string")
    .s3Bucket("string")
    .tags("string")
    .build());
aws_cc_connector_resource = harness.platform.AwsCCConnector("awsCCConnectorResource",
    account_id="string",
    cross_account_access={
        "external_id": "string",
        "role_arn": "string",
    },
    features_enableds=["string"],
    identifier="string",
    description="string",
    name="string",
    org_id="string",
    project_id="string",
    report_name="string",
    s3_bucket="string",
    tags=["string"])
const awsCCConnectorResource = new harness.platform.AwsCCConnector("awsCCConnectorResource", {
    accountId: "string",
    crossAccountAccess: {
        externalId: "string",
        roleArn: "string",
    },
    featuresEnableds: ["string"],
    identifier: "string",
    description: "string",
    name: "string",
    orgId: "string",
    projectId: "string",
    reportName: "string",
    s3Bucket: "string",
    tags: ["string"],
});
type: harness:platform:AwsCCConnector
properties:
    accountId: string
    crossAccountAccess:
        externalId: string
        roleArn: string
    description: string
    featuresEnableds:
        - string
    identifier: string
    name: string
    orgId: string
    projectId: string
    reportName: string
    s3Bucket: string
    tags:
        - string
AwsCCConnector Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AwsCCConnector resource accepts the following input properties:
- AccountId string
- The AWS account id.
- CrossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- FeaturesEnableds List<string>
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- 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.
- List<string>
- Tags to associate with the resource.
- AccountId string
- The AWS account id.
- CrossAccount AwsAccess CCConnector Cross Account Access Args 
- 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.
- FeaturesEnableds []string
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- Identifier string
- Unique identifier of the resource.
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- OrgId string
- Unique identifier of the organization.
- ProjectId string
- Unique identifier of the project.
- 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.
- []string
- Tags to associate with the resource.
- accountId String
- The AWS account id.
- crossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- featuresEnableds List<String>
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- 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.
- List<String>
- Tags to associate with the resource.
- accountId string
- The AWS account id.
- crossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- featuresEnableds string[]
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- identifier string
- Unique identifier of the resource.
- description string
- Description of the resource.
- name string
- Name of the resource.
- orgId string
- Unique identifier of the organization.
- projectId string
- Unique identifier of the project.
- 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.
- string[]
- Tags to associate with the resource.
- account_id str
- The AWS account id.
- cross_account_ Awsaccess CCConnector Cross Account Access Args 
- 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.
- features_enableds Sequence[str]
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- identifier str
- Unique identifier of the resource.
- description str
- Description 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.
- 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.
- Sequence[str]
- Tags to associate with the resource.
- accountId String
- The AWS account id.
- crossAccount Property MapAccess 
- 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.
- featuresEnableds List<String>
- The features enabled for the connector. Valid values are BILLING, OPTIMIZATION, VISIBILITY, GOVERNANCE.
- identifier String
- Unique identifier of the resource.
- description String
- Description of the resource.
- name String
- Name of the resource.
- orgId String
- Unique identifier of the organization.
- projectId String
- Unique identifier of the project.
- 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.
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsCCConnector resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AwsCCConnector Resource
Get an existing AwsCCConnector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AwsCCConnectorState, opts?: CustomResourceOptions): AwsCCConnector@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        cross_account_access: Optional[AwsCCConnectorCrossAccountAccessArgs] = None,
        description: Optional[str] = None,
        features_enableds: Optional[Sequence[str]] = None,
        identifier: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        report_name: Optional[str] = None,
        s3_bucket: Optional[str] = None,
        tags: Optional[Sequence[str]] = None) -> AwsCCConnectorfunc GetAwsCCConnector(ctx *Context, name string, id IDInput, state *AwsCCConnectorState, opts ...ResourceOption) (*AwsCCConnector, error)public static AwsCCConnector Get(string name, Input<string> id, AwsCCConnectorState? state, CustomResourceOptions? opts = null)public static AwsCCConnector get(String name, Output<String> id, AwsCCConnectorState state, CustomResourceOptions options)resources:  _:    type: harness:platform:AwsCCConnector    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AccountId string
- The AWS account id.
- CrossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- Identifier 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.
- 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.
- List<string>
- Tags to associate with the resource.
- AccountId string
- The AWS account id.
- CrossAccount AwsAccess CCConnector Cross Account Access Args 
- 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.
- Identifier 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.
- 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.
- []string
- Tags to associate with the resource.
- accountId String
- The AWS account id.
- crossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- identifier 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.
- 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.
- List<String>
- Tags to associate with the resource.
- accountId string
- The AWS account id.
- crossAccount AwsAccess CCConnector Cross Account Access 
- 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.
- identifier 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.
- 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.
- string[]
- Tags to associate with the resource.
- account_id str
- The AWS account id.
- cross_account_ Awsaccess CCConnector Cross Account Access Args 
- 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.
- identifier 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.
- 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.
- Sequence[str]
- Tags to associate with the resource.
- accountId String
- The AWS account id.
- crossAccount Property MapAccess 
- 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.
- identifier 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.
- 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.
- List<String>
- Tags to associate with the resource.
Supporting Types
AwsCCConnectorCrossAccountAccess, AwsCCConnectorCrossAccountAccessArgs          
- ExternalId 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 string
- The ARN of the role to use for cross-account access.
- ExternalId 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 string
- The ARN of the role to use for cross-account access.
- externalId 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 String
- The ARN of the role to use for cross-account access.
- externalId 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 string
- The ARN of the role to use for cross-account access.
- external_id 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 str
- The ARN of the role to use for cross-account access.
- externalId 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 String
- The ARN of the role to use for cross-account access.
Import
Import account level aws cloud cost connector
$ pulumi import harness:platform/awsCCConnector:AwsCCConnector example <connector_id>
Import org level aws cloud cost connector
$ pulumi import harness:platform/awsCCConnector:AwsCCConnector example <ord_id>/<connector_id>
Import project level aws cloud cost connector
$ pulumi import harness:platform/awsCCConnector:AwsCCConnector example <org_id>/<project_id>/<connector_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
