/
getSyncConfiguration.go
142 lines (119 loc) · 6.73 KB
/
getSyncConfiguration.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package codestarconnections
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Schema for AWS::CodeStarConnections::SyncConfiguration resource which is used to enables an AWS resource to be synchronized from a source-provider.
func LookupSyncConfiguration(ctx *pulumi.Context, args *LookupSyncConfigurationArgs, opts ...pulumi.InvokeOption) (*LookupSyncConfigurationResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSyncConfigurationResult
err := ctx.Invoke("aws-native:codestarconnections:getSyncConfiguration", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupSyncConfigurationArgs struct {
// The name of the resource that is being synchronized to the repository.
ResourceName string `pulumi:"resourceName"`
// The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
SyncType string `pulumi:"syncType"`
}
type LookupSyncConfigurationResult struct {
// The name of the branch of the repository from which resources are to be synchronized,
Branch *string `pulumi:"branch"`
// The source provider repository path of the sync configuration file of the respective SyncType.
ConfigFile *string `pulumi:"configFile"`
// the ID of the entity that owns the repository.
OwnerId *string `pulumi:"ownerId"`
// The name of the external provider where your third-party code repository is configured.
ProviderType *SyncConfigurationProviderType `pulumi:"providerType"`
// Whether to enable or disable publishing of deployment status to source providers.
PublishDeploymentStatus *SyncConfigurationPublishDeploymentStatus `pulumi:"publishDeploymentStatus"`
// A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
RepositoryLinkId *string `pulumi:"repositoryLinkId"`
// The name of the repository that is being synced to.
RepositoryName *string `pulumi:"repositoryName"`
// The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
RoleArn *string `pulumi:"roleArn"`
// When to trigger Git sync to begin the stack update.
TriggerResourceUpdateOn *SyncConfigurationTriggerResourceUpdateOn `pulumi:"triggerResourceUpdateOn"`
}
func LookupSyncConfigurationOutput(ctx *pulumi.Context, args LookupSyncConfigurationOutputArgs, opts ...pulumi.InvokeOption) LookupSyncConfigurationResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupSyncConfigurationResult, error) {
args := v.(LookupSyncConfigurationArgs)
r, err := LookupSyncConfiguration(ctx, &args, opts...)
var s LookupSyncConfigurationResult
if r != nil {
s = *r
}
return s, err
}).(LookupSyncConfigurationResultOutput)
}
type LookupSyncConfigurationOutputArgs struct {
// The name of the resource that is being synchronized to the repository.
ResourceName pulumi.StringInput `pulumi:"resourceName"`
// The type of resource synchronization service that is to be configured, for example, CFN_STACK_SYNC.
SyncType pulumi.StringInput `pulumi:"syncType"`
}
func (LookupSyncConfigurationOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSyncConfigurationArgs)(nil)).Elem()
}
type LookupSyncConfigurationResultOutput struct{ *pulumi.OutputState }
func (LookupSyncConfigurationResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSyncConfigurationResult)(nil)).Elem()
}
func (o LookupSyncConfigurationResultOutput) ToLookupSyncConfigurationResultOutput() LookupSyncConfigurationResultOutput {
return o
}
func (o LookupSyncConfigurationResultOutput) ToLookupSyncConfigurationResultOutputWithContext(ctx context.Context) LookupSyncConfigurationResultOutput {
return o
}
// The name of the branch of the repository from which resources are to be synchronized,
func (o LookupSyncConfigurationResultOutput) Branch() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.Branch }).(pulumi.StringPtrOutput)
}
// The source provider repository path of the sync configuration file of the respective SyncType.
func (o LookupSyncConfigurationResultOutput) ConfigFile() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.ConfigFile }).(pulumi.StringPtrOutput)
}
// the ID of the entity that owns the repository.
func (o LookupSyncConfigurationResultOutput) OwnerId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.OwnerId }).(pulumi.StringPtrOutput)
}
// The name of the external provider where your third-party code repository is configured.
func (o LookupSyncConfigurationResultOutput) ProviderType() SyncConfigurationProviderTypePtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *SyncConfigurationProviderType { return v.ProviderType }).(SyncConfigurationProviderTypePtrOutput)
}
// Whether to enable or disable publishing of deployment status to source providers.
func (o LookupSyncConfigurationResultOutput) PublishDeploymentStatus() SyncConfigurationPublishDeploymentStatusPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *SyncConfigurationPublishDeploymentStatus {
return v.PublishDeploymentStatus
}).(SyncConfigurationPublishDeploymentStatusPtrOutput)
}
// A UUID that uniquely identifies the RepositoryLink that the SyncConfig is associated with.
func (o LookupSyncConfigurationResultOutput) RepositoryLinkId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.RepositoryLinkId }).(pulumi.StringPtrOutput)
}
// The name of the repository that is being synced to.
func (o LookupSyncConfigurationResultOutput) RepositoryName() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.RepositoryName }).(pulumi.StringPtrOutput)
}
// The IAM Role that allows AWS to update CloudFormation stacks based on content in the specified repository.
func (o LookupSyncConfigurationResultOutput) RoleArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *string { return v.RoleArn }).(pulumi.StringPtrOutput)
}
// When to trigger Git sync to begin the stack update.
func (o LookupSyncConfigurationResultOutput) TriggerResourceUpdateOn() SyncConfigurationTriggerResourceUpdateOnPtrOutput {
return o.ApplyT(func(v LookupSyncConfigurationResult) *SyncConfigurationTriggerResourceUpdateOn {
return v.TriggerResourceUpdateOn
}).(SyncConfigurationTriggerResourceUpdateOnPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupSyncConfigurationResultOutput{})
}