azure-native-v2.costmanagement.Connector
Explore with Pulumi AI
The Connector model definition Azure REST API version: 2018-08-01-preview.
Create Connector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connector(name: string, args: ConnectorArgs, opts?: CustomResourceOptions);
@overload
def Connector(resource_name: str,
args: ConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connector(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
connector_name: Optional[str] = None,
credentials_key: Optional[str] = None,
credentials_secret: Optional[str] = None,
display_name: Optional[str] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
report_id: Optional[str] = None,
status: Optional[Union[str, ConnectorStatus]] = None,
tags: Optional[Mapping[str, str]] = None)
func NewConnector(ctx *Context, name string, args ConnectorArgs, opts ...ResourceOption) (*Connector, error)
public Connector(string name, ConnectorArgs args, CustomResourceOptions? opts = null)
public Connector(String name, ConnectorArgs args)
public Connector(String name, ConnectorArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:Connector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ConnectorArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ConnectorArgs - 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 azure_nativeConnectorResource = new AzureNative.Costmanagement.Connector("azure-nativeConnectorResource", new()
{
ResourceGroupName = "string",
ConnectorName = "string",
CredentialsKey = "string",
CredentialsSecret = "string",
DisplayName = "string",
Kind = "string",
Location = "string",
ReportId = "string",
Status = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := costmanagement.NewConnector(ctx, "azure-nativeConnectorResource", &costmanagement.ConnectorArgs{
ResourceGroupName: "string",
ConnectorName: "string",
CredentialsKey: "string",
CredentialsSecret: "string",
DisplayName: "string",
Kind: "string",
Location: "string",
ReportId: "string",
Status: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var azure_nativeConnectorResource = new Connector("azure-nativeConnectorResource", ConnectorArgs.builder()
.resourceGroupName("string")
.connectorName("string")
.credentialsKey("string")
.credentialsSecret("string")
.displayName("string")
.kind("string")
.location("string")
.reportId("string")
.status("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_native_connector_resource = azure_native.costmanagement.Connector("azure-nativeConnectorResource",
resource_group_name=string,
connector_name=string,
credentials_key=string,
credentials_secret=string,
display_name=string,
kind=string,
location=string,
report_id=string,
status=string,
tags={
string: string,
})
const azure_nativeConnectorResource = new azure_native.costmanagement.Connector("azure-nativeConnectorResource", {
resourceGroupName: "string",
connectorName: "string",
credentialsKey: "string",
credentialsSecret: "string",
displayName: "string",
kind: "string",
location: "string",
reportId: "string",
status: "string",
tags: {
string: "string",
},
});
type: azure-native:costmanagement:Connector
properties:
connectorName: string
credentialsKey: string
credentialsSecret: string
displayName: string
kind: string
location: string
reportId: string
resourceGroupName: string
status: string
tags:
string: string
Connector 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 Connector resource accepts the following input properties:
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- Connector
Name Changes to this property will trigger replacement.
- Connector Name.
- Credentials
Key string - Credentials authentication key (eg AWS ARN)
- Credentials
Secret string - Credentials secret (eg AWS ExternalId)
- Display
Name string - Connector DisplayName (defaults to Name)
- Kind string
- Connector kind (eg aws)
- Location
Changes to this property will trigger replacement.
- Connector location
- Report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- Status
string | Pulumi.
Azure Native. Cost Management. Connector Status - Connector status
- Dictionary<string, string>
- Resource tags.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- Connector
Name Changes to this property will trigger replacement.
- Connector Name.
- Credentials
Key string - Credentials authentication key (eg AWS ARN)
- Credentials
Secret string - Credentials secret (eg AWS ExternalId)
- Display
Name string - Connector DisplayName (defaults to Name)
- Kind string
- Connector kind (eg aws)
- Location
Changes to this property will trigger replacement.
- Connector location
- Report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- Status
string | Connector
Status - Connector status
- map[string]string
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- connector
Name Changes to this property will trigger replacement.
- Connector Name.
- credentials
Key String - Credentials authentication key (eg AWS ARN)
- credentials
Secret String - Credentials secret (eg AWS ExternalId)
- display
Name String - Connector DisplayName (defaults to Name)
- kind String
- Connector kind (eg aws)
- location
Changes to this property will trigger replacement.
- Connector location
- report
Id String - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- status
String | Connector
Status - Connector status
- Map<String,String>
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- connector
Name Changes to this property will trigger replacement.
- Connector Name.
- credentials
Key string - Credentials authentication key (eg AWS ARN)
- credentials
Secret string - Credentials secret (eg AWS ExternalId)
- display
Name string - Connector DisplayName (defaults to Name)
- kind string
- Connector kind (eg aws)
- location
Changes to this property will trigger replacement.
- Connector location
- report
Id string - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- status
string | Connector
Status - Connector status
- {[key: string]: string}
- Resource tags.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- connector_
name Changes to this property will trigger replacement.
- Connector Name.
- credentials_
key str - Credentials authentication key (eg AWS ARN)
- credentials_
secret str - Credentials secret (eg AWS ExternalId)
- display_
name str - Connector DisplayName (defaults to Name)
- kind str
- Connector kind (eg aws)
- location
Changes to this property will trigger replacement.
- Connector location
- report_
id str - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- status
str | Connector
Status - Connector status
- Mapping[str, str]
- Resource tags.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- Azure Resource Group Name.
- connector
Name Changes to this property will trigger replacement.
- Connector Name.
- credentials
Key String - Credentials authentication key (eg AWS ARN)
- credentials
Secret String - Credentials secret (eg AWS ExternalId)
- display
Name String - Connector DisplayName (defaults to Name)
- kind String
- Connector kind (eg aws)
- location
Changes to this property will trigger replacement.
- Connector location
- report
Id String - Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources)
- status String | "active" | "error" | "suspended"
- Connector status
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connector resource produces the following output properties:
- Collection
Pulumi.
Azure Native. Cost Management. Outputs. Connector Collection Info Response - Collection information
- Created
On string - Connector definition creation datetime
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Connector last modified datetime
- Name string
- Connector name
- Provider
Account stringId - Connector providerAccountId (determined from credentials)
- Type string
- Connector type
- Collection
Connector
Collection Info Response - Collection information
- Created
On string - Connector definition creation datetime
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - Connector last modified datetime
- Name string
- Connector name
- Provider
Account stringId - Connector providerAccountId (determined from credentials)
- Type string
- Connector type
- collection
Connector
Collection Info Response - Collection information
- created
On String - Connector definition creation datetime
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Connector last modified datetime
- name String
- Connector name
- provider
Account StringId - Connector providerAccountId (determined from credentials)
- type String
- Connector type
- collection
Connector
Collection Info Response - Collection information
- created
On string - Connector definition creation datetime
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - Connector last modified datetime
- name string
- Connector name
- provider
Account stringId - Connector providerAccountId (determined from credentials)
- type string
- Connector type
- collection
Connector
Collection Info Response - Collection information
- created_
on str - Connector definition creation datetime
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - Connector last modified datetime
- name str
- Connector name
- provider_
account_ strid - Connector providerAccountId (determined from credentials)
- type str
- Connector type
- collection Property Map
- Collection information
- created
On String - Connector definition creation datetime
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - Connector last modified datetime
- name String
- Connector name
- provider
Account StringId - Connector providerAccountId (determined from credentials)
- type String
- Connector type
Supporting Types
ConnectorCollectionErrorInfoResponse, ConnectorCollectionErrorInfoResponseArgs
- Error
Code This property is required. string - Short error message
- Error
Message This property is required. string - Detailed error message
- Error
Start Time This property is required. string - Time the error started occurring (Last time error occurred in lastRun)
- Error
Inner stringMessage - External Provider error message
- Error
Code This property is required. string - Short error message
- Error
Message This property is required. string - Detailed error message
- Error
Start Time This property is required. string - Time the error started occurring (Last time error occurred in lastRun)
- Error
Inner stringMessage - External Provider error message
- error
Code This property is required. String - Short error message
- error
Message This property is required. String - Detailed error message
- error
Start Time This property is required. String - Time the error started occurring (Last time error occurred in lastRun)
- error
Inner StringMessage - External Provider error message
- error
Code This property is required. string - Short error message
- error
Message This property is required. string - Detailed error message
- error
Start Time This property is required. string - Time the error started occurring (Last time error occurred in lastRun)
- error
Inner stringMessage - External Provider error message
- error_
code This property is required. str - Short error message
- error_
message This property is required. str - Detailed error message
- error_
start_ time This property is required. str - Time the error started occurring (Last time error occurred in lastRun)
- error_
inner_ strmessage - External Provider error message
- error
Code This property is required. String - Short error message
- error
Message This property is required. String - Detailed error message
- error
Start Time This property is required. String - Time the error started occurring (Last time error occurred in lastRun)
- error
Inner StringMessage - External Provider error message
ConnectorCollectionInfoResponse, ConnectorCollectionInfoResponseArgs
- Last
Run This property is required. string - Last time the data acquisition process completed (even if no new data was found)
- Last
Updated This property is required. string - Last time the external data was updated into Azure
- Source
Last Updated This property is required. string - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- Error
Pulumi.
Azure Native. Cost Management. Inputs. Connector Collection Error Info Response - Error information of last collection
- Last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- Last
Run This property is required. string - Last time the data acquisition process completed (even if no new data was found)
- Last
Updated This property is required. string - Last time the external data was updated into Azure
- Source
Last Updated This property is required. string - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- Error
Connector
Collection Error Info Response - Error information of last collection
- Last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- last
Run This property is required. String - Last time the data acquisition process completed (even if no new data was found)
- last
Updated This property is required. String - Last time the external data was updated into Azure
- source
Last Updated This property is required. String - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
Connector
Collection Error Info Response - Error information of last collection
- last
Checked String - Last time the data acquisition process initiated connecting to the external provider
- last
Run This property is required. string - Last time the data acquisition process completed (even if no new data was found)
- last
Updated This property is required. string - Last time the external data was updated into Azure
- source
Last Updated This property is required. string - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
Connector
Collection Error Info Response - Error information of last collection
- last
Checked string - Last time the data acquisition process initiated connecting to the external provider
- last_
run This property is required. str - Last time the data acquisition process completed (even if no new data was found)
- last_
updated This property is required. str - Last time the external data was updated into Azure
- source_
last_ updated This property is required. str - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error
Connector
Collection Error Info Response - Error information of last collection
- last_
checked str - Last time the data acquisition process initiated connecting to the external provider
- last
Run This property is required. String - Last time the data acquisition process completed (even if no new data was found)
- last
Updated This property is required. String - Last time the external data was updated into Azure
- source
Last Updated This property is required. String - Source timestamp of external data currently available in Azure (eg AWS last processed CUR file timestamp)
- error Property Map
- Error information of last collection
- last
Checked String - Last time the data acquisition process initiated connecting to the external provider
ConnectorStatus, ConnectorStatusArgs
- Active
- active
- Error
- error
- Suspended
- suspended
- Connector
Status Active - active
- Connector
Status Error - error
- Connector
Status Suspended - suspended
- Active
- active
- Error
- error
- Suspended
- suspended
- Active
- active
- Error
- error
- Suspended
- suspended
- ACTIVE
- active
- ERROR
- error
- SUSPENDED
- suspended
- "active"
- active
- "error"
- error
- "suspended"
- suspended
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:Connector AWSBillingAccount /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0