busy-island-31180
03/10/2022, 9:02 PM// GetOpenIdConnectProvider gets an existing OpenIdConnectProvider resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetOpenIdConnectProvider(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OpenIdConnectProviderState, opts ...pulumi.ResourceOption) (*OpenIdConnectProvider, error) {
var resource OpenIdConnectProvider
err := ctx.ReadResource("aws:iam/openIdConnectProvider:OpenIdConnectProvider", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
If feels like the state
argument is redundant… since this function requires the resource id
which I’m assuming this would make this unique. What’s the point of the state
arg?little-cartoon-10569
03/10/2022, 9:10 PMbusy-island-31180
03/10/2022, 9:39 PMlittle-cartoon-10569
03/10/2022, 9:43 PM