aws.connect.PhoneNumberContactFlowAssociation
Explore with Pulumi AI
Associates a flow with a phone number claimed to an Amazon Connect instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.connect.PhoneNumberContactFlowAssociation("example", {
phoneNumberId: exampleAwsConnectPhoneNumber.id,
instanceId: exampleAwsConnectInstance.id,
contactFlowId: exampleAwsConnectContactFlow.contactFlowId,
});
import pulumi
import pulumi_aws as aws
example = aws.connect.PhoneNumberContactFlowAssociation("example",
phone_number_id=example_aws_connect_phone_number["id"],
instance_id=example_aws_connect_instance["id"],
contact_flow_id=example_aws_connect_contact_flow["contactFlowId"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/connect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := connect.NewPhoneNumberContactFlowAssociation(ctx, "example", &connect.PhoneNumberContactFlowAssociationArgs{
PhoneNumberId: pulumi.Any(exampleAwsConnectPhoneNumber.Id),
InstanceId: pulumi.Any(exampleAwsConnectInstance.Id),
ContactFlowId: pulumi.Any(exampleAwsConnectContactFlow.ContactFlowId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Connect.PhoneNumberContactFlowAssociation("example", new()
{
PhoneNumberId = exampleAwsConnectPhoneNumber.Id,
InstanceId = exampleAwsConnectInstance.Id,
ContactFlowId = exampleAwsConnectContactFlow.ContactFlowId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.connect.PhoneNumberContactFlowAssociation;
import com.pulumi.aws.connect.PhoneNumberContactFlowAssociationArgs;
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 example = new PhoneNumberContactFlowAssociation("example", PhoneNumberContactFlowAssociationArgs.builder()
.phoneNumberId(exampleAwsConnectPhoneNumber.id())
.instanceId(exampleAwsConnectInstance.id())
.contactFlowId(exampleAwsConnectContactFlow.contactFlowId())
.build());
}
}
resources:
example:
type: aws:connect:PhoneNumberContactFlowAssociation
properties:
phoneNumberId: ${exampleAwsConnectPhoneNumber.id}
instanceId: ${exampleAwsConnectInstance.id}
contactFlowId: ${exampleAwsConnectContactFlow.contactFlowId}
Create PhoneNumberContactFlowAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PhoneNumberContactFlowAssociation(name: string, args: PhoneNumberContactFlowAssociationArgs, opts?: CustomResourceOptions);
@overload
def PhoneNumberContactFlowAssociation(resource_name: str,
args: PhoneNumberContactFlowAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PhoneNumberContactFlowAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
contact_flow_id: Optional[str] = None,
instance_id: Optional[str] = None,
phone_number_id: Optional[str] = None,
region: Optional[str] = None)
func NewPhoneNumberContactFlowAssociation(ctx *Context, name string, args PhoneNumberContactFlowAssociationArgs, opts ...ResourceOption) (*PhoneNumberContactFlowAssociation, error)
public PhoneNumberContactFlowAssociation(string name, PhoneNumberContactFlowAssociationArgs args, CustomResourceOptions? opts = null)
public PhoneNumberContactFlowAssociation(String name, PhoneNumberContactFlowAssociationArgs args)
public PhoneNumberContactFlowAssociation(String name, PhoneNumberContactFlowAssociationArgs args, CustomResourceOptions options)
type: aws:connect:PhoneNumberContactFlowAssociation
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 PhoneNumberContactFlowAssociationArgs
- 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 PhoneNumberContactFlowAssociationArgs
- 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 PhoneNumberContactFlowAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PhoneNumberContactFlowAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PhoneNumberContactFlowAssociationArgs
- 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 phoneNumberContactFlowAssociationResource = new Aws.Connect.PhoneNumberContactFlowAssociation("phoneNumberContactFlowAssociationResource", new()
{
ContactFlowId = "string",
InstanceId = "string",
PhoneNumberId = "string",
Region = "string",
});
example, err := connect.NewPhoneNumberContactFlowAssociation(ctx, "phoneNumberContactFlowAssociationResource", &connect.PhoneNumberContactFlowAssociationArgs{
ContactFlowId: pulumi.String("string"),
InstanceId: pulumi.String("string"),
PhoneNumberId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var phoneNumberContactFlowAssociationResource = new PhoneNumberContactFlowAssociation("phoneNumberContactFlowAssociationResource", PhoneNumberContactFlowAssociationArgs.builder()
.contactFlowId("string")
.instanceId("string")
.phoneNumberId("string")
.region("string")
.build());
phone_number_contact_flow_association_resource = aws.connect.PhoneNumberContactFlowAssociation("phoneNumberContactFlowAssociationResource",
contact_flow_id="string",
instance_id="string",
phone_number_id="string",
region="string")
const phoneNumberContactFlowAssociationResource = new aws.connect.PhoneNumberContactFlowAssociation("phoneNumberContactFlowAssociationResource", {
contactFlowId: "string",
instanceId: "string",
phoneNumberId: "string",
region: "string",
});
type: aws:connect:PhoneNumberContactFlowAssociation
properties:
contactFlowId: string
instanceId: string
phoneNumberId: string
region: string
PhoneNumberContactFlowAssociation 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 PhoneNumberContactFlowAssociation resource accepts the following input properties:
- Contact
Flow stringId - Contact flow ID.
- Instance
Id string - Amazon Connect instance ID.
- Phone
Number stringId - Phone number ID.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Contact
Flow stringId - Contact flow ID.
- Instance
Id string - Amazon Connect instance ID.
- Phone
Number stringId - Phone number ID.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow StringId - Contact flow ID.
- instance
Id String - Amazon Connect instance ID.
- phone
Number StringId - Phone number ID.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow stringId - Contact flow ID.
- instance
Id string - Amazon Connect instance ID.
- phone
Number stringId - Phone number ID.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact_
flow_ strid - Contact flow ID.
- instance_
id str - Amazon Connect instance ID.
- phone_
number_ strid - Phone number ID.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow StringId - Contact flow ID.
- instance
Id String - Amazon Connect instance ID.
- phone
Number StringId - Phone number ID.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the PhoneNumberContactFlowAssociation 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 PhoneNumberContactFlowAssociation Resource
Get an existing PhoneNumberContactFlowAssociation 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?: PhoneNumberContactFlowAssociationState, opts?: CustomResourceOptions): PhoneNumberContactFlowAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
contact_flow_id: Optional[str] = None,
instance_id: Optional[str] = None,
phone_number_id: Optional[str] = None,
region: Optional[str] = None) -> PhoneNumberContactFlowAssociation
func GetPhoneNumberContactFlowAssociation(ctx *Context, name string, id IDInput, state *PhoneNumberContactFlowAssociationState, opts ...ResourceOption) (*PhoneNumberContactFlowAssociation, error)
public static PhoneNumberContactFlowAssociation Get(string name, Input<string> id, PhoneNumberContactFlowAssociationState? state, CustomResourceOptions? opts = null)
public static PhoneNumberContactFlowAssociation get(String name, Output<String> id, PhoneNumberContactFlowAssociationState state, CustomResourceOptions options)
resources: _: type: aws:connect:PhoneNumberContactFlowAssociation 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.
- Contact
Flow stringId - Contact flow ID.
- Instance
Id string - Amazon Connect instance ID.
- Phone
Number stringId - Phone number ID.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Contact
Flow stringId - Contact flow ID.
- Instance
Id string - Amazon Connect instance ID.
- Phone
Number stringId - Phone number ID.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow StringId - Contact flow ID.
- instance
Id String - Amazon Connect instance ID.
- phone
Number StringId - Phone number ID.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow stringId - Contact flow ID.
- instance
Id string - Amazon Connect instance ID.
- phone
Number stringId - Phone number ID.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact_
flow_ strid - Contact flow ID.
- instance_
id str - Amazon Connect instance ID.
- phone_
number_ strid - Phone number ID.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- contact
Flow StringId - Contact flow ID.
- instance
Id String - Amazon Connect instance ID.
- phone
Number StringId - Phone number ID.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
Import
Using pulumi import
, import aws_connect_phone_number_contact_flow_association
using the phone_number_id
, instance_id
and contact_flow_id
separated by a comma (,
). For example:
$ pulumi import aws:connect/phoneNumberContactFlowAssociation:PhoneNumberContactFlowAssociation example 36727a4c-4683-4e49-880c-3347c61110a4,fa6c1691-e2eb-4487-bdb9-1aaed6268ebd,c4acdc79-395e-4280-a294-9062f56b07bb
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.