@@ -107,7 +107,7 @@ func resourcePortfolioShareCreate(ctx context.Context, d *schema.ResourceData, m
107
107
var diags diag.Diagnostics
108
108
conn := meta .(* conns.AWSClient ).ServiceCatalogClient (ctx )
109
109
110
- input := & servicecatalog.CreatePortfolioShareInput {
110
+ input := servicecatalog.CreatePortfolioShareInput {
111
111
PortfolioId : aws .String (d .Get ("portfolio_id" ).(string )),
112
112
SharePrincipals : d .Get ("share_principals" ).(bool ),
113
113
AcceptLanguage : aws .String (d .Get ("accept_language" ).(string )),
@@ -140,7 +140,7 @@ func resourcePortfolioShareCreate(ctx context.Context, d *schema.ResourceData, m
140
140
err := tfresource .Retry (ctx , d .Timeout (schema .TimeoutCreate ), func (ctx context.Context ) * tfresource.RetryError {
141
141
var err error
142
142
143
- output , err = conn .CreatePortfolioShare (ctx , input )
143
+ output , err = conn .CreatePortfolioShare (ctx , & input )
144
144
145
145
if errs .IsAErrorMessageContains [* awstypes.InvalidParametersException ](err , "profile does not exist" ) {
146
146
return tfresource .RetryableError (err )
@@ -224,7 +224,7 @@ func resourcePortfolioShareUpdate(ctx context.Context, d *schema.ResourceData, m
224
224
var diags diag.Diagnostics
225
225
conn := meta .(* conns.AWSClient ).ServiceCatalogClient (ctx )
226
226
227
- input := & servicecatalog.UpdatePortfolioShareInput {
227
+ input := servicecatalog.UpdatePortfolioShareInput {
228
228
PortfolioId : aws .String (d .Get ("portfolio_id" ).(string )),
229
229
AcceptLanguage : aws .String (d .Get ("accept_language" ).(string )),
230
230
}
@@ -254,7 +254,7 @@ func resourcePortfolioShareUpdate(ctx context.Context, d *schema.ResourceData, m
254
254
}
255
255
256
256
err := tfresource .Retry (ctx , d .Timeout (schema .TimeoutUpdate ), func (ctx context.Context ) * tfresource.RetryError {
257
- _ , err := conn .UpdatePortfolioShare (ctx , input )
257
+ _ , err := conn .UpdatePortfolioShare (ctx , & input )
258
258
259
259
if errs .IsAErrorMessageContains [* awstypes.InvalidParametersException ](err , "profile does not exist" ) {
260
260
return tfresource .RetryableError (err )
@@ -278,7 +278,7 @@ func resourcePortfolioShareDelete(ctx context.Context, d *schema.ResourceData, m
278
278
var diags diag.Diagnostics
279
279
conn := meta .(* conns.AWSClient ).ServiceCatalogClient (ctx )
280
280
281
- input := & servicecatalog.DeletePortfolioShareInput {
281
+ input := servicecatalog.DeletePortfolioShareInput {
282
282
PortfolioId : aws .String (d .Get ("portfolio_id" ).(string )),
283
283
}
284
284
@@ -305,7 +305,7 @@ func resourcePortfolioShareDelete(ctx context.Context, d *schema.ResourceData, m
305
305
conns .GlobalMutexKV .Lock (portfolioShareMutexKey )
306
306
defer conns .GlobalMutexKV .Unlock (portfolioShareMutexKey )
307
307
308
- output , err := conn .DeletePortfolioShare (ctx , input )
308
+ output , err := conn .DeletePortfolioShare (ctx , & input )
309
309
310
310
if errs.IsA [* awstypes.ResourceNotFoundException ](err ) {
311
311
return diags
0 commit comments